-
Notifications
You must be signed in to change notification settings - Fork 44
/
popup.css
116 lines (99 loc) 路 1.95 KB
/
popup.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
:root {
--in-content-button-background: #9da6af;
--in-content-button-background-hover: #9da6af;
--in-content-button-background-active: #9da6af;
--in-content-border-active: #0a84ff;
--in-content-primary-button-background: #0060df;
--in-content-primary-button-background-hover: #003eaa;
--in-content-primary-button-background-active: #002275;
--black: #000000;
--white: #ffffff;
--light-grey: #dddddd;
--dark-grey: #444444;
}
@media (prefers-color-scheme: dark) {
:root {
--black: #ffffff;
--white: #343434;
--light-grey: #222222;
--dark-grey: #bbbbbb;
}
}
html {
display: flex;
background-color: var(--light-grey);
}
body {
color: var(--black);
background-color: var(--white);
font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
font-size: 16px;
-webkit-user-select: none;
user-select: none;
margin: 0;
padding: 0;
overflow-y: scroll;
}
main {
min-width: 350px;
}
header {
display: flex;
flex-direction: column;
align-items: stretch;
background-color: var(--light-grey);
}
#version {
margin: 1ch 0;
padding: 0 1ch;
text-align: right;
}
h1 {
text-align: center;
margin-top: 0;
padding: 0 0.67em;
}
nav {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
nav a {
flex-grow: 1;
text-align: center;
color: var(--dark-grey);
line-height: 1em;
font-weight: bold;
text-decoration: none;
padding: 1ch;
border-radius: 5px 5px 0 0;
}
nav a:active, nav a.selected {
color: var(--black);
background-color: var(--white);
}
section:not(.open) {
display: none;
}
section.open:empty {
display: flex;
justify-content: center;
align-items: center;
margin: 1em 0;
}
section.open:empty::before {
content: "No one's around to help.";
}
section h2 {
text-align: center;
}
label:not(:first-child),
input:not(:first-child),
select:not(:first-child) {
margin-left: 1ch;
}
textarea {
resize: none;
width: 100%;
}