Closed
Bug 1557699
Opened 5 years ago
Closed 5 years ago
Improve specificity in CSS
Categories
(DevTools :: Application Panel, enhancement)
DevTools
Application Panel
Tracking
(firefox70 fixed)
RESOLVED
FIXED
Firefox 70
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: ogasidlo, Assigned: ogasidlo)
References
Details
(Whiteboard: foundation-work)
Attachments
(1 file)
Improve specificity in CSS by replacing tags as selectors with classes.
Comment 1•5 years ago
|
||
Let's keep in mind that some styles might make sense to have them global (for instance, colors for all links in the panel). This could also be a good bug to clean up some styling we were doing wrong. Some suggestions:
In App.css
:
h1
this should have its own class selectora
it seems reasonable to provide global styles (i.e. not use a specific selector) for things like color, not underlining, etc.- Lets move the
margin
rule to the place that actually needs it (probably theWorkerListEmpty
component).
All over CSS files:
- This is a good opportunity to create a
--base-unit: 4px
var and use measurements in terms of multiples of this, like we did with remote debugging. - The same for font-sizes, colors, etc. Let's use css vars for it. Note that they might already exist in the common CSS files that are already being loaded for panels.
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → ogasidlo
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•5 years ago
|
||
Added variables in base.css, reduced specificity
Pushed by ogasidlo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/70a9b57659f3
Improve CSS base, r=ladybenko
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox70:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in
before you can comment on or make changes to this bug.
Description
•