Problem/Motivation

In #2348543: [meta] Consensus Banana Phase 2, transition templates to the starterkit theme we moved a lot of templates from modules to Classy, the CSS that relies on the classes in Classy is still in the modules files

The css should follow the template, node.admin.css classes are all added in 'core/themes/classy/templates/content-edit/node-edit-form.html.twig'

Proposed resolution

Move the CSS that relies on the HTML classes for every module. Ensure that the classes aren't being added in the module.

Remaining tasks

User interface changes

None for Classy, Stark will be more Stark

API changes

None

Comments

aliyakhan’s picture

@morten Looks like the current css for the 'core/themes/classy/templates/content-edit/node-edit-form.html.twig' is coming from node.module.css and not in node.admin.css. Are we referring to that?

mortendk’s picture

then we should also move that as the markup & css should follow each other else its gonna be such a mess to figure out where stuff comes from

module.css vs theme.css vs admin.css is not always accurate from the old days of Drupal7, so there very well be some major overlaps there.

So as a rule or thumb lets move the css with the markup :)

aliyakhan’s picture

StatusFileSize
new6.18 KB

Moved files, lets see how testbot behaves ;)

aliyakhan’s picture

Status: Active » Needs review
rudraram’s picture

aliyakhan’s picture

Status: Needs review » Needs work
manjit.singh’s picture

Status: Needs work » Needs review
StatusFileSize
new68.33 KB
new74.24 KB
new6.38 KB

found some issues, Attaching screenshots.

before-node-page.png

after-node-page.png

I am attaching a patch.. that can resolve this issue. :)

manjit.singh’s picture

StatusFileSize
new704 bytes

attaching interdiff of #3 and #7

Status: Needs review » Needs work

The last submitted patch, 7: move-node-admin-css-2491257-7.patch, failed testing.

see15_aug’s picture

StatusFileSize
new69.47 KB
new66.99 KB

After apply the patch #3 found issue as #7. Patch of #7 is working. Attached screenshot.

manjit.singh’s picture

Issue tags: +SrijanSprintDay

The last submitted patch, 7: move-node-admin-css-2491257-7.patch, failed testing.

chernous_dn’s picture

Status: Needs work » Needs review
StatusFileSize
new6.19 KB

I moved two css file "node.module.css" and "node.admin.css" to theme classy, include to templates.

Status: Needs review » Needs work

The last submitted patch, 14: move_node_admin-css-2491257-14.patch, failed testing.

Status: Needs work » Needs review
manjit.singh’s picture

Thanks @Chernous_dn for working on this.. let's wait for some more review as well.

lewisnyman’s picture

Status: Needs review » Closed (won't fix)

The direction in #2489460: [Meta] Move module.theme.css files to Classy or Seven is to move *.theme.css files only. We shouldn't be moving the module or the admin CSS files.