Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For example, the View and Edit tabs become a bulleted list. (When I switch to Garland the tabs are fine.)
Breadcrumbs are each on a new line.
(I did not customize the presentation of the tabs or breadcrumbs)
Also other float or spacing issues.
See screenshot.
Any ideas appreciated!
Comment | File | Size | Author |
---|---|---|---|
#4 | starterkit-compressed.png | 14.44 KB | stellarvisions |
breadcrumbs.png | 9.81 KB | stellarvisions | |
view-edit copy.png | 11.85 KB | stellarvisions |
Comments
Comment #1
JohnAlbinI think this is a symptom of this bug #2056331: Styling for messages, form items, "more" links, and pagers missing from upgraded sub-themes
Please try the work-around described in that issue. If it doesn't fix your problem, please re-open this issue. Thanks!
Comment #2
stellarvisions CreditAttribution: stellarvisions commentedI reviewed this thread but am not sure what steps to take for the workaround. Can you reference a specific comment? My subtheme was built directly from 5.3 STARTERKIT, not upgraded.
thanks!
Comment #3
echoz CreditAttribution: echoz commentedThe fix is now in 7.x-5.x-dev and a new 7.x-5.4 release is forthcoming.
Comment #4
stellarvisions CreditAttribution: stellarvisions commentedI downloaded zen-7.x-5.x-dev.tar.gz and installed. It did not work for me, so to eliminate any factors I might have introduced I enabled the STARTERKIT subtheme and made default (I made no changes to it).
When I choose "Aggregate and compress CSS files" the same thing happens (see attached).
(note that this is not true if Zen itself is the theme).
thanks for your quick responses.
Comment #5
naevehane CreditAttribution: naevehane commentedI am using the most recent version of the Zen responsive. I created a child theme and have customized that. I get the same error as others in this thread regarding problems when aggregating CSS. After my basic testing I found that 2 css files were not being included despite being called in the "styles" css. One was a custom css of my own for columns within content and the other was "misc.css" (../mytheme/components/misc.css).
To resolve my problem I removed the calls from the "styles" css and added them in the "mytheme.info" file (/mytheme/mytheme.info) below the lines beginning "Then we add our own stylesheet." Here, I added "stylesheets[all][] = css/components/misc.css" and another line with my custom columns css too. At this point, things seem to work OK. I haven't done extensive browser testing but I'm feeling pretty good about it's being OK.
I only hope there aren't similar issues with the JS Aggregate feature since those could be far less obvious to reveal themselves. ... fingers are crossed I guess.
Comment #6
wrender CreditAttribution: wrender commentedI am seeing the same issue. When we turn on "Aggregate and compress CSS files." option, it appears as though the "@import "components/misc.css";" line in the styles.css file does not get processed.
I have tried the patch from bug #2056331 but I think this is a totally different issue.
Adding "stylesheets[all][] = css/components/misc.css" to our mytheme.info file appears to have worked as a workaround for the time being. Thanks naevehane.
Comment #7
echoz CreditAttribution: echoz commentedI have reproduced this bug.
In 7.x-5.x-dev using css, not sass, with aggregate css turned on, the css from components/misc.css is indeed not used. The css from layouts/responsive.css *is* used. Using sass with aggregate css enabled works as expected, and using either sass or css work fine with aggregate css not enabled.
Comment #8
JohnAlbinOk. So this is a blocker for the release of 7.x-5.4. Taking a look now.
Comment #9
JohnAlbinFrom this file:
The aggregated file is automatically pulling in the contents of normalize.css and layouts/responsive.css, but it's not including components/misc.css or print.css. This is definitely a core bug. :-p
Investigating a work-around.
Comment #10
JohnAlbinHere's the core bug: #1198904: drupal_load_stylesheet() fails to load @import files in different directories
Comment #11
JohnAlbinThere's no work-around except to not put CSS files into different sub-directories. :-p
Comment #12
JohnAlbinSince this is a core bug with no feasible work-around (except stop putting the CSS files in sub-directories), I'm going to roll a 7.x-5.4 before this is fixed.
For this bug, you'll have to wait until Drupal 7 is fixed or apply the patch from #1198904: drupal_load_stylesheet() fails to load @import files in different directories
Comment #13
wrender CreditAttribution: wrender commentedAwesome. Thanks JohnAlbin.
Comment #14
OMD CreditAttribution: OMD commentedWhat is the reason for keeping the style sheets in various directories? Isn't it the obvious solution to just keep them in the main css directory?
Comment #15
Maya2013 CreditAttribution: Maya2013 commented@ naevehane:
I love you! You made my day!!!! I am almost crying! This problem almost killed me, and you solved it for me!!!!!!! Thank you so much!
Comment #16
Antti Mäkelä CreditAttribution: Antti Mäkelä commented#5 solution worked for me on Zen 7.x-5.4.
also this, which was easier fix: https://drupal.org/node/1198904
my style.css :
@import "normalize.css";
/* Layout rules */
@import "layouts/fixed.css";
/* Component (SMACSS module) rules */
@import "../components/misc.css";
/* Optionally, add your own components here. */
@import "print.css";
! - Added ../ to misc.css - !
Comment #17
echoz CreditAttribution: echoz commentedSetting this back as #8 through #12 for proper pending fix.
Comment #18
Christopher James Francis Rodgers CreditAttribution: Christopher James Francis Rodgers commentedChanging back to "Fixed":
I tested to see if this is still a problem,
and this is no longer an issue for either of
- Zen 7.x-5.x-dev
...or...
- Zen 7.x-5.4.
As I understand it,
this issue was related to a Drupal 7 Core 'bug'
that no longer exists.
Comment #19
Christopher James Francis Rodgers CreditAttribution: Christopher James Francis Rodgers commentedAlso:
Please note that Zen 7.x-5.4
is substantially different from Zen 7.x-3.2.
You must use the Zen base folder "zen" from Zen 7.x-5.4;
since if you are simply using
a copy of STARTERKIT from Zen 7.x-5.4
along with the Zen base folder "zen" from Zen 7.x-3.2
this problem will persist for you.