Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
CSS
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Feb 2015 at 11:17 UTC
Updated:
25 Feb 2015 at 22:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mortendk commentedComment #2
mortendk commentedComment #3
mortendk commentedComment #4
manuel garcia commentedLooks good to me.
quickedit.icons.cssgets pritned right afterquickedit.theme.css, so the order the css rules are placed in the insidequickedit.theme.cssby the patch is correct.Comment #5
manuel garcia commentedTested it with Bartik and Stark themes, both have no visual regressions.
Comment #6
wim leersWe have an
<module name>.icons.cssfile for every module that uses/misc/icons/<RGB color>/<name>.svgfor icons anywhere in the module. This simplifies overriding just the icons.IOW, it allows:
It's true that we don't have an Icon API in core, but by keeping the icons in separate CSS files, we at least keep things more organized, easier to find, and hence, easier for contrib to provide such an Icon API.
Comment #7
mortendk commented@wim hmm we need to get that info into the css documentation as its mentioned there with the MAT file naming #1887922: [Obsolete] CSS file organization
- do we have a write up on it somewhere (sorry im lazy) why i wanted to move all theme into theme.css - cause in the end of it icons are still theme ?
Im thinking we need to rename at least to modulename.icon.theme.css, in that way we can still filter out all visual css by killing it on a *.theme.css
Comment #8
wim leersBut it does follow the SMACSS rules just fine. It's not like anything in the
themecategory MUST be in a singlemodule_name.admin.theme.cssfile, right?Renaming to
*.icons.cssto*.icons.theme.csssounds fine, that's a great TX improvement.Comment #9
mortendk commentednope not afaik - i think what we were talking about is having less files, so we dont end up with 10 css files for each module.
renamed the file to
quickedit.icons.theme.cssso it clear for the themer that this is pure visualComment #10
wim leersThen you'll want to do the same for the other
*.icons.cssfiles — this is notquickedit-specific.Comment #11
mortendk commentedcheck I just scope creep my self with my eyes open -lets do this right :)
Comment #12
mortendk commentedComment #13
mortendk commentedComment #14
mortendk commentedforgot the patch ;)
Comment #15
mortendk commentedlets try this again with a patch thats only about icons
Comment #16
mortendk commentedhere it is - somehow my patch-fu is not up to speed
Comment #17
wim leersPerfect!
Comment #18
manjit.singhLooks fine now. Thanks :)
Comment #19
lewisnymanRTBC++
Comment #20
webchickCommitted and pushed to 8.0.x. Thanks!