From 37580bc1f6d84802fec943fabe75b7ca62d18060 Mon Sep 17 00:00:00 2001 From: Mizuno Jan Yuta Date: Fri, 8 Apr 2022 01:05:47 +0900 Subject: [PATCH] mdocml: fix readability issues in void-man-cgi. Fix: #36557 --- srcpkgs/mdocml/files/void.css | 37 +++++++++++++++++++++++++---------- srcpkgs/mdocml/template | 2 +- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/srcpkgs/mdocml/files/void.css b/srcpkgs/mdocml/files/void.css index 28914506699..4e2f7535721 100644 --- a/srcpkgs/mdocml/files/void.css +++ b/srcpkgs/mdocml/files/void.css @@ -1,8 +1,24 @@ /** Void style **/ -body { color: #333; } -a { color: #478061; } -a:hover { color: #000; } +html { + --fg: #333; + --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% } body { margin: 0 } @@ -11,29 +27,30 @@ body { margin: 0 } nav#void-nav { width:100%; min-height:50px; - background:#478061; + color:var(--nav-fg); + background-color:var(--nav-bg); z-index:110; font-size:14px } nav#void-nav ul { - float:right; + display:block; list-style:none; margin:0 } nav#void-nav ul li { - float:left; + display:inline-block; margin:0; - clear:initial } nav#void-nav ul li a { - display:block; + display:inline-block; padding:15px; line-height:20px; font-size:1.2em; - color:#fff; + color:var(--nav-fg); text-decoration: none } nav#void-nav ul li a:hover,nav#void-nav ul li a:focus { - background:#000; + color:#fff; + background-color:#000; text-decoration:none } diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template index 41e07f089ab..e8aa98cdb15 100644 --- a/srcpkgs/mdocml/template +++ b/srcpkgs/mdocml/template @@ -1,7 +1,7 @@ # Template file for 'mdocml' pkgname=mdocml version=1.14.6 -revision=1 +revision=2 wrksrc="mandoc-${version}" build_style=configure make_build_args="all man.cgi"