generated from argyleink/shortstack
-
Notifications
You must be signed in to change notification settings - Fork 400
/
Copy pathstyle.css
75 lines (63 loc) · 1.53 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@import 'split-button.css';
@custom-media --motionOK (prefers-reduced-motion: no-preference);
@custom-media --dark (prefers-color-scheme: dark);
@custom-media --light (prefers-color-scheme: light);
* {
box-sizing: border-box;
margin: 0;
}
html {
--brand-hue: 200;
--brand-saturation: 100%;
--brand-lightness: 50%;
--brand-light: hsl(var(--brand-hue) var(--brand-saturation) var(--brand-lightness));
--text1-light: hsl(var(--brand-hue) var(--brand-saturation) 10%);
--surface1-light: hsl(var(--brand-hue) 25% 97%);
--brand-dark: hsl( var(--brand-hue) calc(var(--brand-saturation) / 2) calc(var(--brand-lightness) / 1.5) );
--text1-dark: hsl(var(--brand-hue) 15% 85%);
--surface1-dark: hsl(var(--brand-hue) 10% 10%);
}
:root {
--brand: var(--brand-light);
--text1: var(--text1-light);
--surface1: var(--surface1-light);
}
@media (--dark) {
:root {
--brand: var(--brand-dark);
--text1: var(--text1-dark);
--surface1: var(--surface1-dark);
}
}
html {
block-size: 100%;
background-color: var(--surface1);
color: var(--text1);
}
body {
min-block-size: 100%;
font-family: system-ui, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5vmin;
}
.github-corner {
fill: var(--text1);
color: var(--surface1);
&:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
}
@keyframes octocat-wave{
0%,100% {
transform: rotate(0)
}
20%,60% {
transform: rotate(-25deg)
}
40%,80% {
transform: rotate(10deg)
}
}