Files
doc-status/static/main.css
Hugo Locurcio 1da342d6b9 Tweak the table hover background color
This makes the hover effect easier to distinguish from the even-odd
row background colors.
2020-02-26 22:06:03 +01:00

57 lines
1.2 KiB
CSS

:root {
--body-background-color: hsl(0, 0%, 100%);
--body-color: hsl(0, 0%, 25%);
--link-color: hsl(210, 90%, 50%);
}
@media (prefers-color-scheme: dark) {
:root {
--body-background-color: hsl(0, 0%, 20%);
--body-color: hsl(0, 0%, 85%);
--link-color: hsl(210, 100%, 80%);
}
}
body {
background-color: var(--body-background-color);
color: var(--body-color);
/* Use a modern font stack inspired by Bootstrap 4. */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
table {
border-collapse: collapse;
}
td {
border: 1px solid hsla(0, 0%, 50%, 50%);
padding: 0.25rem 0.5rem;
}
tr:hover {
background-color: hsla(210, 90%, 50%, 12.5%);
}
tr:nth-child(even) {
background-color: hsla(0, 0%, 50%, 10%);
}
tr:nth-child(even):hover {
background-color: hsla(210, 90%, 50%, 15%);
}
/* Align class names to the right for better readability and highlight them. */
td:first-child {
font-weight: bold;
text-align: right;
}