summaryrefslogtreecommitdiff
path: root/src/css
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-09 19:00:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-09 19:00:54 +0800
commit47ae88d28f915ba9be6a8b45be370da1d1598ef1 (patch)
tree12c9304cf8f23fc02ff56b12709471be83704ea4 /src/css
parentfea026372a36aed171dd2f359e4894514989f9cf (diff)
made blob colors and gradients truly dynamic/random
Diffstat (limited to 'src/css')
-rw-r--r--src/css/style.css52
1 files changed, 32 insertions, 20 deletions
diff --git a/src/css/style.css b/src/css/style.css
index e4d813c2..e65debe5 100644
--- a/src/css/style.css
+++ b/src/css/style.css
@@ -3,6 +3,11 @@
--neon-bg-color: #05010d
}
+html {
+ /* hanging-punctuation: first last; */
+ color-scheme: dark;
+}
+
@font-face {
font-family: hacked;
src: url(/fonts/Hacked-KerX.ttf);
@@ -181,6 +186,19 @@ body::-webkit-scrollbar {
}
}
+@keyframes rotate {
+ from {
+ rotate: 0deg;
+ }
+
+ 50% {
+ scale: 1 1.25;
+ }
+
+ to {
+ rotate: 360deg;
+ }
+}
/* animation: name duration timing-function delay iteration-count direction fill-mode; */
@@ -292,6 +310,13 @@ body::-webkit-scrollbar {
transition: all 0.3s;
} */
+@media (prefers-reduced-motion: no-preference) {
+ :has(:target) {
+ scroll-behavior: smooth;
+ scroll-padding-top: var(--topBarHeight);
+ }
+}
+
.js-tilt-glare {
border-radius: 18px;
@@ -307,7 +332,7 @@ header {
width: 100%;
height: 3em;
justify-content: space-between;
- align-items:center;
+ align-items: center;
/* background: color(0, 0, 0, .1); */
z-index: 1000;
background: rgba(0, 0, 0, 0.2);
@@ -438,6 +463,11 @@ a:hover {
/* color: #F4E8C1; */
}
+.sep {
+ width: 5vh;
+ height: 5vh;
+}
+
.blob {
min-height: 75%;
min-width: 75%;
@@ -460,24 +490,6 @@ a:hover {
animation-fill-mode: forwards;
}
-@keyframes rotate {
- from {
- rotate: 0deg;
- }
-
- 50% {
- scale: 1 1.25;
- }
-
- to {
- rotate: 360deg;
- }
-}
-
-.sep {
- width: 5vh;
- height: 5vh;
-}
.sblob {
background-color: white;
@@ -495,4 +507,4 @@ a:hover {
filter: blur(7vmax);
-webkit-filter: blur(7vmax);
z-index: -1;
-}
+} \ No newline at end of file