From nobody Thu Dec 30 12:44:38 2021 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4B39F1922C80 for ; Thu, 30 Dec 2021 12:44:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPnzC0FtMz3K0q; Thu, 30 Dec 2021 12:44:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D991118DE4; Thu, 30 Dec 2021 12:44:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BUCic2l084066; Thu, 30 Dec 2021 12:44:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BUCic0K084065; Thu, 30 Dec 2021 12:44:38 GMT (envelope-from git) Date: Thu, 30 Dec 2021 12:44:38 GMT Message-Id: <202112301244.1BUCic0K084065@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Sergio Carlavilla Delgado Subject: git: 0b57fe8cd8 - main - Improve dark and high contrast themes List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: carlavilla X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b57fe8cd821b15aaf049a2e480178a375dd7ce4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640868279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qrq8DR0dwoSUm7uNR9CzoxirbTsTUS22TEz291ZMtNY=; b=vzZx2er6G+zqtEosSseP7sxtCMEOsfJCxotxHI7OC9MkYBH8Uzo233C2gh1jL21H7ui1Qn UmbQcD7tPZZjkQcecA4w53tTym8tc5nPJgnavt2PS7vThk+Dg6VXsTVC5NJ9SPpIUlY43a 69nZJdI7ve2wNLOvNX0OHSY1yFdG99/EfAH2vBbBC9ipYfmdbKmGuLSYzZm8PU8XDRKpM7 TFm2czsEjQT4EH6GsMTSIHgZ3PHqpuH2l8f+sV/9yaTgxwmaDZTBcYywxPKoTWzkdijSbR qnWT9Xazo1SJSNpefFHsAvpVdTnDdy0VyLBzArjz6iTqu6IpMtD9/ZNeh1LZxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640868279; a=rsa-sha256; cv=none; b=Yo7Sq4tDYGNOhnhEBbLypRpGK7RL5LWr9kREgZtCqVYQt6MEbrVdHoxL6XinxCVdGtZxTn l681SaRWoSyw8rnGbezXFju6zZdv4QTCBgDbUVGbE6reCOA1eeLt/TOEJMQ6vb6QO5lDLf 1k32uV5LajDHnzet4/GjjNwK3XUcQ8AM0DHk+Urbig+9MayMDSC8rjB/CdpCB2DG/DKA4P JkqzK9T3uz4LD2qfJn5iGn13oOSShn8WTStn11YrTZiMZ8+NWdktMRjmiBgQ4uhhz79oGw ktBYNgdBx6gL2HzYoFzcGceETSP+/iYyDs812xWST4JPg8+FvYBGdIN2X6qZmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=0b57fe8cd821b15aaf049a2e480178a375dd7ce4 commit 0b57fe8cd821b15aaf049a2e480178a375dd7ce4 Author: Sergio Carlavilla Delgado AuthorDate: 2021-12-30 12:42:39 +0000 Commit: Sergio Carlavilla Delgado CommitDate: 2021-12-30 12:42:39 +0000 Improve dark and high contrast themes PR: 260751 Submitted by: Graham Perrin --- documentation/themes/beastie/assets/styles/global.scss | 15 +++++++++++++++ documentation/themes/beastie/assets/styles/variables.scss | 12 +++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/documentation/themes/beastie/assets/styles/global.scss b/documentation/themes/beastie/assets/styles/global.scss index 7446ec9fa6..c1fff32b9b 100644 --- a/documentation/themes/beastie/assets/styles/global.scss +++ b/documentation/themes/beastie/assets/styles/global.scss @@ -554,6 +554,7 @@ table.stretch { width: auto; background-position-x: .5em; vertical-align: initial; + font-style: normal; &:after { content: attr(title); @@ -598,9 +599,17 @@ table.stretch { width: 100%; word-wrap: anywhere; + .title { + margin-top: 2rem; + } + .paragraph { padding-top: .5rem; } + + a { + color: var(--admonition-links-color); + } } } } @@ -641,6 +650,7 @@ table.stretch { .exampleblock { margin: .75rem 0; + color: var(--example-block-font-color); .title { font-weight: bolder; @@ -651,8 +661,13 @@ table.stretch { .content{ background: #fefde6 !important; border: none !important; + color: var(--global-font-color); } } + + a { + color: var(--admonition-links-color); + } } } diff --git a/documentation/themes/beastie/assets/styles/variables.scss b/documentation/themes/beastie/assets/styles/variables.scss index c748b638b7..2e1a754752 100644 --- a/documentation/themes/beastie/assets/styles/variables.scss +++ b/documentation/themes/beastie/assets/styles/variables.scss @@ -61,6 +61,7 @@ --pre-font-color: #444; --admonition-font-color: #444; + --admonition-links-color: #0645AD; --admonition-note-color: #19407C; --admonition-note-background-color: #EAF1FB; --admonition-warning-color: #BF6900; @@ -73,6 +74,7 @@ --admonition-tip-background-color: #EDFAEA; --example-block-color: #F1BB16; --example-block-background-color: #FEF8E7; + --example-block-font-color: #444; } .theme-dark { @@ -84,7 +86,7 @@ --global-background-color: #333333; --card-background-color: #272727; --card-border-color: #272727; - --table-header-background-color: #2B2B2B; + --table-header-background-color: #F1F3F1; --footer-background: #2B2B2B; --footer-border-color: #2B2B2B; --lines-color: #4d4d4d; @@ -93,6 +95,7 @@ --pre-font-color: #EEEFF1; --admonition-font-color: #444; + --admonition-links-color: #1A79FF; --admonition-note-color: #19407C; --admonition-note-background-color: #EAF1FB; --admonition-warning-color: #BF6900; @@ -105,6 +108,7 @@ --admonition-tip-background-color: #EDFAEA; --example-block-color: #F1BB16; --example-block-background-color: #FEF8E7; + --example-block-font-color: #272727; } .theme-high-contrast { @@ -116,7 +120,7 @@ --global-background-color: #000; --card-background-color: #000; --card-border-color: #FFF; - --table-header-background-color: #000; + --table-header-background-color: #FFF; --footer-background: #000; --footer-border-color: #FFF; --lines-color: #FFF; @@ -124,8 +128,9 @@ --pre-background-color: #FFF; --pre-font-color: #000; - --admonition-font-color: #444; + --admonition-font-color: #000; --admonition-note-color: #19407C; + --admonition-links-color: #9F0E0F; --admonition-note-background-color: #EAF1FB; --admonition-warning-color: #BF6900; --admonition-warning-background-color: #FFF4E6; @@ -137,4 +142,5 @@ --admonition-tip-background-color: #EDFAEA; --example-block-color: #F1BB16; --example-block-background-color: #FEF8E7; + --example-block-font-color: #000; }