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 Book module does not yet follow the guidelines.

Proposed resolution

Rename book/book.admin.css into book/css/book.admin.css
Rename book/book.theme.css into book/css/book.skin.css
Rename book/book.theme-rtl.css into book/css/book.skin-rtl.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

This issue is blocked by #1924436: Remove separate CSS_AGGREGATE_SYSTEM aggregate file and fix drupal_add_library() to aggregate CSS properly

After this issue's completion, we still have all the other steps outlined at #1921610: [Meta] Architect our CSS.

User interface changes

none

API changes

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

By akmalfikri and Gomez_in_the_South

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

akmalfikri’s picture

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

Added contributor

akmalfikri’s picture

Project: Drupal 8 Mobile Initiative » Drupal core
Status: Active » Needs review
FileSize
4.1 KB

Here's the patch

JohnAlbin’s picture

I reviewed this patch and the CSS is being added to Drupal from its new location with its new name. It is RTBC from me, but I'll let the testbot review first. :-)

JohnAlbin’s picture

Status: Needs review » Reviewed & tested by the community

Huzzah!

JohnAlbin’s picture

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

Changed the new css file name

Shyamala’s picture

Project: Drupal 8 Mobile Initiative » Drupal core
Issue tags: +Novice, +mobile, +d8mux, +d8mux-css-cleanup

Tagging

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Novice

We need to re-roll the patch so that git recognises that these are just file moves... @akmalfikri see https://drupal.org/documentation/git/configure... especially the part on Optimize diffs for renamed and copied files

alexpott’s picture

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

Updated issue summary.

alexpott’s picture

Project: Drupal 8 Mobile Initiative » Drupal core
Issue tags: +Novice

D.O I did not remove that tag :)

akmalfikri’s picture

Status: Needs work » Needs review
FileSize
5.6 KB

Hi,

Here's the rerolled patch with the correct configuration stated here : http://drupal.org/documentation/git/configure

akmalfikri’s picture

Accidentally added shorcut module's code with the patch. Here's the correct one.

UPDATE :
Ignore this one. Apparently there is something wrong with my branching

akmalfikri’s picture

Hi,

After fiddling around with my branches, finally I get it correctly, I hope.

dcam’s picture

Status: Needs review » Reviewed & tested by the community

#9 looks good. The patch was rerolled and is correctly renaming the files instead of deleting/adding. I found no instances of the old file locations still being used in code.

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. Refer: http://drupal.org/node/1921610#comment-7375894

Shyamala’s picture

Shyamala’s picture

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.

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 » Needs work

Per #1921610-18: [Meta] Architect our CSS and further pushback against "skin", we are not renaming .theme.css files to .skin.css.

carwin’s picture

Assigned: akmalfikri » carwin
mtift’s picture

Assigned: Unassigned » carwin
Status: Needs review » Fixed

[EDIT: mistakenly marked fixed]

carwin’s picture

Assigned: carwin » Unassigned
FileSize
613 bytes

Attaching patch that simply renames the css files and moves them into a 'css' directory.

carwin’s picture

Status: Needs work » Needs review
mtift’s picture

Actually, I think we still need those file path changes

dcam’s picture

What's going on in this issue? #17 says this was fixed. Was this committed to the sandbox?

If not, #20 is the same as #9, which I RTBC'ed earlier. If it's not committed, #20 is RTBC.

carwin’s picture

@dcam - The issue got repurposed, our goal right now is JUST renaming the files, not actually updating the CSS. That said, I have no idea if mtift actually committed to the sandbox yet.

dcam’s picture

Granted, I haven't been involved in the initiative - I only followed the issue here from the core queue, but it seems to me that not breaking the URLs in these files is pretty important. It has nothing to do with trying to change things about the way the CSS is structured. It's just preventing a regression.

mtift’s picture

Assigned: carwin » Unassigned

Now it's committed to the sandbox! :-)

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

Anonymous’s picture

Issue summary: View changes

Updated issue summary.