From bd39506081efcc3ffd7258674704067659bc333c Mon Sep 17 00:00:00 2001 From: Matthias Zepper Date: Wed, 16 Mar 2022 20:24:19 +0100 Subject: [PATCH 1/3] Added a new light color scheme --- docs/api/_src/_static/css/custom.css | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/docs/api/_src/_static/css/custom.css b/docs/api/_src/_static/css/custom.css index 9bd4341651..b9866f438e 100644 --- a/docs/api/_src/_static/css/custom.css +++ b/docs/api/_src/_static/css/custom.css @@ -21,7 +21,7 @@ code, .rst-content code.literal{ background-color: rgba(220,220,220,0.4); - color: #db9444; + color: #C03221; border: none; } .rst-content .note .admonition-title{ @@ -35,9 +35,6 @@ .rst-content .method>dt>code { color: #f5f6f7; } - .sig-paren{ - color: #db9444; - } .rst-content div[class^=highlight], .rst-content pre.literal-block{ border:none; } @@ -50,19 +47,26 @@ background-color: #585b60fc; } .highlight .k, .highlight .nt, .highlight .no{ - color: #6fb2e8; + color: #246EB9; } .highlight .s, .highlight .s1, .highlight .s2{ color: #32AD65; } .highlight .nb, .highlight .o{ - color: #db9444; + color: #FFBE0B; } .highlight .c1{ color: #88898afc; } - .highlight .nv{ - color: #f9d977; + .highlight .nv, .py>span{ + color: #C03221; + } + .py .sig-param, .py .sig-paren, .property .pre{ + color: #EEF0F2; + } + + .method > .py .sig-param, .method > .py .sig-paren{ + color: #32AD65; } .btn.btn-neutral { background-color: #e5e6e7d4 !important; @@ -80,8 +84,8 @@ } -.rst-content .admonition-todo .admonition-title, .rst-content .admonition-todo .wy-alert-title, .rst-content .attention .admonition-title, .rst-content .attention .wy-alert-title, .rst-content .caution .admonition-title, .rst-content .caution .wy-alert-title, .rst-content .warning .admonition-title, .rst-content .warning .wy-alert-title, .rst-content .wy-alert-warning.admonition .admonition-title, .rst-content .wy-alert-warning.admonition .wy-alert-title, .rst-content .wy-alert-warning.danger .admonition-title, .rst-content .wy-alert-warning.danger .wy-alert-title, .rst-content .wy-alert-warning.error .admonition-title, .rst-content .wy-alert-warning.error .wy-alert-title, .rst-content .wy-alert-warning.hint .admonition-title, .rst-content .wy-alert-warning.hint .wy-alert-title, .rst-content .wy-alert-warning.important .admonition-title, .rst-content .wy-alert-warning.important .wy-alert-title, .rst-content .wy-alert-warning.note .admonition-title, .rst-content .wy-alert-warning.note .wy-alert-title, .rst-content .wy-alert-warning.seealso .admonition-title, .rst-content .wy-alert-warning.seealso .wy-alert-title, .rst-content .wy-alert-warning.tip .admonition-title, .rst-content .wy-alert-warning.tip .wy-alert-title, .rst-content .wy-alert.wy-alert-warning .admonition-title, .wy-alert.wy-alert-warning .rst-content .admonition-title, .wy-alert.wy-alert-warning .wy-alert-title { - background-color: #f4a25b; +.rst-content .admonition-todo .admonition-title, .rst-content .admonition-todo .wy-alert-title, .rst-content .attention .admonition-title, .rst-content .attention .wy-alert-title, .rst-content .caution .admonition-title, .rst-content .caution .wy-alert-title, .rst-content .warning .admonition-title, .rst-content .warning .wy-alert-title, .rst-content .wy-alert-warning.admonition .admonition-title, .rst-content .wy-alert-warning.admonition .wy-alert-title, .rst-content .wy-alert-warning.danger .admonition-title, .rst-content .wy-alert-warning.danger .wy-alert-title, .rst-content .wy-alert-warning.error .admonition-title, .rst-content .wy-alert-warning.error .wy-alert-title, .rst-content .wy-alert-warning.hint .admonition-title, .rst-content .wy-alert-warning.hint .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-warning.important .admonition-title, .rst-content .wy-alert-warning.important .wy-alert-title, .rst-content .wy-alert-warning.note .admonition-title, .rst-content .wy-alert-warning.note .wy-alert-title, .rst-content .wy-alert-warning.seealso .admonition-title, .rst-content .wy-alert-warning.seealso .wy-alert-title, .rst-content .wy-alert-warning.tip .admonition-title, .rst-content .wy-alert-warning.tip .wy-alert-title, .rst-content .wy-alert.wy-alert-warning .admonition-title, .wy-alert.wy-alert-warning .rst-content .admonition-title, .wy-alert.wy-alert-warning .wy-alert-title { + background-color: #246EB9; } .rst-content .admonition-todo, .rst-content .attention, .rst-content .caution, .rst-content .warning, .rst-content .wy-alert-warning.admonition, .rst-content .wy-alert-warning.danger, .rst-content .wy-alert-warning.error, .rst-content .wy-alert-warning.hint, .rst-content .wy-alert-warning.important, .rst-content .wy-alert-warning.note, .rst-content .wy-alert-warning.seealso, .rst-content .wy-alert-warning.tip, .wy-alert.wy-alert-warning { color: #343434; @@ -189,7 +193,7 @@ border: none; } - .rst-content .admonition-todo .admonition-title, .rst-content .admonition-todo .wy-alert-title, .rst-content .attention .admonition-title, .rst-content .attention .wy-alert-title, .rst-content .caution .admonition-title, .rst-content .caution .wy-alert-title, .rst-content .warning .admonition-title, .rst-content .warning .wy-alert-title, .rst-content .wy-alert-warning.admonition .admonition-title, .rst-content .wy-alert-warning.admonition .wy-alert-title, .rst-content .wy-alert-warning.danger .admonition-title, .rst-content .wy-alert-warning.danger .wy-alert-title, .rst-content .wy-alert-warning.error .admonition-title, .rst-content .wy-alert-warning.error .wy-alert-title, .rst-content .wy-alert-warning.hint .admonition-title, .rst-content .wy-alert-warning.hint .wy-alert-title, .rst-content .wy-alert-warning.important .admonition-title, .rst-content .wy-alert-warning.important .wy-alert-title, .rst-content .wy-alert-warning.note .admonition-title, .rst-content .wy-alert-warning.note .wy-alert-title, .rst-content .wy-alert-warning.seealso .admonition-title, .rst-content .wy-alert-warning.seealso .wy-alert-title, .rst-content .wy-alert-warning.tip .admonition-title, .rst-content .wy-alert-warning.tip .wy-alert-title, .rst-content .wy-alert.wy-alert-warning .admonition-title, .wy-alert.wy-alert-warning .rst-content .admonition-title, .wy-alert.wy-alert-warning .wy-alert-title { + .rst-content .admonition-todo .admonition-title, .rst-content .admonition-todo .wy-alert-title, .rst-content .attention .admonition-title, .rst-content .attention .wy-alert-title, .rst-content .caution .admonition-title, .rst-content .caution .wy-alert-title, .rst-content .warning .admonition-title, .rst-content .warning .wy-alert-title, .rst-content .wy-alert-warning.admonition .admonition-title, .rst-content .wy-alert-warning.admonition .wy-alert-title, .rst-content .wy-alert-warning.danger .admonition-title, .rst-content .wy-alert-warning.danger .wy-alert-title, .rst-content .wy-alert-warning.error .admonition-title, .rst-content .wy-alert-warning.error .wy-alert-title, .rst-content .wy-alert-warning.hint .admonition-title, .rst-content .wy-alert-warning.hint .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-warning.important .admonition-title, .rst-content .wy-alert-warning.important .wy-alert-title, .rst-content .wy-alert-warning.note .admonition-title, .rst-content .wy-alert-warning.note .wy-alert-title, .rst-content .wy-alert-warning.seealso .admonition-title, .rst-content .wy-alert-warning.seealso .wy-alert-title, .rst-content .wy-alert-warning.tip .admonition-title, .rst-content .wy-alert-warning.tip .wy-alert-title, .rst-content .wy-alert.wy-alert-warning .admonition-title, .wy-alert.wy-alert-warning .rst-content .admonition-title, .wy-alert.wy-alert-warning .wy-alert-title { background-color: #f4a25b; } .rst-content .admonition-todo, .rst-content .attention, .rst-content .caution, .rst-content .warning, .rst-content .wy-alert-warning.admonition, .rst-content .wy-alert-warning.danger, .rst-content .wy-alert-warning.error, .rst-content .wy-alert-warning.hint, .rst-content .wy-alert-warning.important, .rst-content .wy-alert-warning.note, .rst-content .wy-alert-warning.seealso, .rst-content .wy-alert-warning.tip, .wy-alert.wy-alert-warning { From 1cd2740e4826914d828bcb6bec1649f018d50231 Mon Sep 17 00:00:00 2001 From: Matthias Zepper Date: Thu, 17 Mar 2022 11:14:06 +0100 Subject: [PATCH 2/3] Fixed to the dark theme and small additions to the light theme. --- docs/api/_src/_static/css/custom.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/api/_src/_static/css/custom.css b/docs/api/_src/_static/css/custom.css index b9866f438e..c892c07aa6 100644 --- a/docs/api/_src/_static/css/custom.css +++ b/docs/api/_src/_static/css/custom.css @@ -1,4 +1,10 @@ @media (prefers-color-scheme: light) { + a, a:visited { + color: #246EB9; + } + a:hover, a:focus, a:active { + color: #C03221; + } .wy-nav-side{ background-color: #ededed; } @@ -49,10 +55,10 @@ .highlight .k, .highlight .nt, .highlight .no{ color: #246EB9; } - .highlight .s, .highlight .s1, .highlight .s2{ + .highlight .s, .highlight .s1, .highlight .s2, .highlight .na{ color: #32AD65; } - .highlight .nb, .highlight .o{ + .highlight .nb, .highlight .o, .highlight .cm{ color: #FFBE0B; } .highlight .c1{ @@ -111,9 +117,12 @@ background-color: #343434; color: #e5e6e7; } - a, a:hover, a:focus, a:active { + a, a:visited { color: #6fb2e8; } + a:hover, a:focus, a:active { + color: #db9444; + } code, .rst-content code.literal{ background-color: rgba(220,220,220,0.1); color: #db9444; @@ -165,10 +174,10 @@ .highlight .k, .highlight .nt, .highlight .no{ color: #6fb2e8; } - .highlight .s, .highlight .s1, .highlight .s2{ + .highlight .s, .highlight .s1, .highlight .s2, .highlight .na{ color: #32AD65; } - .highlight .nb, .highlight .o{ + .highlight .nb, .highlight .o, .highlight .cm{ color: #db9444; } .highlight .c1{ From cdd1f9d0cbddbfd3374d7fb0cd95ca50ee5c5724 Mon Sep 17 00:00:00 2001 From: Matthias Zepper Date: Thu, 17 Mar 2022 11:29:08 +0100 Subject: [PATCH 3/3] Changelog update --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f7a5ddd8f..5b726791db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ * Handle exception in `nf-core list` when a broken git repo is found ([#1273](https://github.com/nf-core/tools/issues/1273)) * Updated URL for pipeline lint test docs ([#1348](https://github.com/nf-core/tools/issues/1348)) * Updated `nf-core create` to tolerate failures and retry when fetching pipeline logos from the website ([#1369](https://github.com/nf-core/tools/issues/1369)) +* Modified the CSS overriding `sphinx_rtd_theme` default colors to fix some glitches in the API documentation ([#1294](https://github.com/nf-core/tools/issues/1294)) ### Modules