aboutsummaryrefslogtreecommitdiff
path: root/sass/style.scss
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-11-21 17:15:56 +0900
committerA Farzat <a@farzat.xyz>2024-11-21 17:15:56 +0900
commit17478f87e5aa333f40ab70447bb11554a0c64ad6 (patch)
treedc62a758e38601d792df45c70ec5e7b46f5bcb9e /sass/style.scss
parent3688821b4640fbd75ca130bea2f8e80eeeba8259 (diff)
downloadfarzat.xyz-17478f87e5aa333f40ab70447bb11554a0c64ad6.tar.gz
farzat.xyz-17478f87e5aa333f40ab70447bb11554a0c64ad6.zip
Made an initial attempt
Diffstat (limited to 'sass/style.scss')
-rw-r--r--sass/style.scss32
1 files changed, 32 insertions, 0 deletions
diff --git a/sass/style.scss b/sass/style.scss
new file mode 100644
index 0000000..5feebc0
--- /dev/null
+++ b/sass/style.scss
@@ -0,0 +1,32 @@
+@import "variables";
+@import "header";
+@import "main";
+@import "mixins";
+@import "typography";
+:root {
+ @include color-theme(dark);
+ &[data-theme="auto"] {
+ @include color-theme(light);
+ @media (prefers-color-scheme: dark) {
+ @include color-theme(dark);
+ }
+ }
+ &[data-theme="light"] {
+ @include color-theme(light);
+ }
+}
+html {
+ font-size: 100%;
+ @media only screen and (max-width: 37.5em) {
+ font-size: 2.8vw;
+ }
+}
+body {
+ background-color: var(--color-background);
+ color: var(--color-text);
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ font-weight: normal;
+ padding: 0;
+ margin: 0;
+ position: relative;
+}