Github messages for voidlinux
 help / color / mirror / Atom feed
From: mjyut <mjyut@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] mdocml: fix readability issues in void-man-cgi.
Date: Thu, 07 Apr 2022 18:20:27 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36558@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

There is a new pull request by mjyut against master on the void-packages repository

https://github.com/mjyut/void-packages master
https://github.com/void-linux/void-packages/pull/36558

mdocml: fix readability issues in void-man-cgi.
Fix: #36557

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**
  I've confirmed the changes in CSS.
  However, I have not tested it in the same environment as https://man.voidlinux.org/ .

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)


A patch file from https://github.com/void-linux/void-packages/pull/36558.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36558.patch --]
[-- Type: text/x-diff, Size: 2122 bytes --]

From 6bb71ee45271c57047ff412caabf54a313e470f8 Mon Sep 17 00:00:00 2001
From: Mizuno Jan Yuta <mjy@8x9.space>
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 289145066991..4e2f75357213 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 41e07f089ab2..e8aa98cdb158 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"

             reply	other threads:[~2022-04-07 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 16:20 mjyut [this message]
2022-04-07 16:44 ` leahneukirchen
2022-04-07 16:59 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36558@inbox.vuxu.org \
    --to=mjyut@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).