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.
Problem/Motivation
See: #2489460: [Meta] Move module.theme.css files to Classy or Seven
Proposed resolution
Move the CSS file to classy
Create a library for the CSS file
Add the library in the Classy twig template
Remaining tasks
- Add screenshots.
User interface changes
None for Classy, Stark will be more Stark
API changes
None
Stark:
Beta phase evaluation
Issue category | Task because theme system standards |
---|---|
Issue priority | Not critical because theme standards |
Unfrozen changes | Unfrozen because it only changes CSS |
Classy:
Comment | File | Size | Author |
---|---|---|---|
#19 | interdiff.txt | 2.92 KB | star-szr |
#19 | move_comment_theme_css-2489560-18.patch | 4.57 KB | star-szr |
#16 | comment.theme_.css-classy.png | 114.46 KB | star-szr |
#15 | move_comment_theme_css-2489560-15.patch | 2.59 KB | mortendk |
#13 | Screenshot 2015-05-26 16.15.11.jpg | 695.71 KB | LewisNyman |
Comments
Comment #1
mortendk CreditAttribution: mortendk commentedComment #2
Manjit.SinghMoving comment css file to classy
Comment #3
LewisNymanWe need a newline at the end of this file
We still need to remove the reference to the removed library here:
It also looks like we still have the indented classes here that should be in classy?
Comment #4
Manjit.SinghDone with the changes mentioned in #3. Please verify.
Comment #5
Manjit.SinghComment #6
LewisNymanNice, thanks. I think we need before/after screenshots of Classy.
Comment #7
sqndr CreditAttribution: sqndr as a volunteer commentedAdded novice tag.
Comment #8
sqndr CreditAttribution: sqndr as a volunteer commentedComment #9
lauriiiNeeds work for needs tag
Comment #10
Manjit.SinghCSS file is not calling in classy :(
Comment #11
Manjit.SinghBased on the discussion at #2489460: [Meta] Move module.theme.css files to Classy, at this point library names in Classy should match what is in the core module. So,
comment-threaded
should bedrupal.comment.threaded
.Comment #12
Manjit.SinghComment #13
LewisNymanI tested thread comments in both Stark and Classy and I can confirm that the comments indent in Classy but no longer indent in Stark. Thanks!
Stark:
Classy:
Comment #14
lauriiiBartik overrides comment.html.twig so comment.theme.css won't be attached for Bartik.
Comment #15
mortendk CreditAttribution: mortendk as a volunteer commentedrerolled the patch so it adds in the library again
but we have a problem with attach_library as in bartik adding in
{{ attach_library('classy/drupal.comment.threaded') }}
dont attach the file neither does {{ attach_library('@classy/drupal.comment.threaded') }}So how do we add from another lib ?
Comment #16
star-szr@mortendk seems fine here. I cleared caches and made a comment on a node and viewed that node:
Comment #17
star-szrWould be nice to only attach when threaded though, that's what the logic before was doing…
Comment #18
mortendk CreditAttribution: mortendk as a volunteer commentedoki well then i guess its ready to roll ;)
... me wonders wtf is up in my build
Comment #19
star-szrImplemented #17.
Comment #20
mortendk CreditAttribution: mortendk as a volunteer commentedgood call on the variable set - comment.theme.css now only added if comments actually exist & in bartik as well
Comment #21
alexpottThe is a non disruptive CSS change. Committed ae86ffd and pushed to 8.0.x. Thanks!
Can the meta issue have the proper beta evaluation added - thanks.
Comment #23
LewisNymanEvaluation added.