Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
update.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jun 2012 at 18:38 UTC
Updated:
2 May 2015 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
robloachFrom the CSSLint node report of Drupal 8:
Comment #2
manuel garcia commentedOnly one warning left: Beware of broken box size Using width with padding-left can sometimes make elements larger than you expect.
padding-left: 1em; /* LTR */But we need it for LTR so it's ok to leave it as is imho.
Comment #3
droplet commentedThat means this syntax has RTL style. so you have to hack both stylesheets :)
Comment #4
lewisnymanComment #5
brahmjeet789 commentedI have n't see any update.css in the module/update/css/ but instead of that i found the update.admin.css in which all the theme changes has been done so it is fixed now so that why i just closed this one.
Comment #6
brahmjeet789 commentedComment #7
lewisnymanUpdate.admin.css needs improving still.
Comment #8
rteijeiro commentedRe-rolled and fixed all CSSLint errors.
Comment #9
mortendk commentedComment #10
jwilson3needs before after screenshots. particularly, would be useful to show that by removing the tr from tr.even / tr.odd, no knock-on effect will override the background color/border etc, by having those "tr"s still referenced elsewhere.
Comment #11
jwilson3Comment #12
lewisnymanI looked into this CSS, and it doesn't do anything. There is no border set for it to unset. We can remove it completely.
These class names are really generic and not inline with our CSS standards. There is also a lot of redundant CSS here in this file. Do we really want to only fix the CSS lint errors here? I'm not sure if it makes sense to have two cleanup issues with #2408499: Rewrite update components inline with our CSS standards also fixing the same problems.
Comment #13
idebr commented@LewisNyman #2408499: Rewrite update components inline with our CSS standards has the same goal, but it has no patches attached. Let's close it in favor of this issue and broaden the scope of this issue to also clean up the selectors.
Comment #14
lewisnymanOk, closing #2408499: Rewrite update components inline with our CSS standards, See DickJohnson's recommendations here: https://www.drupal.org/node/2408499#comment-9585565
Comment #15
aliyakhan commentedHad worked on a patch for unused css and linting. Will take a look at recommendations now
Comment #16
aliyakhan commentedComment #18
mortendk commentedI would love to review this, but can somebody point me to a quick way in d8 to find modules for all the instances - cause it needs screeenshots just so were sure its not gonna create trouble later on.
A quiction should the file be
update.admin.theme.cssor do i put to much into the theme part ?the file is pure colors ?
Comment #19
aliyakhan commentedThere was unused css in the file as mentioned by Lewis #12. Little alignment fixed in user interface. Attaching shots.
Comment #20
aliyakhan commentedAlso i think this make sense -> update.admin.theme.css. And file is all about the interface in screenshots.
Comment #21
mortendk commented@aliyakhan yup lets go with that, gonna make it easy for the themer then to see whats actually goes on when looking at all the css
uploaded new patch with interdiff
Comment #22
aliyakhan commentedHey @mortendk, style filename name needs to be modified -> update.admin.theme.css
Is missing now.
Comment #23
aliyakhan commentedComment #24
mortendk commented@aliyakhan aaaah ups wrong patch uploaded lets try this again ;)
Comment #25
aliyakhan commentedPerfect @mortendk. Attached shots
Comment #26
lewisnymanLooking good, we still haven't rewritten the classes to match our standards, see the examples here: https://www.drupal.org/node/1887918#sub-components
Also see DickJohnson's suggestion from #2408499: Rewrite update components inline with our CSS standards:
I think these still need some feedback and improvements
Comment #27
lewisnymanupdate__version-links__release-notesI don't think it's best to include two double underscores in a selector, why not just
update__release-notesIMO the word
updateas the container component doesn't make sense, it's just the name of the module, I think maybe.project-updatewould be a better name? That could replace the.update .projectselector. I don't think we need a wrapper class for the listing.Comment #28
mortendk commented@levis So would there be an idea in using the word "drupal" as a prefix here for the container, im thinking something in the lines of
.drupal-project-updateor something like that, even that the name is way to long.One of the things that i hope we will achive in D8 is a themer would be able to navigate the css only on the classes? - maybe project-update is more than enough, just thinking in the big scheme of things, that would set a policy that we added drupal to a lot of "machine" things in Drupal though + would require an update to the css docs.
... i probably set a new record in scrope creep here ;)
Comment #29
jwilson3I think classes like this would make sense:
project-updates__title
project-updates__details
project-updates__version-link
project-updates__version-date
project-updates__operations
project-updates__release-notes-link
project-updates__download-link
The "drupal-" prefix seems out of scope for cleanup of just this issue.
Comment #30
lewisnyman@jwilson3 Your class suggestions look good, I've added them to the issue summary.
@mortendk Take that nonsense into a policy issue ;-)
Comment #31
lewisnymanOK so I gave a go implementing @jwilson3's suggestions. I ended up changing a lot, because there was a lot wrong with our current implementation. There were some classes I could replace with reuseable color/layout classes, we were also using tables for layout, so I removed them.
The design has been tweaked a little to be more consistent, and quite a few classes have been removed that weren't being used, so this will need a lot of regression testing.
Comment #32
lewisnymanHere is a screenshot:

Comment #34
lewisnymanComment #35
pakmanlhWorkin on it.
Comment #36
pakmanlhI rerolled the patch to apply it and I fixed the tests.
Comment #37
lewisnymanI applied the patch with no problems. I manually tested the patch and I couldn't fine any problems
Comment #38
manuel garcia commentedLooks good to me!
Comment #39
webchickCommitted and pushed to 8.0.x. Thanks!