mdocml: fix readability issues in void-man-cgi.

Fix: #36557
This commit is contained in:
Mizuno Jan Yuta 2022-04-08 01:05:47 +09:00 committed by Leah Neukirchen
parent 371d8d96ed
commit 37580bc1f6
2 changed files with 28 additions and 11 deletions

View file

@ -1,8 +1,24 @@
/** Void style **/ /** Void style **/
body { color: #333; } html {
a { color: #478061; } --fg: #333;
a:hover { color: #000; } --bg: #fff;
--fg-accent: #478061;
--nav-fg: #fff;
--nav-bg: #478061;
}
@media (prefers-color-scheme: dark) {
html {
--fg: #ccc;
--bg: #222;
--fg-accent: #62b086;
--nav-fg: #fff;
--nav-bg: #295340;
}
}
a, :link, :visited { color: var(--fg-accent); }
a:hover { color: var(--fg); }
html { max-width: 100% } html { max-width: 100% }
body { margin: 0 } body { margin: 0 }
@ -11,29 +27,30 @@ body { margin: 0 }
nav#void-nav { nav#void-nav {
width:100%; width:100%;
min-height:50px; min-height:50px;
background:#478061; color:var(--nav-fg);
background-color:var(--nav-bg);
z-index:110; z-index:110;
font-size:14px font-size:14px
} }
nav#void-nav ul { nav#void-nav ul {
float:right; display:block;
list-style:none; list-style:none;
margin:0 margin:0
} }
nav#void-nav ul li { nav#void-nav ul li {
float:left; display:inline-block;
margin:0; margin:0;
clear:initial
} }
nav#void-nav ul li a { nav#void-nav ul li a {
display:block; display:inline-block;
padding:15px; padding:15px;
line-height:20px; line-height:20px;
font-size:1.2em; font-size:1.2em;
color:#fff; color:var(--nav-fg);
text-decoration: none text-decoration: none
} }
nav#void-nav ul li a:hover,nav#void-nav ul li a:focus { nav#void-nav ul li a:hover,nav#void-nav ul li a:focus {
background:#000; color:#fff;
background-color:#000;
text-decoration:none text-decoration:none
} }

View file

@ -1,7 +1,7 @@
# Template file for 'mdocml' # Template file for 'mdocml'
pkgname=mdocml pkgname=mdocml
version=1.14.6 version=1.14.6
revision=1 revision=2
wrksrc="mandoc-${version}" wrksrc="mandoc-${version}"
build_style=configure build_style=configure
make_build_args="all man.cgi" make_build_args="all man.cgi"