aboutsummaryrefslogtreecommitdiff
path: root/frontend/scss/general.scss
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/scss/general.scss')
-rw-r--r--frontend/scss/general.scss157
1 files changed, 157 insertions, 0 deletions
diff --git a/frontend/scss/general.scss b/frontend/scss/general.scss
new file mode 100644
index 0000000..b9cd31a
--- /dev/null
+++ b/frontend/scss/general.scss
@@ -0,0 +1,157 @@
+body {
+ font-family: "Raveo Variable", Raveo, "Inter Variable", Inter, sans-serif;
+
+ background: var(--color-dark);
+ color: var(--color-light);
+
+ padding: 2rem;
+}
+
+body * {
+ line-height: 1.4em;
+}
+
+main, article {
+ max-width: var(--width-content);
+ margin: 0 auto;
+}
+
+h1, h2, h3 {
+ font-weight: 500;
+
+ margin-bottom: 0.5rem;
+}
+
+h1 {
+ font-size: 2rem;
+ font-weight: 600;
+}
+
+h2 {
+ font-size: 1.66rem;
+
+ margin-top: calc(var(--margin-base) + 1rem);
+}
+
+h3 {
+ font-size: 1.33rem;
+
+ margin-top: calc(var(--margin-base) + 0.5rem);
+}
+
+p {
+ margin-bottom: var(--margin-base);
+}
+
+a {
+ color: var(--color-rose);
+ text-decoration: underline;
+
+ &:hover {
+ background: var(--color-light-rose);
+ }
+}
+
+em, cite {
+ font-style: italic;
+}
+
+b {
+ background: var(--color-light-rose);
+ font-weight: 500;
+
+ padding: 0.05em 0.1em;
+}
+
+ul, ol {
+ margin-top: -0.5rem;
+ margin-bottom: var(--margin-base - 0.5rem);
+ margin-left: 1rem;
+
+ list-style-position: outside;
+}
+
+ul {
+ list-style-type: disc;
+}
+
+ol {
+ list-style-type: roman;
+}
+
+li {
+ margin-bottom: 0.25rem;
+}
+
+.quote {
+ font-size: var(--font-size-tiny);
+}
+
+blockquote {
+ padding: 0.5rem 2rem;
+ margin-bottom: 0.25rem;
+
+ color: var(--color-gray);
+
+ border-left: var(--color-rose) solid 0.25em;
+}
+
+figure {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 0.5rem;
+
+ text-align: center;
+
+ margin-bottom: var(--margin-base);
+
+ & a, img {
+ max-height: max(60vh, 400px);
+ max-width: 100%;
+ display: block;
+
+ &.large {
+ --max-width: var(--width-deco);
+ --width: min(calc(100vw - 4rem), var(--max-width));
+ margin-left: max(-15%, calc((100% - var(--width))/2));
+ width: var(--max-width);
+ max-width: var(--width);
+ max-height: none;
+ }
+ }
+}
+
+figcaption {
+ font-size: var(--font-size-tiny);
+
+ color: var(--color-gray);
+}
+
+code, pre {
+ background: rgba(0, 0, 0, 0.4);
+}
+
+code {
+ padding: 0.05em 0.1em;
+
+ font-family: monospace;
+ font-size: var(--font-size-tiny);
+
+ color: var(--color-gray);
+ border: var(--color-light) 1px solid;
+}
+
+pre {
+ border: var(--color-light) 2px solid;
+
+ margin: 0 -1rem var(--margin-base) -1rem;
+ padding: 0.5rem 1rem;
+
+ & code {
+ padding: 0;
+
+ background: none;
+ border: none;
+ }
+} \ No newline at end of file