Duplicate and contradictory CSS rule in viewer.css
See original GitHub issueHi team,
I’ve just noticed a duplicate definition of a CSS rule:
.toolbarField {
...
border: 1px solid transparent;
...
border: 1px solid hsla(0,0%,0%,.35);
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
IMHO there’s one or two rules too many.
For the sake of convenience, here’s the link to the line in the repo.
Best regards, Stephan
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Order of prioritization when using multiple contradictory css files
Quick Answer: If both pieces of CSS have the same specificity (for example, they're both body{ ), then whichever gets called LAST will ......
Read more >Specificity - CSS: Cascading Style Sheets - MDN Web Docs
The specificity algorithm calculates the weight of a CSS selector to determine which rule from competing CSS declarations gets applied to an ...
Read more >How to Override CSS Styles - W3docs
When an important rule is used on a style declaration, this declaration will override any other declarations. When two conflicting declarations with the...
Read more >How To Understand and Create CSS Rules - DigitalOcean
Once you declare a rule for a selector, every piece of content in your HTML document marked with that selector will be displayed...
Read more >DRY CSS: How to Use Declarations Just Once, Effectively
Copy the selectors of the other rules that contain respective duplicate declaration to the rule that comes first. Be sure to remove the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d like to claim this, if possible? See if I can figure out & fix it. Thanks Jessica
Closing since both problems are fixed by #11268. There was a lot of interest in the issue, so thank you all for helping out. If there are more things to fix in the CSS, please open a new issue.