Infra: Mute table zebra stripes to de-emphasise different rows (#2740)

* Infra: Mute table zebra stripes to de-emphasise different rows

* Infra: change #eee to #ddd
This commit is contained in:
Hugo van Kemenade 2022-08-28 22:55:26 +03:00 committed by GitHub
parent 754c8fb1f6
commit 97e3dbde98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -33,7 +33,8 @@
/* Set master colours */ /* Set master colours */
:root { :root {
--colour-background: var(--light, white) var(--dark, #011); --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-text: var(--light, #333) var(--dark, #ccc);
--colour-links: var(--light, #069) var(--dark, #8bf); --colour-links: var(--light, #069) var(--dark, #8bf);
--colour-links-light: var(--light, #057) var(--dark, #acf); --colour-links-light: var(--light, #057) var(--dark, #acf);
@ -116,7 +117,7 @@ a:visited {
display: inline; display: inline;
overflow-wrap: break-word; overflow-wrap: break-word;
overflow-wrap: anywhere; overflow-wrap: anywhere;
text-decoration-color: var(--colour-background-accent); text-decoration-color: var(--colour-background-accent-strong);
} }
a:hover, a:hover,
a:focus { a:focus {
@ -225,14 +226,14 @@ div.table-wrapper {
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
border-top: 1px solid var(--colour-background-accent); border-top: 1px solid var(--colour-background-accent-light);
border-bottom: 1px solid var(--colour-background-accent); border-bottom: 1px solid var(--colour-background-accent-light);
} }
table caption { table caption {
margin: 1rem 0 .75rem; margin: 1rem 0 .75rem;
} }
table tbody tr:nth-of-type(odd) { table tbody tr:nth-of-type(odd) {
background-color: var(--colour-background-accent); background-color: var(--colour-background-accent-light);
} }
table th, table th,
table td { table td {
@ -294,7 +295,7 @@ ul.breadcrumbs a {
/* Admonitions rules */ /* Admonitions rules */
div.admonition { div.admonition {
background-color: var(--colour-background-accent); background-color: var(--colour-background-accent-strong);
margin-bottom: 1rem; margin-bottom: 1rem;
margin-top: 1rem; margin-top: 1rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;