-
Notifications
You must be signed in to change notification settings - Fork 0
/
meet.css
263 lines (226 loc) · 5.04 KB
/
meet.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
/* variables */
/*
Background: white;
background-decoration: black
alternate background: light-gray
text-pop: red;
button text - black, yellow (highlight), yellow (press)
button background: white, white (highlight), black (press)
button border: yellow, yellow, yellow
general border: black
*/
@media (prefers-color-scheme: dark) {
:root {
--background-default: #202020;
--background-decoration: #aaa;
--background-alternate: #101010;
--pop-color: #C22202;
--pop-color-button: #FFD40D;
--border-color: #aaa;
--text-color: #eee;
}
.panel-contents > #html-output-view ::selection {
color: black;
}
}
@media (prefers-color-scheme: light) {
:root {
--background-default: white;
--background-decoration: #1F0F0C;
--background-alternate: #aaa;
--pop-color: #C22202;
--pop-color-button: #FFD40D;
--border-color: #1F1902;
--text-color: black;
}
}
/* resets */
* {
box-sizing: border-box;
}
body {
background-color: var(--background-default);
font-family: 'American Typewriter', serif;
padding: 0;
margin: 0;
color: var(--text-color);
}
/* button styles */
button {
font-family: 'American Typewriter', serif;
}
.btn {
background: var(--background-default);
border-style: solid;
border-color: var(--pop-color-button);
padding: 8px;
border-width: 2px;
display: inline-block;
font-weight: 600;
font-size: 1rem;
margin-right: 0.5rem;
user-select: none;
-webkit-user-select: none;
color: var(--text-color);
cursor: pointer;
}
.btn:hover {
color: var(--pop-color-button);
background: var(--background-alternate);
}
.btn:active, input[type="checkbox"]:checked + label{
background: var(--background-decoration);
color: var(--pop-color-button);
cursor: pointer;
}
/* Page layout */
.app-layout {
width: 100vw;
}
.app-panel-container {
display: flex;
height: 100vh;
padding: 0;
margin: 0;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;
flex-direction: row;
}
.app-panel {
margin: 0rem 0rem 0rem 1.75rem;
position: relative;
width: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: stretch;
background-color: var(--background-default);
border: 1px solid var(--border-color);
}
.app-panel > h2.panel-label {
writing-mode: vertical-rl;
rotate: 180deg;
text-orientation: mixed;
position: absolute;
background-color: var(--background-default);
border: 1px solid var(--border-color);
left: 0px;
top: -1px;
margin: 0;
transform: translateX(100%);
padding: 0.5rem 0rem;
text-shadow: 0px 1px var(--background-decoration);
color: var(--pop-color);
font-family: 'Didot', serif;
letter-spacing: -1px;
}
.app-panel > .panel-toolbox {
background-color: var(--background-alternate);
padding: 0.5rem;
order: -1;
}
.app-panel > .panel-contents {
overflow: scroll;
height: 100%;
order: 1;
}
#html-output-view {
font-family: Arial, Helvetica, sans-serif;
}
.panel-contents > #html-output-view ::selection {
background: var(--pop-color-button);
}
@media screen and (max-width: 1000px) {
.app-panel-container {
padding: 0;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto auto minmax(40vh, 1fr);
}
.app-panel:nth-child(3) {
grid-row: 3/4;
}
.app-panel {
margin: 0.125rem 0.125rem 1rem 0.125rem;
width: unset;
min-height: 0;
}
.app-panel > h2.panel-label {
order: -2;
writing-mode: inherit;
text-orientation: inherit;
transform: none;
rotate: 0deg;
padding: 0rem 0rem 0rem 0.5rem;
position: initial;
color: unset;
text-shadow: unset;
}
#raw-file-contents {
display: none;
}
}
/* Output formatting */
.output-container {
overflow: scroll;
padding: 0.5rem;
}
pre {
white-space: pre-wrap; /* Since CSS 2.1 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
overflow: scroll;
padding: 0.5rem;
background-color: var(--background-default);
}
pre:empty {
display: none;
}
@media print {
.screen-only {
display: none;
}
}
@media screen {
.print-only {
display: none;
}
}
h3 {
text-align: center;
margin: 0.5rem;
}
/* Floating control */
#floatingTool {
position:absolute;
width: max-content;
background-color: black;
color: white;
border: 4px solid var(--pop-color-button);
vertical-align: top;
padding: 0.15rem;
}
#floatingTool a {
cursor: pointer;
}
#floatingTool a:hover{
text-decoration: underline;
}
/* fancy tricks */
.halftone {
--dotSize: 2px;
--stop1: 3%;
--stop2: 60%;
}
.halftone::after {
content: "";
position: absolute;
inset: 0;
background-image: radial-gradient(circle at center, var(--background-alternate) 3px, transparent 0),
radial-gradient(circle at center, var(--background-decoration) var(--dotSize), transparent 0);
background-size: 1rem 1rem;
background-position: 0 0, 0.55rem 0.55rem;
mask-image: linear-gradient(rgb(0 0 0), rgb(0 0 0 / 0));
}