-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Infra: Mute table zebra stripes to de-emphasise different rows #2740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -33,7 +33,8 @@ | |||||||||||||||||
/* Set master colours */ | ||||||||||||||||||
:root { | ||||||||||||||||||
--colour-background: var(--light, white) var(--dark, #011); | ||||||||||||||||||
--colour-background-accent: var(--light, #ccc) var(--dark, #333); | ||||||||||||||||||
--colour-background-accent-strong: var(--light, #ccc) var(--dark, #333); | ||||||||||||||||||
--colour-background-accent-light: var(--light, #ddd) var(--dark, #222); | ||||||||||||||||||
--colour-text: var(--light, #333) var(--dark, #ccc); | ||||||||||||||||||
--colour-links: var(--light, #069) var(--dark, #8bf); | ||||||||||||||||||
--colour-links-light: var(--light, #057) var(--dark, #acf); | ||||||||||||||||||
|
@@ -116,7 +117,7 @@ a:visited { | |||||||||||||||||
display: inline; | ||||||||||||||||||
overflow-wrap: break-word; | ||||||||||||||||||
overflow-wrap: anywhere; | ||||||||||||||||||
text-decoration-color: var(--colour-background-accent); | ||||||||||||||||||
text-decoration-color: var(--colour-background-accent-strong); | ||||||||||||||||||
} | ||||||||||||||||||
a:hover, | ||||||||||||||||||
a:focus { | ||||||||||||||||||
|
@@ -225,14 +226,14 @@ div.table-wrapper { | |||||||||||||||||
table { | ||||||||||||||||||
width: 100%; | ||||||||||||||||||
border-collapse: collapse; | ||||||||||||||||||
border-top: 1px solid var(--colour-background-accent); | ||||||||||||||||||
border-bottom: 1px solid var(--colour-background-accent); | ||||||||||||||||||
border-top: 1px solid var(--colour-background-accent-light); | ||||||||||||||||||
border-bottom: 1px solid var(--colour-background-accent-light); | ||||||||||||||||||
Comment on lines
+229
to
+230
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
To be consistent with the current and the lines |
||||||||||||||||||
} | ||||||||||||||||||
table caption { | ||||||||||||||||||
margin: 1rem 0 .75rem; | ||||||||||||||||||
} | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Add horizontal rules and clearly delineate header row |
||||||||||||||||||
table tbody tr:nth-of-type(odd) { | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Switch this to even, since it looks better with the revised colors |
||||||||||||||||||
background-color: var(--colour-background-accent); | ||||||||||||||||||
background-color: var(--colour-background-accent-light); | ||||||||||||||||||
} | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Add "highlight" on hover |
||||||||||||||||||
table th, | ||||||||||||||||||
table td { | ||||||||||||||||||
|
@@ -294,7 +295,7 @@ ul.breadcrumbs a { | |||||||||||||||||
|
||||||||||||||||||
/* Admonitions rules */ | ||||||||||||||||||
div.admonition { | ||||||||||||||||||
background-color: var(--colour-background-accent); | ||||||||||||||||||
background-color: var(--colour-background-accent-strong); | ||||||||||||||||||
margin-bottom: 1rem; | ||||||||||||||||||
margin-top: 1rem; | ||||||||||||||||||
padding: 0.5rem 0.75rem; | ||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mute the colors as much as practical (since we're adding back the lines to clearly delineate the rows)