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" means something else in SMACSS. So we just need to rename it.

Proposed resolution

Rename Drupal module’s CSS files to match new file naming convention
eg. MODULE.base.css becomes MODULE.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 use a css sub-directory.

Here's the full list of files that need to be moved/renamed:

Old name/location New name/location
misc/dropbutton/dropbutton.base-rtl.css misc/dropbutton/dropbutton-rtl.css
misc/dropbutton/dropbutton.base.css misc/dropbutton/dropbutton.css
modules/block/block.admin.css modules/block/css/block.admin.css
modules/book/book.admin.css modules/book/css/book.admin.css
modules/book/book.theme-rtl.css modules/book/css/book.theme-rtl.css
modules/book/book.theme.css modules/book/css/book.theme.css
modules/color/color.admin-rtl.css modules/color/css/color.admin-rtl.css
modules/color/color.admin.css modules/color/css/color.admin.css
modules/comment/comment.theme-rtl.css modules/comment/css/comment.theme-rtl.css
modules/comment/comment.theme.css modules/comment/css/comment.theme.css
modules/contextual/contextual.base.css modules/contextual/css/contextual.module.css
modules/contextual/contextual.theme-rtl.css modules/contextual/css/contextual.theme-rtl.css
modules/contextual/contextual.theme.css modules/contextual/css/contextual.theme.css
modules/contextual/contextual.toolbar-rtl.css modules/contextual/css/contextual.toolbar-rtl.css
modules/contextual/contextual.toolbar.css modules/contextual/css/contextual.toolbar.css
modules/dblog/dblog-rtl.css modules/dblog/css/dblog.module-rtl.css
modules/dblog/dblog.css modules/dblog/css/dblog.module.css
modules/edit/css/edit.css modules/edit/css/edit.module.css
modules/entity_reference/css/entity_reference-rtl.admin.css modules/entity_reference/css/entity_reference.admin-rtl.css
modules/field/theme/field-rtl.css modules/field/css/field.module-rtl.css
modules/field/theme/field.css modules/field/css/field.module.css
modules/field_ui/field_ui.admin-rtl.css modules/field_ui/css/field_ui.admin-rtl.css
modules/field_ui/field_ui.admin.css modules/field_ui/css/field_ui.admin.css
modules/file/file.admin.css modules/file/css/file.admin.css
modules/filter/filter.admin-rtl.css modules/filter/css/filter.admin-rtl.css
modules/filter/filter.admin.css modules/filter/css/filter.admin.css
modules/forum/forum-rtl.css modules/forum/css/forum.module-rtl.css
modules/forum/forum.css modules/forum/css/forum.module.css
modules/help/help-rtl.css modules/help/css/help.module-rtl.css
modules/help/help.css modules/help/css/help.module.css
modules/image/image.admin.css modules/image/css/image.admin.css
modules/image/image.theme-rtl.css modules/image/css/image.theme-rtl.css
modules/image/image.theme.css modules/image/css/image.theme.css
modules/language/language.admin.css modules/language/css/language.admin.css
modules/layout/layout.admin.css modules/layout/css/layout.admin.css
modules/locale/locale.admin-rtl.css modules/locale/css/locale.admin-rtl.css
modules/locale/locale.admin.css modules/locale/css/locale.admin.css
modules/menu/menu.admin.css modules/menu/css/menu.admin.css
modules/node/node.admin.css modules/node/css/node.admin.css
modules/node/node.edit.admin.css modules/node/css/node.module.css
modules/openid/openid-rtl.css modules/openid/css/openid.module-rtl.css
modules/openid/openid.css modules/openid/css/openid.module.css
modules/openid/login-bg.png modules/openid/images/login-bg.png
modules/overlay/overlay-child-rtl.css modules/overlay/css/overlay-child-rtl.css
modules/overlay/overlay-child.css modules/overlay/css/overlay-child.css
modules/overlay/overlay-parent.css modules/overlay/css/overlay-parent.css
modules/shortcut/shortcut.base-rtl.css modules/shortcut/css/shortcut.module-rtl.css
modules/shortcut/shortcut.base.css modules/shortcut/css/shortcut.module.css
modules/shortcut/shortcut.theme-rtl.css modules/shortcut/css/shortcut.theme-rtl.css
modules/shortcut/shortcut.theme.css modules/shortcut/css/shortcut.theme.css
modules/shortcut/shortcut.png modules/shortcut/images/shortcut-add.png
modules/simpletest/simpletest.css modules/simpletest/css/simpletest.module.css
modules/system/system.admin-rtl.css modules/system/css/system.admin-rtl.css
modules/system/system.admin.css modules/system/css/system.admin.css
modules/system/system.diff.css modules/system/css/system.diff.css
modules/system/system.maintenance.css modules/system/css/system.maintenance.css
modules/system/system.base-rtl.css modules/system/css/system.module-rtl.css
modules/system/system.base.css modules/system/css/system.module.css
modules/system/system.plugin.ui.css modules/system/css/system.plugin.ui.css
modules/system/system.theme-rtl.css modules/system/css/system.theme-rtl.css
modules/system/system.theme.css modules/system/css/system.theme.css
modules/system/tests/system.base.css modules/system/tests/css/system.module.css
modules/taxonomy/taxonomy.css modules/taxonomy/css/taxonomy.module.css
modules/toolbar/css/toolbar.base-rtl.css modules/toolbar/css/toolbar.module-rtl.css
modules/toolbar/css/toolbar.base.css modules/toolbar/css/toolbar.module.css
modules/tour/css/tour-rtl.css modules/tour/css/tour.module-rtl.css
modules/tour/css/tour.css modules/tour/css/tour.module.css
modules/translation_entity/translation_entity.admin.css modules/translation_entity/css/translation_entity.admin.css
modules/update/update-rtl.css modules/update/css/update.admin-rtl.css
modules/update/update.css modules/update/css/update.admin.css
modules/user/user-rtl.css modules/user/css/user.module-rtl.css
modules/user/user.css modules/user/css/user.module.css
modules/views/css/views.base.css modules/views/css/views.module.css
modules/views_ui/css/views-admin-rtl.css modules/views_ui/css/views_ui.admin-rtl.css
modules/views_ui/css/views-admin.css modules/views_ui/css/views_ui.admin.css
modules/views_ui/css/views-admin.theme-rtl.css modules/views_ui/css/views_ui.admin.theme-rtl.css
modules/views_ui/css/views-admin.theme.css modules/views_ui/css/views_ui.admin.theme.css
modules/views_ui/css/views-admin.contextual.css modules/views_ui/css/views_ui.contextual.css

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

Remaining tasks

Need to clarify naming convention, refer tim.plunkett query at http://drupal.org/node/1921610#comment-7362724 MODULE.module.css, MODULE.admin.css, MODULE.admin.theme.css and MODULE.theme.css have been agreed to.

User interface changes

none

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

We decided to not introduce a new confusing term in 'skin', and continue to use the more Drupal-accurate 'theme'. Updated the issue summary.

Kevin Morse’s picture

Do you want one patch to do this all?

Kevin Morse’s picture

Status: Active » Needs review
FileSize
17.13 KB

Here's one that does book, edit, field, forum, image, node, openid, shortcut, simple_test, tour

comment
contextual
help
taxonomy
update
user

Are missing still but I am working on them.

tim.plunkett’s picture

Status: Needs review » Needs work

We're not using 'skin' anymore.
Also, this doesn't look like its renaming files at all, just adding new ones.

Kevin Morse’s picture

FileSize
26.21 KB

Okay this should do it.

All of the modules are updated. The only thing I didn't quite understand is

but requires adding a MODULE.admin.theme.css so admin themes can override the default theme

Thanks,

Kevin

Kevin Morse’s picture

Status: Needs work » Needs review
FileSize
26.22 KB

Woops forgot to change status.

Kevin Morse’s picture

Any way to cancel tests that don't need to be run? The only one that needs to run is the last one. Sorry for the extras.

rteijeiro’s picture

Kevin, just add -do-not-test to the patch name, for example: 1987066-rename-css-3-do-not-test.patch

And the testbot will not test this patch.

tim.plunkett’s picture

+++ b/core/modules/field/field.moduleundefined
index 5ac5e75..0c4f8fc 100644
--- a/core/modules/forum/forum.css

--- a/core/modules/forum/forum.css
+++ b/core/modules/forum/css/forum.module.cssundefined

+++ b/core/modules/forum/forum.pages.incundefined
@@ -73,6 +73,6 @@ function forum_page($forum_term = NULL) {
-  $build['#attached']['css'][] = drupal_get_path('module', 'forum') . '/forum.css';
+  $build['#attached']['css'][] = drupal_get_path('module', 'forum') . '/css/forum.css';

We must have no test coverage for this. The file added is the wrong name.

Otherwise it looks good, thanks @Kevin Morse.
If you need a test cancelled, ask in #drupal-contribute, there are several qa.d.o users with access to do that (myself included).

Kevin Morse’s picture

FileSize
26.23 KB

Okay this should fix that mistake.

dealancer’s picture

Good idea those patch also covers issues, that were already done some time ago but were closed as duplicates: http://drupal.org/project/issues/search/drupal?issue_tags=d8mux-css-cleanup.

jwilson3’s picture

I object.

I've watched the arguments for/against "skin" change, and am happy to see that things are staying as "theme". Noone seems to have questioned the reasoning or bothered to explain in the issue summary why the change from "base" to "module".

Note that we are also proposing a new "drupal.base.css" in #1924430: Add drupal.base library for base CSS styles and with this issue all other modules' "base" css is being converted to "modulename.module.css". We will have:

drupal.base.css
node.module.css
node.admin.css
node.admin.theme.css
node.theme.css

So, why have this special case naming convention *just* for drupal.base.css?

I like "base". It's not that complicated for both back-end module devs or front-end themers to understand the concept of a "base" stylesheet -- whether it pertains to Drupal as a whole, or a specific module or theme -- particularly when the "thing" that it is a base of is right there in the file's name.

Additionally, the term "base" inherently induces and reinforces the existing concept of hierarchy and makes it plainly obvious which stylesheet of the 3 or four that a module provides is loaded first on the page. And anyone who understands the concept of stylesheet rule order and inheritance will understand that a "drupal.base.css" will come before any other "modulename.base.css", so I dont think there is any reason to think that using "base" for modules would pollute the namespace used for the Drupal base stylesheet.

This seems like its introducing more complexity rather than clarity, but maybe thats just me.

I would propose we leave "base" stylesheets just as they are, which will allow the theming layer to not be tied to the term "module" and could open the way for *components*, *themes*, *plugins*, *distros* etc to have their own base stylesheet.

Kevin Morse’s picture

@jwilson3 I agree... However, I'm not about to go out and redo that patch without some consensus.

Kevin Morse’s picture

#10: 1987066-rename-css-10.patch queued for re-testing.

jwilson3’s picture

I just re-read:

https://smacss.com/book/type-base

and

https://smacss.com/book/type-module

(it had been awhile).

And now I understand from where my confusion was stemming. The problem boils down to the fact that Drupal uses the term module to mean something completely different than SMACSS' meaning.

Drupal module: a grouping of backend and possibly front end code and web assets that works together to provide a specific feature on a website.

SMACSS module: a single discrete component (read: chunk of html) on the page.

A Drupal module, could therefore contain many many SMACSS' modules inside it, each default theme hook implementation could be a separate SMACSS module. Using the Node module as an example, the Recent Content Block, the Node Search Admin, and each view-mode could represent a SMACSS module, requiring different component-level stylesheet rules.

I expect that I won't be the first person to misinterpret this.

IMHO, adopting this naming convention for css files pollutes the Drupal terminology namespace for "modules", and creates a WTF, because other components, including themes, install profiles, etc, could all conceivably contain a css file called X.module.css in order to follow the SMACSS convention.

Kevin Morse’s picture

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

#10: 1987066-rename-css-10.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +mobile, +d8mux, +d8mux-css-cleanup

The last submitted patch, 1987066-rename-css-10.patch, failed testing.

Kevin Morse’s picture

Is there any point in re-rolling this patch? Who has the final say regarding module.css vs. base.css?

http://drupal.org/node/1921610#comment-7413396 seems to have made up its mind?

jwilson3’s picture

If I understand correctly No need to keep re-rolling this, per Comment #36 on #1921610-36: [Meta] Architect our CSS.

it looks like this is being done in a sandbox for the time being.

JohnAlbin’s picture

Assigned: Unassigned » JohnAlbin
Status: Needs work » Needs review
FileSize
69.17 KB

I'm uploading the patch we have from the 8.x-css branch in the sandbox. Let's see what the testbot says.

There is a GIGANTIC list of contributors (many 1st timer core contributors) to this patch. I'll list them if the testbot says its green.

Status: Needs review » Needs work
Issue tags: -mobile, -d8mux, -d8mux-css-cleanup

The last submitted patch, 1987066-20-rename-css-files.patch, failed testing.

rteijeiro’s picture

Status: Needs work » Needs review
Issue tags: +mobile, +d8mux, +d8mux-css-cleanup

#20: 1987066-20-rename-css-files.patch queued for re-testing.

JohnAlbin’s picture

failed to checkout from git

Huh. trying again.

JohnAlbin’s picture

Issue summary: View changes

clarified that we're ditching 'skin'

JohnAlbin’s picture

Issue summary: View changes

Remove todo

JohnAlbin’s picture

Title: Rename CSS files to match new file naming convention » Rename files to match CSS file naming convention

IMHO, adopting this naming convention for css files pollutes the Drupal terminology namespace for "modules", and creates a WTF, because other components, including themes, install profiles, etc, could all conceivably contain a css file called X.module.css in order to follow the SMACSS convention.

The proposal is not a SMACSS naming convention for Drupal CSS files. *.module.css and *.theme.css refer to the Drupal concepts, not the SMACSS concepts. We want to rename the current *.base.css files because "base" isn’t a known Drupal term and it conflicts with SMACSS’ "base" concept.

Just to clarify, this is making our current CSS file naming 100% consistent across all core modules. We currently have a BAT system that is inconsistently implemented. After we make this change, we still need to componentize all of Drupal core's CSS per #1921610: [Meta] Architect our CSS which should break down these monolithic CSS files into smaller chunks. But, first things first; let's fix this crap now. :-)

When this gets committed, here's the commit message which includes all the contributors in the sandbox. Many of them are first time contributors that attended DrupalCamp Singapore. :-)

Issue #1987066 by akmalfikri, carwin, chaz.chumley, ckrina, criticny, dcam, dealancer, echoz, Gomez_in_the_South, j0rd, jchin1968, JohnAlbin, Kevin Morse, kim.pepper, mtift, nick_schuch, rteijeiro and svenryen: Rename files to match CSS file naming convention

ry5n’s picture

@jwilson3 Adding to what @JohnAlbin said in #24: “module” will always refer to a Drupal module. When talking about SMACSS in Drupal, the consensus is to use the term “component” to refer to a SMACSS module.

I’ve gone through #20 line-by-line but haven’t tested the patch. A bit gruelling so I could have missed things. Needs more eyeballs, and testing.

The only thing that really sticks out is the existence of files outside the module/theme/admin/admin.theme scheme, e.g. system.maintenance.css, system.plugin.ui.css. Are they an issue?

+++ b/core/modules/menu/menu.admin.incundefined
diff --git a/core/modules/node/node.edit.admin.css b/core/modules/node/css/node.module.css
rename from core/modules/node/node.edit.admin.css
rename to core/modules/node/css/node.module.css

Both node.admin.css and node.edit.admin.css are admin styles, but they are conditionally loaded in different situations. Neither is used for public pages, so renaming one to node.module doesn’t seem right here. Perhaps node.admin.css → node.admin.revisions.css and node.edit.admin.css → node.admin.node-form.css?

+++ b/core/modules/translation_entity/translation_entity.moduleundefined
@@ -362,7 +362,7 @@ function translation_entity_library_info() {
+      $path . '/css/translation_entity.admin.css' => array(),

Nitpick: can we take the opportunity to dasherize this file name?

echoz’s picture

Status: Needs review » Needs work

#20 patch results in error: patch failed: core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php

I edited that file updating the paths and file names, but it still stumped me at the top one ~ line 46.

rteijeiro’s picture

Yes, I am looking into it. It seems needing rebase against the latest changes of the 8.x branch.

JohnAlbin’s picture

Status: Needs work » Needs review
FileSize
69.17 KB

I've resolved the merge conflict that occurs when pulling in the latest 8.x branch.

JohnAlbin’s picture

Whoops! Wrong patch file!

echoz’s picture

Status: Needs review » Needs work

code review good, but we missed some.
toolbar.base.css
views.base.css
dropbutton.base.css (under misc)

JohnAlbin’s picture

Status: Needs work » Needs review
FileSize
76.77 KB

In addition to echoz's comments, I noticed that views_ui module doesn't follow the MODULE_NAME.thingie.css standard all our other modules use. So I've change its views-admin.* files to views_ui.*

New patch!

echoz’s picture

Status: Needs review » Reviewed & tested by the community

code + source look good.

echoz’s picture

Issue summary: View changes

Remove cruft about "theme" from issue summary that is no longer relevant.

JohnAlbin’s picture

Issue summary: View changes

Add full list of files that are moved or renamed.

JohnAlbin’s picture

I've updated the issue summary to provide a full list of CSS files that have been moved/renamed in the patch in #31.

The patch was generated from the 8.x-css branch of the Drupal 8 mobile initiative sandbox: http://drupal.org/sandbox/johnalbin/1488942

ry5n’s picture

Status: Reviewed & tested by the community » Needs work

I’m doing manual testing and checking the browser console for 404s. Looks like there are still some paths to update (overlay and dblog modules so far). Working on a patch as I go.

ry5n’s picture

Status: Needs work » Needs review
FileSize
1.33 KB
78.03 KB

Went through as much of the admin UI and Bartik as I could. Seems like it’s just those paths in overlay and dblog modules that needed updating.

I rolled this on a local 8.x branch, so I guess this would need to be applied to the Mobile sandbox as well.

Status: Needs review » Needs work
Issue tags: -mobile, -d8mux, -d8mux-css-cleanup

The last submitted patch, 1987066-35-rename-css-files.patch, failed testing.

echoz’s picture

Status: Needs work » Needs review

#35: 1987066-35-rename-css-files.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1987066-35-rename-css-files.patch, failed testing.

ry5n’s picture

Status: Needs work » Needs review
Issue tags: +mobile, +d8mux, +d8mux-css-cleanup

#35: 1987066-35-rename-css-files.patch queued for re-testing.

rteijeiro’s picture

Patch applied on the latest 8.x and Mobile sandbox and applies well.

Checked for 404 errors and everything seems ok. Ready for RTBC or should I check other things?

ry5n’s picture

@rteijeiro We should probably test this in Stark as well. If you have time, you could do a run-through of Bartik and Stark as admin themes. After that, if we see no issues I’d say RTBC.

rteijeiro’s picture

Rerolled the patch to apply with the latest 8.x changes. There were conflicts with core/modules/help/lib/Drupal/help/Controller/HelpController.php and core/modules/block/block.admin.inc files.

Checked with Bartik and Stark also as Admin themes. No 404 errors found.

echoz’s picture

Status: Needs review » Needs work

@rteijeiro, your blank lines have a whitespace. It's really helpful to set your text editor to strip whitespace.

rteijeiro’s picture

Hi echoz,

I didn't find whitespaces in my changes. Please, let me know where did you find them an I will reroll the patch. Also I have noticed that the core/modules/help/lib/Drupal/help/Controller/HelpController.php file is not in the previous patch #42 (something wrong happened).

rteijeiro’s picture

Status: Needs work » Needs review
FileSize
78.08 KB

I guess I fixed the whitespaces problem and also included the changes of the core/modules/help/lib/Drupal/help/Controller/HelpController.php file.

echoz’s picture

Status: Needs review » Needs work

/help.css is changed to /css/help.module.css

this patch left out ".module" there.

rteijeiro’s picture

Status: Needs work » Needs review
FileSize
78.16 KB

Sorry, I forgot the file name :(

Hope now it's right. Let's see what says the testbot.

Status: Needs review » Needs work

The last submitted patch, 1987066-47-rename-css-files.patch, failed testing.

echoz’s picture

Status: Needs work » Needs review
FileSize
78.61 KB

I found something that was originally missed. The *toolbar* shortcut icon image was mistakenly referenced also for the shortcut add/remove icon, which was named the same and not in the images folder, it was with the other module files. I've renamed and moved the add shortcut icon into the images folder and adjusted the css to point to it.

Also cleaned up 2 places with double blank lines.

Status: Needs review » Needs work

The last submitted patch, 1987066-49-rename-css-files.patch, failed testing.

echoz’s picture

Status: Needs work » Needs review
FileSize
76.25 KB

openid got removed from core, re-roll.

rteijeiro’s picture

Thanks @echoz. Now applies well. Checked and no 404 errors found. Maybe RTBC finally?

echoz’s picture

@rteijeiro, if you've done your typical testing of this (perhaps as ry5n suggested in #41), it should be ok.

rteijeiro’s picture

Status: Needs review » Reviewed & tested by the community

@echoz, forgot to comment that, sorry. Checked with Stark, Seven and Bartik as default and admin themes. No 404 errors.

Marked as RTBC. Feel free to change it if you notice some errors.

echoz’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
76.26 KB

Lots of commit action in core, re-roll. Just line #'s changed. Let's get this committed!

JohnAlbin’s picture

> Just line #'s changed

If its just line numbers, it doesn't need a reroll. That just knocks the patch out of the list of issues the committers are looking at.

echoz’s picture

crap, I was just trying to answer that for myself, but too late.

JohnAlbin’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC. :-)

alexpott’s picture

Title: Rename files to match CSS file naming convention » Change notice: Rename files to match CSS file naming convention
Priority: Normal » Critical
Status: Reviewed & tested by the community » Active
Issue tags: +Needs change record

Committed 2432c02 and pushed to 8.x. Thanks!

swentel’s picture

Hmm, simpletest looks so white now ...

swentel’s picture

Issue tags: +Needs change record
swentel’s picture

Status: Active » Needs review
FileSize
796 bytes

Forgot one ..

rteijeiro’s picture

Nice catch @swentel, thanks!! :)

yched’s picture

Title: Change notice: Rename files to match CSS file naming convention » [Hotfix] Change notice: Rename files to match CSS file naming convention
Status: Needs review » Reviewed & tested by the community

Indeed, it's quite impossible to work on tests right now :-)
#62 fixes it fine.

Quick commit ?

alexpott’s picture

Title: [Hotfix] Change notice: Rename files to match CSS file naming convention » Change notice: Rename files to match CSS file naming convention
Status: Reviewed & tested by the community » Active

Committed ba51ddf and pushed to 8.x. Thanks!

Guess it shows that I never run tests in the ui :)

JohnAlbin’s picture

Oh, doh! Looks like credits only went to Kevin Morse, JohnAlbin, rteijeiro, echoz, ry5n. I should have re-posted the credit from comment #24 again since this patch was the combined effort of many mini-issues in the D8 mobile sandbox.

Issue #1987066 by akmalfikri, carwin, chaz.chumley, ckrina, criticny, dcam, dealancer, echoz, Gomez_in_the_South, j0rd, jchin1968, JohnAlbin, Kevin Morse, kim.pepper, mtift, nick_schuch, rteijeiro and svenryen: Rename files to match CSS file naming convention

All of these people helped with the combined patch for this issue. And they are all awesome! Thank you all!

JohnAlbin’s picture

Issue summary: View changes

Update CSS file list

YesCT’s picture

https://drupal.org/contributor-tasks/draft-change-notification
is instructions for drafting a change notice.
Anyone can try the first draft. :)
Just make a comment saying you are going to try, and ask questions if you have any.

Shyamala’s picture

I am going to try to write the change notice.

Shyamala’s picture

Assigned: JohnAlbin » Shyamala

assigning to myself

Shyamala’s picture

Status: Active » Needs review

Summary

As part of Drupal 8 Mobile Initiative the entire Drupal CSS is getting re-architected based on SMACSS. Refer https://drupal.org/node/1886770 for details on the new architecture.

One of the tasks of this Architect CSS effort is to rename and organise the CSS files. CSS rulesets are grouped into logical files, that can be aggregated efficiently and that can be easily overridden by themers.

CSS files for Drupal 8 modules, Renaming tasks included:

  1. MODULE.module.css - This file should hold the minimal styles needed to get the module's functionality working. This includes layout, component and state styles. Any needed RTL styling would go in a file named MODULE.module-rtl.css.
  2. MODULE.theme.css - This file should hold extra styles to make the module's functionality aesthetically pleasing. This usually just consists of theme styles. Any needed RTL styling would go in a file named MODULE.theme-rtl.css.
  3. MODULE.admin.css - This file should hold the minimal styles needed to get the module's admin screens working. This includes layout, component and state styles. On admin screens, the module may choose to load the *.module.css in addition to the *.admin.css file. Any needed RTL styling would go in a file named MODULE.admin-rtl.css.
  4. MODULE.admin.theme.css - This file should hold extra styles to make the module's admin screens aesthetically pleasing. This usually just consists of theme styles. Any needed RTL styling would go in a file named module_name.admin.theme-rtl.css.

As a part of this issue All Drupal module’s CSS files are renamed to match new file naming convention
eg. MODULE.base.css becomes MODULE.module.css. In addition, CSS files are moved to the css subdirectory.

For details on CSS file organization in Drupal 8 refer: https://drupal.org/node/1887922

JohnAlbin’s picture

Looks good to me! Go ahead and make the change notice with that language, Shyamala.

Shyamala’s picture

Title: Change notice: Rename files to match CSS file naming convention » Rename files to match CSS file naming convention
Assigned: Shyamala » Unassigned
Status: Needs review » Fixed
Issue tags: -Needs change record

Change record created at https://drupal.org/node/2016305

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

Anonymous’s picture

Issue summary: View changes

added shortcut-add.png rename/move explained in #49