-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (104 loc) · 1.83 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
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
122
123
124
:root {
--bg: #ffffff;
--form-fg: #ffffff;
--form-bg: #9a7e6f;
--form-bg-hover: #54473f;
--radius: 8px;
--box-shadow: 0 2px 8px #00000044;
--box-shadow-light: 0 0 4px #00000033;
--transition: 80ms ease;
}
* {
box-sizing: border-box;
}
html {
height: 100%;
color: #333;
}
body {
display: block flow-root;
margin: 0;
padding-inline: 1rem;
background-image: url("./bg.jpg");
background-attachment: fixed;
}
main {
margin-block: 2rem;
border-radius: var(--radius);
box-shadow: var(--box-shadow);
background: var(--bg);
}
footer {
display: flex;
justify-content: space-between;
margin-top: 1.5rem;
border-radius: 8px;
box-shadow: var(--box-shadow);
background: var(--bg);
& > * {
margin: 0;
}
& > :last-child {
text-align: right;
}
}
canvas {
aspect-ratio: 1 / 1;
width: 100%;
max-width: 600px;
display: block;
outline: 2px dashed;
&.pixelated {
image-rendering: pixelated;
}
}
label {
text-align: center;
}
button {
color: var(--form-fg);
background-color: var(--form-bg);
border: unset;
font-size: 1rem;
line-height: 1.5;
cursor: pointer;
user-select: none;
border-radius: var(--radius);
box-shadow: var(--box-shadow-light);
transition: background-color var(--transition);
&:hover {
background-color: var(--form-bg-hover);
}
}
.container {
max-width: 700px;
margin-inline: auto;
padding: 1rem;
& > :first-child {
margin-top: 0;
}
& > :last-child {
margin-bottom: 0;
}
}
#canvas-container {
display: grid;
place-items: center;
}
#shader-controls {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
margin-block: 1rem;
}
@media (width < 600px) {
#shader-controls {
grid-template-columns: 1fr;
}
}
#shader-list .selected {
font-weight: bold;
&::marker {
font-weight: normal;
}
}