Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (106 loc) · 2.45 KB
/
Copy pathstyle.css
File metadata and controls
121 lines (106 loc) · 2.45 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');
:root {
--duration: 150ms;
--background-color: #fff;
--foreground-color: rgba(28, 28, 28, 0.5);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
overscroll-behavior-y: none;
}
body {
background-color: #000;
font-family: 'Inconsolata', monospace;
block-size: 100svh;
}
.light {
background-color: var(--background-color);
filter: brightness(var(--brightness));
inset: 0;
position: absolute;
z-index: -10;
transition-duration: var(--duration);
transition-property: background-color, border-color, color, fill, filter,
opacity, outline-color, stroke, text-decoration-color;
transition-timing-function: ease-out;
}
.light::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(
circle,
var(--overlay-color) 30%,
color-mix(in srgb, var(--overlay-color), #000 40%)
);
opacity: var(--temperature);
mix-blend-mode: multiply;
pointer-events: none;
transition-duration: var(--duration);
transition-property: background-color, border-color, color, fill, filter,
opacity, outline-color, stroke, text-decoration-color;
transition-timing-function: ease-out;
}
main {
align-items: center;
block-size: 100svh;
color: rgba(28, 28, 28, 0.5);
display: flex;
font-weight: bold;
justify-content: center;
width: 100vw;
.texts {
align-items: center;
display: flex;
flex-direction: column;
height: min(80vh, 40rem);
justify-content: space-between;
text-align: center;
*::selection {
background-color: transparent;
color: rgba(28, 28, 28, 0.5);
}
}
.title {
align-items: center;
color: rgba(28, 28, 28, 0.5);
display: flex;
font-size: 2.5rem;
gap: 0.25rem;
justify-content: center;
text-align: center;
}
.instructions {
display: flex;
flex-direction: column;
gap: 1rem;
}
}
label {
text-decoration: underline;
text-underline-offset: 2px;
}
input[type='color'] {
display: none;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
visibility: hidden;
}
}