diff options
| author | Kent Daleng <lolexplode@gmail.com> | 2025-08-17 16:05:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-17 17:05:41 +0300 |
| commit | dc93f1c1fd7b67e2da5af2ffada732b9ddeb2d6a (patch) | |
| tree | a2f2938a7df17c196be7016dc5fe1fc9f75fb484 /docs/wiki/_assets/stylesheets | |
| parent | a6febb86aa5af0df7bf2792ca027ef95a503d599 (diff) | |
| download | niri-dc93f1c1fd7b67e2da5af2ffada732b9ddeb2d6a.tar.gz niri-dc93f1c1fd7b67e2da5af2ffada732b9ddeb2d6a.tar.bz2 niri-dc93f1c1fd7b67e2da5af2ffada732b9ddeb2d6a.zip | |
github wiki replacement / mkdocs-docs (#2147)
* Add wiki based on mkdocs
* wording fixes
* fix github bg color on narrow
* Fix left sidebar section headers being bigger than pages
* fix hover accent
* fix list rendering on fractional layout
* fix videos
* fix automatic full links
* remove redundant commented css
* improve dark mode contrast
* update pygments for better child node coloring
* update logo
* remove blank lines
* add systemd language hint
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'docs/wiki/_assets/stylesheets')
| -rw-r--r-- | docs/wiki/_assets/stylesheets/niri.css | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/docs/wiki/_assets/stylesheets/niri.css b/docs/wiki/_assets/stylesheets/niri.css new file mode 100644 index 00000000..7c172486 --- /dev/null +++ b/docs/wiki/_assets/stylesheets/niri.css @@ -0,0 +1,60 @@ +:root > * { + --md-primary-fg-color: #1e97b5; + --md-primary-fg-color--dark: color-mix(in srgb, var(--md-primary-fg-color), black 20%); + --md-accent-fg-color: var(--md-primary-fg-color--dark); +} + +.md-logo > img { + background-color: white; + border-radius: 8px; +} + +@media (prefers-color-scheme: dark) { + :root > * { + --md-primary-fg-color: #167188; + --md-accent-fg-color: #1e97b5; + --md-typeset-a-color: color-mix(in srgb, var(--md-accent-fg-color), white 30%); + } + + .md-logo > img { + background-color: #eee; + } +} + +.md-nav--primary .md-nav__title { + box-shadow: none; +} + +@media screen and (min-width: 76.25em) { + .md-nav__title { + display: none; + } +} + +@media screen and (min-width: 76.25em) { + .md-main { + min-height: 100vh; + } +} + +.md-nav__link--active { + font-weight: bold; +} + +.highlight .gp, .highlight .go { + user-select: none; +} + +.md-source-file__fact { + visibility: hidden; +} + +.badge { + font-size: 0.85em; + box-shadow: 0 0 0 1px inset var(--md-accent-fg-color--transparent); + padding: 0.2rem 0.3rem; +} + +.md-typeset table:not([class]) td { + padding: .5em 1.25em; +}
\ No newline at end of file |
