Part of #1921610: [Meta] Architect our CSS

Problem/Motivation

The BAT (base-admin-theme) file organization we started to do in Drupal 8 was a fantastic idea. See http://drupal.org/node/1089868

It works really well, but its names conflict with the SMACSS categorization we're using in Drupal 8. "base" and "theme" means something else in SMACSS. So we just need to rename them.

The node module does not yet follow these guidelines.

Proposed resolution

node.admin.css => css/node.admin.css
node.edit.admin.css => css/node.module.css.

In addition, since our template files are now in a templates sub-directory of a module, we should do the same for the CSS. Note that the toolbar, tour and views modules already do that.

This is part of the CSS standard described at http://drupal.org/node/1887922

Remaining tasks

Test if with this patch the CSS is being added to Drupal from its new location with its new name

User interface changes

none

API changes

The node.module's CSS files will have new names.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kim.pepper’s picture

Status: Active » Needs review
Issue tags: +Needs manual testing
FileSize
7.12 KB

Moved css files as per summary above.

Shyamala’s picture

Issue tags: +Novice, +mobile, +d8mux, +d8mux-css-cleanup

Tagging

Shyamala’s picture

Project: Drupal core » Drupal 8 Mobile Initiative
Issue summary: View changes

Updated summary

izus’s picture

Project: Drupal 8 Mobile Initiative » Drupal core
Status: Needs review » Needs work

Hi,
I tested the patch locally and Firebug was crying because it can't load node.edit.admin.css which is deleted. Actually we still hae two references to that file : one in seven_form_node_form_alter and the other in styles.css

kim.pepper’s picture

Status: Needs work » Needs review
FileSize
1.06 KB
8.18 KB

Thanks for find that. Fixed.

izus’s picture

Status: Needs review » Reviewed & tested by the community

Hi,
Looks good for me
Thanks

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work

This needs to be rerolled with proper git configuration: http://drupal.org/documentation/git/configure

nick_schuch’s picture

Status: Needs work » Needs review
FileSize
3.79 KB

Rerolled as per #6

izus’s picture

Status: Needs review » Needs work

#4 seems to do more than what #7 is doing (8.18 KB vs 3.79 KB)

kim.pepper’s picture

@izus I think it's just the diff of copied files @tim.plunkett was referring to in #6. See Optimize "diffs for renamed and copied files".

izus’s picture

Status: Needs work » Reviewed & tested by the community

Oh true @kim.pepper, Thanks
I reviwed it again , it seems good

Shyamala’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Created a single issue to rename all css files at: #1987066: Rename files to match CSS file naming convention based on request by webchick to make review easier. Thanks everyone on this issue, looking to your continued participation in the new issue.

Refer: http://drupal.org/node/1921610#comment-7375894

JohnAlbin’s picture

Project: Drupal core » Drupal 8 Mobile Initiative
Version: 8.x-dev »
Component: CSS » CSS architecture
Status: Closed (duplicate) » Reviewed & tested by the community

Sorry for the delay in reviewing these patches. My bronchitis flared up and I've been too sick until this week to get back into the issue queue.

Lots of discussions have happened in the interim. We just held a D8 Mobile Initiative meeting on Google+: https://plus.google.com/u/1/events/c0knva4lgh4vot0nun5lbfel9fc where we decided that we could make the CSS re-archicture work move faster by moving the work into a sandbox git repository. Then we could commit lots of little issues to the sandbox and roll larger, more-complete patches into Drupal 8’s issue queue. (per webchick's request)

So you're work is not lost! I'm moving this issue to the Mobile Initiative sandbox. :-)

mtift’s picture

Status: Reviewed & tested by the community » Fixed

Committed to the sandbox! :-)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

steps for testing