Problem

Seven is the only theme which hasn't a 'css' directory where the CSS files are. Is there a reason for that? I thought that all modules and themes should have the CSS in a 'css' directory.

Remaining tasks

- #31: update relative image paths in the css to ../images
- #39: update relative image paths in the css to ../../../misc
- review this new patch

Comments

echoz’s picture

+1 for a css directory for Seven's css files.

There's been a series of recent issues that have put us in re-roll hell, welcome to the party!

Besides your's listed here, there's plenty of current issues that touch Seven's style.css pending, so I'd also like to postpone, although the reality is whenever this would get committed, it risks needed re-rolls.

yannickoo’s picture

Status: Active » Postponed

So then let us notice all the issues :)

echoz’s picture

@yannickoo, patches including future changes won't apply correctly until the dependant patch gets committed. Good idea letting things with Seven settle down a bit.

lewisnyman’s picture

lewisnyman’s picture

lewisnyman’s picture

Status: Postponed » Active
Issue tags: +frontend, +CSS

Reopening :-) Lets do this!

lewisnyman’s picture

Status: Active » Needs review
StatusFileSize
new117.36 KB

Patch

Status: Needs review » Needs work

The last submitted patch, 7: drupal-2033211-move-css-7.patch, failed testing.

lewisnyman’s picture

Status: Needs work » Needs review
StatusFileSize
new120.06 KB

Hopefully fixed the tests

Status: Needs review » Needs work

The last submitted patch, 9: drupal-2033211-move-css-9.patch, failed testing.

Anonymous’s picture

Status: Needs work » Needs review
StatusFileSize
new63.18 KB

Tests amended to look for /css with all CSS files in Seven.

tim.plunkett’s picture

StatusFileSize
new6.52 KB

This needs to also remove the old CSS, not just add the new files.
That way git will treat it as a file move.
Note the difference in file size.

Anonymous’s picture

Thanks Tim, I didn't notice that.

echoz’s picture

I believe the tip here is configure .gitconfig using: renames = copies
https://drupal.org/documentation/git/configure

lewisnyman’s picture

12: css-2033211-12.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 12: css-2033211-12.patch, failed testing.

lewisnyman’s picture

lewisnyman’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new6.59 KB

Rerolled. Would love to get this in soon, then we can start breaking up style.css into components.

sqndr’s picture

The reroll looks good to me, Lewis! http://cl.ly/image/0O0c3X143e1Q.

sqndr’s picture

Status: Needs review » Reviewed & tested by the community

Marking as RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 18: css-2033211-18.patch, failed testing.

lauriii’s picture

Issue tags: +Needs reroll
lewisnyman’s picture

Issue tags: -Needs reroll
StatusFileSize
new6.57 KB

I'm having trouble with my local mysql, here's the reroll. Please test :)

lewisnyman’s picture

Status: Needs work » Needs review
sqndr’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs reroll

Patch does not apply any more.

chx’s picture

Title: Move CSS files into css directory » Move Seven CSS files into css directory

LewisNyman queued 23: css-2033211-23.patch for re-testing.

sqndr’s picture

Issue tags: -Needs reroll

Sorry, I was wrong ;-) Looks good!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 16e60c4 and pushed to 8.x. Thanks!

  • alexpott committed 16e60c4 on 8.x
    Issue #2033211 by LewisNyman, tim.plunkett, JamesLefrère | yannickoo:...
alexpott’s picture

Status: Fixed » Needs work

I've reverted this... noticed that we're missing updating the image paths in the css to ../images

Reverted 2c93dd6 and pushed to 8.x.

tim.plunkett’s picture

The revert wasn't pushed.

  • alexpott committed 2c93dd6 on 8.x
    Revert "Issue #2033211 by LewisNyman, tim.plunkett, JamesLefrère |...
sun’s picture

For the short period it was in HEAD, this commit revealed a separate problem:

#2304199: Theme .info.yml file changes are not picked up even after clearing cache or running rebuild.php

That should not hold up this patch though; it can be committed again once the CSS URIs have been adjusted.

sqndr’s picture

Issue summary: View changes
sqndr’s picture

Assigned: Unassigned » sqndr
sqndr’s picture

StatusFileSize
new7.85 KB
new3.03 KB

I think this is it?

sqndr’s picture

Assigned: sqndr » Unassigned
Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Needs work

install-page.css also references images/noise-low.png

Also, style.css references the images in the misc folder relatively, so it needs updating to, dialog.theme.css was already in the css folder so it doesn't need updating.

jwilson3’s picture

Issue summary: View changes
StatusFileSize
new4.97 KB
new13.08 KB
  1. +++ b/core/themes/seven/css/jquery.ui.theme.css
    @@ -64,26 +64,26 @@
    -  background-image: url(images/ui-icons-222222-256x240.png);
    +  background-image: url("../images/ui-icons-222222-256x240.png");
    ...
     .ui-state-default .ui-icon {
    -  background-image: url(images/ui-icons-888888-256x240.png);
    +  background-image: url("../images/ui-icons-888888-256x240.png");
     }
    ...
     .ui-state-active .ui-icon {
    -  background-image: url(images/ui-icons-454545-256x240.png);
    +  background-image: url("../images/ui-icons-454545-256x240.png");
    ...
     .ui-state-highlight .ui-icon {
    -  background-image: url(images/ui-icons-800000-256x240.png);
    +  background-image: url("../images/ui-icons-800000-256x240.png");
    ...
     .ui-state-error-text .ui-icon {
    -  background-image: url(images/ui-icons-ffffff-256x240.png);
    +  background-image: url("../images/ui-icons-ffffff-256x240.png");
    

    We don't need to add " or ' characters for images inside CSS URLs: url(../images/image-name.png) will suffice, and this is more consistent with the existing unchanged styles in the theme.

  2. Fixed relative image urls found in the misc folder.
  3. dialog.theme.css was already in the css folder so it doesn't need updating.

    Yes, that's true, but the urls were quoted with single quotes so got changed in my patch anyway.

jwilson3’s picture

Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new415.06 KB
new397.9 KB
new578.9 KB
new405.67 KB

@jwilson3 Sounds good to me, thanks!

I have attached some screenshots of pages that look identical.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
.ui-progressbar .ui-progressbar-value {
  background: #0072b9 url(../../misc/progress.gif);
  height: 1.5em;
}

in jquery_ui.theme.css is still incorrect.

jwilson3’s picture

Status: Needs work » Needs review
StatusFileSize
new0 bytes
new439 bytes

Fixed #43.

jwilson3’s picture

StatusFileSize
new11.59 KB

And now, a patch with actual code.

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

@alexpott @jwilson3 Thanks both. I had searched over all the "url(" instances in seven just to double check, it looks good to me.

sqndr’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/themes/seven/css/dialog.theme.css
@@ -77,7 +77,7 @@
-  background-image: url("../../../misc/loading-small.gif");
+  background-image: url(../../../misc/loading-small.gif);

+++ b/core/themes/seven/css/install-page.css
@@ -8,16 +8,16 @@
-    url('images/noise-low.png'),
+    url(../images/noise-low.png),

Hm. There's been A LOT of changes in these quotes. Now they are all removed again. In the W3C documentation, they always use quotes for the url("") property (eg. http://www.w3.org/TR/CSS2/colors.html). CSS Formatting guidelines also states: 'For property values that require quotes, use double quotes instead of single quotes, e.g.' Now, I don't know if url("") requires quotes or not, but in Bartik it's the same mess. Sometimes no quotes, sometimes single quotes and sometimes double quotes.

So: what is the default for this property? No quotes or double quotes (I suppose single quotes is no option). Could we update the documentation of the CSS Formatting guidelines (https://www.drupal.org/node/1887862) about what the standard is, to sort out this mess?

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

Good idea, as far as I know there isn't a modern browser that requires the quotes, so they are redundant. Would you like to add the direction in our standards? :) We might need a separate issue for this.

Marking this back to RTBC. We don't have a standard yet so there's nothing to conflicts with this patch.

sqndr’s picture

I've just added a line to the documentation with background-image: url(path) as an example. Reason: there's still some quotes in e.g. Bartik. Since the property does not require quotes (it's optional) we don't add them.

lewisnyman’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed f0c9d00 and pushed to 8.x. Thanks!

  • alexpott committed f0c9d00 on 8.x
    Issue #2033211 by jwilson3, LewisNyman, sqndr, tim.plunkett,...

Status: Fixed » Closed (fixed)

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