aboutsummaryrefslogtreecommitdiffstats
path: root/src/less/main.less
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-07-03 01:29:43 -0700
committerGravatar Tom Willemse2021-07-03 01:29:43 -0700
commita4603a7901d76325f9ce220b4f6f8a4009084257 (patch)
treeb4150f9de50c2d9462f3857a45dc15efbd5ea756 /src/less/main.less
parent339103c4fed9718c23b9956c671294c032e62459 (diff)
downloadnew-ryuslash.org-a4603a7901d76325f9ce220b4f6f8a4009084257.tar.gz
new-ryuslash.org-a4603a7901d76325f9ce220b4f6f8a4009084257.zip
Update design and include CSS for my CGit and tekuti instances
This should include both a light and a dark theme, but I will admit that I'm mostly testing with the dark one.
Diffstat (limited to 'src/less/main.less')
-rw-r--r--src/less/main.less43
1 files changed, 26 insertions, 17 deletions
diff --git a/src/less/main.less b/src/less/main.less
index 3e6376f..4d16edd 100644
--- a/src/less/main.less
+++ b/src/less/main.less
@@ -1,16 +1,25 @@
-@background-color: #111114;
-@foreground-color: #bfbfbf;
-@link-color: #a88654;
-@font-family: sans-serif;
-
-body {
- background-color: @background-color;
- color: @foreground-color;
- font-family: @font-family;
+@import 'include/components';
+@import 'include/common';
+
+.title {
+ &:extend(.title-header);
+}
+
+.subtitle {
+ &:extend(.subtitle);
}
-a {
- color: @link-color;
+#postamble {
+ &:extend(.footer);
+ &:extend(.content-wrapper);
+
+ p {
+ &:extend(.footer-text);
+ }
+}
+
+#content {
+ &:extend(.content-wrapper);
}
figure {
@@ -23,14 +32,14 @@ pre.src {
position: static;
&::before {
- background-color: @background-color;
+ @media (prefers-color-scheme: dark) {
+ background-color: @dark-background;
+ }
+ @media (prefers-color-scheme: light) {
+ background-color: @light-background;
+ }
}
}
.org-src-container { position: relative; }
.org-svg { width: unset; }
-
-#content {
- max-width: 900px;
- margin: 0 auto;
-}