Skip to content
Snippets Groups Projects
Commit cb3fc885 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'update-docs-css' into 'master'

update docs css

See merge request !144
parents 84be1081 2b40b003
No related branches found
No related tags found
1 merge request!144update docs css
/* /*
override css elements of daux.io blue theme override css elements of daux.io blue theme
version 2023-10-09 version 2024-10-24
*/ */
:root { :root {
/* Axels Overrides */ /* Axels Overrides */
--color-text: #234; --color-text: #234;
--link-color: #822; --link-color: #228;
--brand-color: var(--color-text); --brand-color: var(--color-text);
--brand-background: var(--body-background); --brand-background: var(--body-background);
--code-tag-background-color: #f0f3f3;
--code-tag-border-color: #dee;
--code-tag-box-shadow: none;
--hr-color: none; --hr-color: none;
--pager-background-color: #f8fafa;
--pager-border-color: none;
--search-field-background: none; --search-field-background: none;
--search-field-border-color: none; --search-field-border-color: none;
--sidebar-background: var(--body-background); --sidebar-background: var(--body-background);
--sidebar-border-color: none; --sidebar-border-color: none;
--sidebar-link-active-background: #e8f4f6; --sidebar-link-active-background: #f0f4f6;
--sidebar-link-active-background: #eee;
/* Axels custom values */ /* Axels custom values */
--axel_bg-toc: var(--body-background); --axel_bg-toc: var(--body-background);
--axel_bg-toc-head: #f8f8f8; --axel_bg-toc-head: #f8f8f8;
--axel_brand-background: none; --axel_brand-background: none;
--axel_brand-pre-background: rgb(255, 0, 51); --axel_brand-pre-background: rgb(255, 0, 51);
;
--axel_brand-pre-background-hover: rgb(255, 0, 51); --axel_brand-pre-background-hover: rgb(255, 0, 51);
;
--axel_h1_header: none; --axel_h1_header: none;
--axel_h1: #111; --axel_h1: #111;
--axel_h1-bg: none; --axel_h1-bg: none;
...@@ -33,12 +35,13 @@ ...@@ -33,12 +35,13 @@
--axel_h2-hero-bottom: 2px solid #912; --axel_h2-hero-bottom: 2px solid #912;
--axel_h3: #333; --axel_h3: #333;
--axel_h3-bottom: 0px solid #ddd; --axel_h3-bottom: 0px solid #ddd;
--axel_h4: #444; --axel_h4: #478;
--axel_hero_bg: #f8f8f8; --axel_h5: #699;
--axel_hero_bg: #faf8f6;
--axel_img-border: 2px dashed #ccc; --axel_img-border: 2px dashed #ccc;
--axel_nav-bg: #fcfcfc; --axel_nav-bg: #fcfcfc;
--axel_nav-buttomborder: #ddd; --axel_nav-buttomborder: #ddd;
--axel_pre-background: #f8f8f8; --axel_pre-background: #faf8f6;
--axel-th-background: #e0e4e8; --axel-th-background: #e0e4e8;
--axel-article-nav-border-top: 0px dotted #ddd; --axel-article-nav-border-top: 0px dotted #ddd;
} }
...@@ -46,9 +49,10 @@ ...@@ -46,9 +49,10 @@
.dark { .dark {
/* Axels Overrides */ /* Axels Overrides */
--color-text: #c0c0c0; --color-text: #c0c0c0;
--link-color: #c66; --link-color: #88e;
--brand-color: var(--color-text); --brand-color: var(--color-text);
--brand-background: var(--body-background); --brand-background: var(--body-background);
--body-background: #101418;
--hr-color: none; --hr-color: none;
--code-tag-background-color_: #bcc; --code-tag-background-color_: #bcc;
--search-field-background: none; --search-field-background: none;
...@@ -74,6 +78,8 @@ ...@@ -74,6 +78,8 @@
--axel_h2-hero-bottom: 2px solid #712; --axel_h2-hero-bottom: 2px solid #712;
--axel_h3: #589; --axel_h3: #589;
--axel_h3-bottom: 0px solid #333; --axel_h3-bottom: 0px solid #333;
--axel_h4: #478;
--axel_h5: #278;
--axel_hero_bg: #242424; --axel_hero_bg: #242424;
--axel_img-border: 2px dashed #555; --axel_img-border: 2px dashed #555;
--axel_nav-bg: #242424; --axel_nav-bg: #242424;
...@@ -123,6 +129,17 @@ a.Brand { ...@@ -123,6 +129,17 @@ a.Brand {
padding-top: 1em; padding-top: 1em;
} }
.s-content h1::before{
background: #fee;
border: 3px double #f00;
color: #f00;
content: 'FEHLER: Keine Überschrift 1 in einer Markdown-Datei für Daux verwenden! Mit H2 beginnen!';
display: block;
font-size: 50%;
padding: 0.3em;
margin-bottom: 2em;
}
.s-content h1 { .s-content h1 {
background: var(--axel_h1-bg); background: var(--axel_h1-bg);
color: var(--axel_h1); color: var(--axel_h1);
...@@ -168,6 +185,13 @@ img{ ...@@ -168,6 +185,13 @@ img{
.s-content > h4 { .s-content > h4 {
color: var(--axel_h4); color: var(--axel_h4);
font-size: 140%;
font-weight: bold;
margin: 2em 0;
}
.s-content > h5 {
color: var(--axel_h5);
font-size: 135%; font-size: 135%;
font-weight: bold; font-weight: bold;
margin: 2em 0; margin: 2em 0;
...@@ -175,10 +199,12 @@ img{ ...@@ -175,10 +199,12 @@ img{
.s-content .TableOfContentsContainer h4 { .s-content .TableOfContentsContainer h4 {
margin: 1em 0; margin: 1em 0;
font-size: 100%; font-size: 110%;
text-align: center; text-align: center;
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.1);
padding: 0.3em; padding: 0.3em;
font-weight: bold;
font-family: Arial;
} }
ul.TableOfContents a{ ul.TableOfContents a{
color: var(--color-text); color: var(--color-text);
...@@ -241,6 +267,7 @@ div.hero h2 { ...@@ -241,6 +267,7 @@ div.hero h2 {
position: fixed; position: fixed;
right: 2em; right: 2em;
top: 1em; top: 1em;
height: 96%;
} }
} }
...@@ -254,12 +281,14 @@ div.hero h2 { ...@@ -254,12 +281,14 @@ div.hero h2 {
border-top-left-radius: 1em; border-top-left-radius: 1em;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 0; padding: 0.3em;
} }
.TableOfContentsContainer__content { .TableOfContentsContainer__content {
border-width: 1px; border-width: 0px;
font-size: 0.5em; font-size: 0.5em;
height: inherit;
overflow: auto;
} }
ul.TableOfContents ul { ul.TableOfContents ul {
...@@ -267,17 +296,17 @@ ul.TableOfContents ul { ...@@ -267,17 +296,17 @@ ul.TableOfContents ul {
padding-left: 1em; padding-left: 1em;
} }
.TableOfContents a:hover{
text-decoration: underline;
}
/* ----- Icons on links --- */ /* ----- Icons on links --- */
.EditOn a::before{ .EditOn a::before{
content: '✏️ '; content: '✏️ ';
} }
.Links a[href^="https://github.com/"]::before { .Links a::before {
content: '🌐 ';
}
.Links a[href^="https://git-repo.iml.unibe.ch/"]::before {
content: '🌐 '; content: '🌐 ';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment