« 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: 00e0f14d144cb22a684f5d44a62cdc98ce84dd00 (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
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;
}

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.action {
    text-align: center;
}

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

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