-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
119 lines (94 loc) · 2.04 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
* {
margin: 0;
padding: 0;
font-family: "Inclusive Sans", "Noto Sans Linear A", sans-serif;
font-size: 16pt;
}
:root {
--main-dark: #000000;
--main-light: #dddddd;
--input-dark: #333333;
--input-light: #ffffff;
--main-bg: var(--main-light);
--main-text: var(--main-dark);
--input-background: var(--input-light);
--input-text: var(--input-dark);
/* for border-radius */
--curve: 4px;
}
@media (prefers-color-scheme: dark) {
:root {
--main-bg: var(--main-dark);
--main-text: var(--main-light);
--input-background: var(--input-dark);
--input-text: var(--input-light);
}
}
/* to remove the top and left whitespace */
html {
width: 100%;
height: 100%;
background: var(--main-bg);
color: var(--main-text);
}
body {
margin: auto;
height: 100%;
max-width: 800px;
}
main {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
form.action {
display: flex;
width: 100%;
justify-content: space-between;
}
button {
background: var(--input-background);
color: var(--input-text);
border: none;
border-radius: var(--curve);
padding-left: 0.5em;
padding-right: 0.5em;
padding-top: 2px;
padding-bottom: 2px;
margin: 0.5em;
}
input.action {
width: calc(100% - 6em);
margin-right: 1em;
background: var(--input-background);
color: var(--input-text);
border: none;
border-radius: var(--curve);
}
button.action {
width: 5em;
}
#telemetry {
width: 9em;
}
p {
/* TODO: Can we add a little margin / padding to the main text?
* It gets very close to the edges when narrowed down.
*/
padding-bottom: 0.5rem;
/* one line plus padding */
min-height: 1.5rem;
}
q,
blockquote {
background: var(--input-background);
color: var(--input-text);
border-radius: var(--curve);
padding: calc(2 * var(--curve));
word-spacing: 0.5em;
}
#controls {
display: flex;
justify-content: space-between;
}