Taille et soulignement des titres.

This commit is contained in:
2026-03-19 00:48:17 +01:00
parent d54d821c82
commit d40c62be38
+57
View File
@@ -77,6 +77,63 @@ code:not([class]) {
color: $green;
}
// Soulignement des titres
h1 {
font-size: 1em;
color: $fg0;
text-transform: uppercase;
margin: 0;
padding-bottom: 1em;
position: relative;
display: inline-block;
}
h1::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1em; /* ≈ hauteur dun caractère */
background-image: linear-gradient(
to bottom,
transparent 35.71%,
$fg0 35.71% 42.85%,
transparent 42.85% 49.99%,
$fg0 49.99% 57.13%,
transparent 57.13%
);
}
h2 {
font-size: 1em;
text-transform: uppercase;
color: $fg0;
margin: 0;
padding-bottom: 1em;
position: relative;
display: inline-block;
}
h2::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1em; /* ≈ hauteur dun caractère */
background-image: linear-gradient(
to bottom,
transparent 49.99%,
$fg0 49.99% 57.13%,
transparent 57.13%
);
}
// Prompt and command line.
// ========================
.cmdblock {