« get me outta code hell

style.css « popup « extension - interactive-bgm - Browser extension that adds background music based on the site you're browsing
about summary refs log tree commit diff
path: root/extension/popup/style.css
blob: b9c857142f313c2addc53ee14ee7f9707f8b287f (plain)
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
body, html {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    min-width: 300px;
    max-width: 600px;
}

body {
    background-color: #EEEEEE;
    color: black;
    font-family: Helvetica, Arial, sans-serif;
}

.content label {
    font-weight: 800;
}

input[type=checkbox] {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0;
    position: relative;
    top: 1px;
}

input, button {
    margin-right: 4px;
    margin-left: 4px;
}

ul, p {
    margin: 4px 0;
}

ul {
    list-style: none;
    padding-left: 0;
}

.content li {
    padding: 3px;
}

.content li:nth-child(even) {
    background-color: white;
}

.content li:nth-child(odd) {
    background-color: #DDDDDD;
}

h1 {
    margin: 2px 0;
    font-size: 1.2em;
    text-align: center;
}

.content h2 {
    font-size: 0.9em;
    margin: 2px 0;
    text-align: center;
    overflow: hidden;
}

.content h2:before, .content h2:after {
    background-color: black;
    content: '';
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
}

.content h2:before {
    right: 0.5em;
    margin-left: -50%;
}

.content h2:after {
    left: 0.5em;
    margin-right: -50%;
}

.screen {
    width: 100%;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.screen:not(.visible) {
    display: none;
}

.screen.has-sidebar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background-color: #CCD;
}

.content {
    min-width: 300px;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
    background-color: #EEE;
}

.sidebar {
    min-width: 200px;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.sidebar h2 {
    font-size: 0.9em;
    margin: 0;
    white-space: nowrap;
}

.sidebar li {
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    text-indent: 14px;
}

.sidebar li.rule {
    cursor: pointer;
}

.content-screen {
    width: 100%;
    height: 100%;
}

.content-screen:not(.visible) {
    display: none;
}

#loading-screen p, #invalid-host-screen, #no-rule-content {
    text-align: center;
    font-style: italic;
}

#track-list li.track button {
    float: right;
}

#track-list li.track label {
    display: block;
    white-space: nowrap;
}

.track .top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    vertical-align: bottom;
}

input[type=range]::-moz-range-thumb, input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: #777777;
    border: 1px solid black;
}

input[type=range]::-moz-range-track, ::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #AAA;
}

#track-list li.action {
    text-align: center;
}

#rule-content.visible {
    display: flex;
    flex-direction: column;
}

#track-list {
    flex-grow: 1;
    overflow-y: scroll;
}