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.
Sub-issue of #1190252: [573] Use csslint as a weapon to beat the crappy CSS out of Drupal core
Inline with the CSS cleanup efforts of the HTML5 initiative, using CSSLint at http://csslint.net provides a quick way to code-sniff our css and tweak styles.
- Copy and paste the the stylesheet(s) below into the css lint tool at http://csslint.net and test.
- Fix any warnings or errors the tool finds.
- Patch Drupal 8 locally and make sure the css changes have not broken anything visually.
- Create patch and upload for the testbot.
Files:
- modules/overlay/overlay-child.css
- modules/overlay/overlay-parent.css
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal-csslint-overlay-1663144-4.patch | 9.67 KB | barraponto |
#3 | overlaycsslint-1663144.patch | 7.46 KB | tlattimore |
Comments
Comment #1
RobLoachhttps://gist.github.com/3006391#L4503
Comment #2
tlattimore CreditAttribution: tlattimore commentedI'll take this one.
Comment #3
tlattimore CreditAttribution: tlattimore commentedPatch attached with 1st revision of changes.
The remaining output of csslint's warning's I think needs to be discussed, and is the following:
I'd like to hear some other peoples thoughts on these results.
Comment #4
barraponto CreditAttribution: barraponto commentedSome changes:
overlay-wrapper
to avoid conflicts with otheroverlay
classes.box-sizing: border-box
to overlay-wrapper makes it look even better than the defaultbox-sizing: content-box
overlay-title
is not a link, thus can't be focused/active, right? Will it become a link under any circumstance?Sinceoverflow: hidden
in thea
element seems to work ok.overflow: hidden
breaks Firefox, I just enabled the outline, hope Chrome gets its act together.That said, I kept the id in
skip-link
since we're not changing that pattern right now.Comment #6
brenda003Comment #6.0
brenda003Updated issue summary.
Comment #7
nod_Overlay is dead to D8 #2088121: Remove Overlay.
Comment #8
tlattimore CreditAttribution: tlattimore commented