1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-16 23:16:43 +00:00
openmw/docs/source/_static/theme-override.css
2025-06-17 17:39:10 -07:00

60 lines
1.4 KiB
CSS

:root {
--link: #4a90e2;
--link-hover: #1c6cd9;
}
/* Less aggressive dark background */
.dark {
--background: 220 20% 7% !important;
}
/* Hide text underline in tables since the underlines clash with table lines */
#content a.sd-badge:not(.toc-backref), #content table a:not(.toc-backref) {
text-decoration: none;
}
/* Override link colors, default is foreground */
#content a:not(.toc-backref) {
color: var(--link);
}
#content a:not(.toc-backref):hover, #content a:not(.toc-backref):focus {
color: var(--link-hover);
}
#content .highlight {
background-color: hsl(var(--accent)) !important;
border-radius: 0.25rem;
}
/* Disables the saturation filter on project icon in dark mode */
.dark\:invert {
--tw-invert: none !important;
}
/* Disable no-wrap set on some code blocks, causing x-overflow issues in right bar */
code {
white-space: normal;
}
/* Hide the keybind shortcut for search, we haven't linked this to sphinx search addon yet */
#searchbox kbd {
display: none !important;
}
/* Table headers are bolded in dark mode, do it in light mode too */
table th {
font-weight: 600 !important;
}
/* Highlight non-header rows on hover */
tbody tr:hover {
background-color: hsl(var(--muted));
}
/* Increase maximum width for docs, default is quite narrow at 1400px max */
@media (min-width: 1400px) {
.container {
max-width: 2000px !important;
}
}