aboutsummaryrefslogtreecommitdiff
path: root/frontend/scss/general.scss
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 19:22:14 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 19:22:14 +0200
commit9cfcbabb032c729b06d581412a64a9e7cefed6b1 (patch)
treee5ff64ed658ef1af98d53191a252c0d0c7e1c7f5 /frontend/scss/general.scss
parent412a77b7c1ba1819f4bf1c0697ddd19d7af21e19 (diff)
style(format): install prettier and run
Diffstat (limited to 'frontend/scss/general.scss')
-rw-r--r--frontend/scss/general.scss21
1 files changed, 14 insertions, 7 deletions
diff --git a/frontend/scss/general.scss b/frontend/scss/general.scss
index 694a4b0..4df6da0 100644
--- a/frontend/scss/general.scss
+++ b/frontend/scss/general.scss
@@ -11,12 +11,15 @@ body * {
line-height: var(--line-height);
}
-main, article {
+main,
+article {
max-width: var(--width-content);
margin: 0 auto;
}
-h1, h2, h3 {
+h1,
+h2,
+h3 {
font-weight: 500;
line-height: var(--line-height-smaller);
@@ -64,7 +67,8 @@ nav > a {
line-height: var(--line-height-smaller);
}
-em, cite {
+em,
+cite {
font-style: italic;
}
@@ -75,7 +79,8 @@ b {
padding: 0.05em 0.1em;
}
-ul, ol {
+ul,
+ol {
margin-top: -1rem;
margin-bottom: var(--margin-base);
margin-left: 1rem;
@@ -118,14 +123,15 @@ figure {
margin-bottom: var(--margin-base);
- & a, img {
+ & a,
+ img {
max-width: 100%;
display: block;
&.large {
--max-width: var(--width-deco);
--width: min(calc(100vw - 4rem), var(--max-width));
- margin-left: max(calc((100% - var(--max-width))/2), calc((100% - var(--width))/2));
+ margin-left: max(calc((100% - var(--max-width)) / 2), calc((100% - var(--width)) / 2));
width: var(--width);
max-width: var(--max-width);
max-height: none;
@@ -139,7 +145,8 @@ figcaption {
color: var(--color-gray);
}
-code, pre {
+code,
+pre {
background: var(--color-black);
}