-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
201 lines (168 loc) · 3.02 KB
/
styles.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
html {
font-size: 17px;
line-height: 1.5;
font-family: sans-serif;
}
body {
margin: 0 auto;
padding: 20px;
max-width: 1000px;
}
.mt-0 {
margin-top: 0;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
margin: 2rem auto;
}
header h1 {
margin: 0;
}
header nav {
display: flex;
align-items: center;
}
header nav a {
margin-left: 0.75rem;
}
a {
text-underline-offset: 0.17em;
}
h1,h2,h3,h4,h5,h6 {
line-height: 1.2;
letter-spacing: -0.02em;
margin-block-start: 1em;
margin-block-end: 0.5em;
}
#output {
border: 1px solid;
padding: 1rem;
margin: 2rem auto;
}
#results,
#episode-explorer ul {
list-style: none;
padding: 0;
margin: 2rem auto;
}
#results li,
#episode-explorer li {
margin-bottom: 1rem;
}
#results a {
display: inline-block;
color: inherit;
text-decoration: none;
}
#results a:hover, #results a:focus {
text-decoration: underline;
}
#results li > span {
display: block;
}
#results p,
#episode-explorer p {
margin: 0.2em auto;
}
#results mark {
font-weight: 700;
}
#results span,
#episode-explorer span.character {
color: rgba(0,0,0,0.6);
}
#results strong {
font-weight: 400;
color: rgba(0,0,0,1);
}
#episode-explorer {
background-color: white;
border-top-left-radius: 0.75em;
border-top-right-radius: 0.75em;
bottom: 0;
box-shadow: 0 0.05em 0.15em #0000001a, 0 0.15em 0.9em #00000005;
height: 50vh;
max-height: 500px;
width: 500px;
overflow-y: auto;
padding: 0 1.4rem 1rem;
position: fixed;
right: 2rem;
}
@media (max-width: 800px) {
#episode-explorer {
right: 1rem;
left: 1rem;
width: auto;
}
}
#episode-explorer:empty {
display: none;
}
#episode-explorer h3 {
margin: 0 -1.4rem;
position: sticky;
top: 0;
padding: 1.2rem 1.4rem 0.9rem;
background-color: white;
font-size: 1rem;
margin-bottom: 1rem;
border-bottom: 1px solid rgba(0,0,0,0.05);
}
#episode-explorer ul {
margin-top: 0;
}
#episode-explorer button {
margin: 0 auto;
position: sticky;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: black;
box-shadow: 0 0 40px 20px #ffffffbd;
}
.selected-quote p span {
background-color: yellow;
font-weight: 700;
}
input, button {
appearance: none;
border-radius: 0.35em;
font-size: 1rem;
padding: 0.25em 0.65em;
line-height: 1;
box-shadow: 0 0.05em 0.15em #0000001a, 0 0.15em 0.9em #00000005;
}
input[type="search"] {
width: 100%;
max-width: 420px;
}
input[type="number"] {
width: 3em;
}
input[type="search"], input[type="number"] {
background-color: white;
border: 1px solid #d5d5d5;
border-top-color: #00000017;
border-bottom-color: #00000036;
}
button {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
background-color: rgba(0,0,0,0.8);
border: 1px solid black;
color: white;
cursor: pointer;
font-weight: 700;
padding-left: 0.55em;
padding-right: 0.55em;
}
button:hover, button:active {
background-color: black;
}
form input {
margin-left: 7px;
margin-right: 17px;
}