-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
305 lines (256 loc) · 4.37 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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/*
Theme Name: List Network Sites
Theme URI: https://github.com/tomslominski/wp-list-network-sites
Author: Tom Slominski
Author URI: http://tomslominski.net/
Description: List sites in a network installation of WordPress.
Version: 2.0
License: MIT
License URI: https://github.com/tomslominski/wp-list-network-sites/blob/master/LICENSE.md
Text Domain: list-network-sites
*/
/*
Global
*/
* {
box-sizing: border-box;
}
html {
-webkit-font-smoothing: antialiased;
}
a, a:visited {
color: black;
}
.hide {
visibility: hidden;
opacity: 0;
}
.show {
visibility: visible;
opacity: 1;
}
/*
Layout
*/
body {
background: #F5F5F5;
font-family: -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 62.5%;
color: #2F2F2F;
}
.container {
width: 450px;
margin: 0 auto;
}
/*
Header
*/
.site-name {
font-size: 2.2rem;
text-align: center;
}
header h2 {
font-size: 1.2rem;
}
header h3 {
font-size: 1rem;
margin-bottom: 5px;
}
.search[type="search"] {
border: none;
border-bottom: 1px solid #A9A9A9;
background: none;
width: 100%;
font-size: 1rem;
-webkit-appearance: none;
-webkit-transition: border-bottom-color 0.5s;
transition: border-bottom-color 0.5s;
margin-top: 0;
}
.search:focus {
outline: none;
border-bottom-color: black;
}
.submit {
overflow: auto;
}
.submit button {
float: right;
margin: 5px 0 0 0;
}
/*
Content
*/
.item {
background: white;
margin: 10px 0;
padding: 30px 20px;
box-shadow: 0px 0px 2px 0px rgba( 0, 0, 0, 0.1 );
}
.item h2 {
font-size: 1.8rem;
line-height: 1.8rem;
margin: 0;
margin-bottom: 1rem;
}
.link, .link:visited {
text-decoration: none;
color: white;
background: #4D4D4D;
padding: 3px 6px;
text-transform: uppercase;
font-size: 0.8rem;
margin-right: 5px;
margin-bottom: 5px;
-webkit-transition: background 0.5s;
transition: background 0.5s;
display: inline-block;
-moz-appearance: none;
-webkit-appearance: none;
border: none;
}
.link:hover {
background: #2F2F2F;
}
.no-results {
font-size: 1.4rem;
text-align: center;
}
/* Overlay */
.items-wrapper {
position: relative;
}
.items-overlay {
background-color: rgba( 0, 0, 0, 0.8 );
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-transition: opacity 0.3s, visibility 0.15s;
transition: opacity 0.3s, visibility 0.15s;
}
.items-overlay .loader {
background-image: url( 'assets/img/loader.svg' );
background-repeat: no-repeat;
background-size: 30px;
background-position: center;
height: 30px;
width: 30px;
display: block;
-webkit-animation: rotate 1s infinite linear;
animation: rotate 1s infinite linear;
}
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
/* Pagination */
.pagination {
font-size: 1rem;
text-align: center;
position: relative;
}
.pagination .button, .pagination .pager input {
background: white;
padding: 4px 8px 6px 8px;
line-height: 20px;
border: 1px solid #E0E0E0;
height: 30px;
width: 30px;
display: inline-block;
-webkit-transition: background 0.2s;
transition: background 0.2s;
}
.pagination .pager input {
width: 50px;
padding: 5px;
font-size: 1rem;
}
.pagination .button {
text-decoration: none;
}
.pagination .button:hover {
background: #ebebeb;
}
.pagination .back-buttons {
position: absolute;
top: 0;
left: 0;
}
.pagination .next-buttons {
position: absolute;
top: 0;
right: 0;
}
/*
Footer
*/
footer p {
text-align: center;
margin: 30px 0;
}
/*
Media queries
*/
@media only screen and ( max-width: 480px ) {
.container {
width: 95%;
}
}
/* Print stylesheet */
@media print {
body {
background: white;
}
.container {
width: 90%;
}
.links, .filtering, .pagination, footer {
display: none;
}
.items {
overflow: auto;
}
.item:nth-child(2n+1) {
float: left;
}
.item:nth-child(2n) {
float: right;
}
.item {
width: 50%;
padding: 0;
box-shadow: none;
}
.item h2 {
text-align: center;
font-size: 12pt;
font-weight: normal;
margin-bottom: 0;
}
.links, #filter-field {
display: none;
}
}