better fix for bad code preview and use inherit

Thanks-to: doomquakekeen <doomquakekeen@gnous.eu>
This commit is contained in:
rick 2023-09-04 00:34:13 +02:00
parent 0eb5adcd00
commit 1aff88e197
Signed by: Rick
GPG key ID: 5CBE8779CD27BCBA

View file

@ -16,7 +16,7 @@
font-display: block;*/ font-display: block;*/
} }
/* Parametres generaux */ /* paramètres généraux */
* { * {
margin: 0; margin: 0;
@ -32,21 +32,18 @@ header {
display: flex; display: flex;
} }
header * {
background-color: #0E0E1B;
}
header a { header a {
padding-top: 1em; padding-top: 1em;
padding-right: 1em; padding-right: 1em;
padding-left: 1em; padding-left: 1em;
color: white; color: white;
text-decoration: none; text-decoration: none;
background-color: inherit;
} }
header a:hover { header a:hover {
background-color: white; background-color: white;
color: #0E0E1B color: #0E0E1B;
} }
footer { footer {
@ -57,7 +54,7 @@ footer {
text-align: center; text-align: center;
color: white; color: white;
display: grid; display: grid;
grid-template-columns: 0.5fr 0.5fr 2fr 1fr grid-template-columns: 0.5fr 0.5fr 2fr 1fr;
} }
a { a {
@ -86,11 +83,7 @@ h1, h2, h3, h4, h5, h6 {
text-align: right; text-align: right;
} }
/* Parametres pour macro de prévisualisation d’articles */ /* paramètres pour macro de prévisualisation d'articles */
.pre-art h2, .pre-art a, .pre-art div, .pre-art p {
background-color: #0E0E1B;
}
.pre-art { .pre-art {
background-color: #0E0E1B; background-color: #0E0E1B;
@ -104,12 +97,18 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: 30px; margin-bottom: 30px;
} }
.summary { .pre-art p, .pre-art h2 {
margin-bottom: 5%; background-color: inherit;
} }
.pre-art a { .pre-art a {
text-decoration: none; text-decoration: none;
background-color: inherit;
}
.summary {
margin-bottom: 5%;
background-color: inherit;
} }
.author:link { .author:link {
@ -143,6 +142,10 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: 1em; margin-bottom: 1em;
} }
.tags {
background-color: inherit;
}
.tags a { .tags a {
font-size: 12px; font-size: 12px;
background-color: #2c3e50; background-color: #2c3e50;
@ -152,7 +155,7 @@ h1, h2, h3, h4, h5, h6 {
margin-right: 1em; margin-right: 1em;
} }
/* parametres pour category */ /* paramètres pour catégorie */
h1 { h1 {
color: white; color: white;
text-align: center; text-align: center;
@ -166,7 +169,7 @@ h1 {
margin-bottom: 3em; margin-bottom: 3em;
} }
/* Parametres pour article */ /* Paramètres pour article */
#article-header { #article-header {
color: grey; color: grey;
@ -213,20 +216,20 @@ blockquote p {
background-color: #1B1B42; background-color: #1B1B42;
padding: 10px; padding: 10px;
padding-left: 20px; padding-left: 20px;
border-left: 5px solid aliceblue border-left: 5px solid aliceblue;
} }
pre, code { pre, code {
font-family: DejaVu Sans Mono; font-family: DejaVu Sans Mono;
font-size: 16px; font-size: 16px;
line-height: 1.4; line-height: 1.4;
color: black;
background-color: #F8F8F8; background-color: #F8F8F8;
border-color: #E6E6E6; border-color: #E6E6E6;
border-radius: 2px; border-radius: 2px;
} }
code { code {
color: black;
padding: 3px; padding: 3px;
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
@ -236,7 +239,6 @@ pre {
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;
padding: 10px; padding: 10px;
color: black;
overflow: auto; overflow: auto;
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
@ -307,6 +309,10 @@ pre * {
} }
} }
.highlight {
background-color: F8F8F8;
}
/* pygments */ /* pygments */
.highlight .c { color: #8f5902; font-style: italic; } .highlight .c { color: #8f5902; font-style: italic; }
.highlight .err { color: #a40000; border: 1px solid #ef2929; } .highlight .err { color: #a40000; border: 1px solid #ef2929; }