/
status-bar.css
319 lines (264 loc) · 7.18 KB
/
status-bar.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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
@charset "UTF-8";
/*
* CSS styles inspired by the 'alert' class from twitter bootstrap.
*
* As we didn't want to conclift with Bootstrap it's all granted it's own namespace.
*
* We try and adhere to the http://codeguide.co/ guidelines for code formatting
* where possible.
*/
/*
* OpenSans
*
* We use the OpenSans font to create consistant and readable content
* on all the notices.
*/
/* Light */
@font-face {
font-family: 'sorry-status-bar-open-sans';
src: url("./fonts/Light/OpenSans-Light.eot?v=1.1.0");
src: url("./fonts/Light/OpenSans-Light.eot?#iefix&v=1.1.0") format("embedded-opentype"),
url("./fonts/Light/OpenSans-Light.woff2?v=1.1.0") format("woff2"),
url("./fonts/Light/OpenSans-Light.woff?v=1.1.0") format("woff"),
url("./fonts/Light/OpenSans-Light.ttf?v=1.1.0") format("truetype"),
url("./fonts/Light/OpenSans-Light.svg?v=1.1.0#Light") format("svg");
font-weight: 300;
font-style: normal;
}
/* Semibold */
@font-face {
font-family: 'sorry-status-bar-open-sans';
src: url("./fonts/Semibold/OpenSans-Semibold.eot?v=1.1.0");
src: url("./fonts/Semibold/OpenSans-Semibold.eot?#iefix&v=1.1.0") format("embedded-opentype"),
url("./fonts/Semibold/OpenSans-Semibold.woff?v=1.1.0") format("woff"),
url("./fonts/Semibold/OpenSans-Semibold.ttf?v=1.1.0") format("truetype"),
url("./fonts/Semibold/OpenSans-Semibold.svg?v=1.1.0#Semibold") format("svg");
font-weight: 500;
font-style: normal;
}
/* Bold */
@font-face {
font-family: 'sorry-status-bar-open-sans';
src: url("./fonts/Bold/OpenSans-Bold.eot?v=1.1.0");
src: url("./fonts/Bold/OpenSans-Bold.eot?#iefix&v=1.1.0") format("embedded-opentype"),
url("./fonts/Bold/OpenSans-Bold.woff2?v=1.1.0") format("woff2"),
url("./fonts/Bold/OpenSans-Bold.woff?v=1.1.0") format("woff"),
url("./fonts/Bold/OpenSans-Bold.ttf?v=1.1.0") format("truetype"),
url("./fonts/Bold/OpenSans-Bold.svg?v=1.1.0#Bold") format("svg");
font-weight: bold;
font-style: normal;
}
/*
* Icons
*
* Built using Fontastic.me and derived from FontAwesome
* this is a simple icon set for use on the bar.
*/
@font-face {
font-family: "status-bar-icons";
src: url("./fonts/Icons/status-bar-icons.eot");
src: url("./fonts/Icons/status-bar-icons.eot?#iefix") format("embedded-opentype"),
url("./fonts/Icons/status-bar-icons.woff") format("woff"),
url("./fonts/Icons/status-bar-icons.ttf") format("truetype"),
url("./fonts/Icons/status-bar-icons.svg#status-bar-icons") format("svg");
font-weight: normal;
font-style: normal;
}
[class^="sorry-status-notice-icon-"]:before,
[class*=" sorry-status-notice-icon-"]:before {
font-family: "status-bar-icons" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: middle;
}
.sorry-status-notice-icon-times-circle:before {
content: "\61";
}
.sorry-status-notice-icon-bullhorn:before {
content: "\62";
}
/*
* Status Bar
*
* This element wraps around the individual notices and groups
* them logicaly together.
*/
.sorry-status-bar {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
width: 100%;
font-family: "sorry-status-bar-open-sans", "Helvetica Neue", Helvetica, Arial, sans-serif; /* Switch to open sans if possible? */
font-size: 16px;
font-weight: 300;
background-color: #ccc;
color: #fff;
}
/*
* Status Notice
*
* Each bar may contain multiple notices.
*/
.sorry-status-notice {
position: relative; /* Contain the close icon. */
padding: 12px 24px;
}
.sorry-status-notice:first-child { padding-top: 24px; }
.sorry-status-notice:last-child { padding-bottom: 24px; }
.sorry-status-notice:after {
visibility: hidden;
display: block;
clear: both;
height: 0;
font-size: 0;
content: " ";
}
/*
* Resets
*
* Reset any margins or paddings which may be applied
* to generic paragraphs and suchlike.
*/
.sorry-status-notice-header,
.sorry-status-notice-text,
.sorry-status-notice-link {
margin: 0;
padding: 0;
}
/*
* Notice Header
*
* Contains the 'Ongoing' and the 'Bullhorn' Icon.
*/
.sorry-status-notice-header {
margin-bottom: 16px;
font-weight: 700;
font-size: 18px;
}
.sorry-status-notice-header
.sorry-status-notice-icon { margin-right: 5px; }
/*
* Notice Content
*
* This is the core text of the notice, pulled dynamicly
* from the status page, could be any length.
*/
.sorry-status-notice-content {
padding-right: 24px;
color: #333;
}
.sorry-status-notice-text {
margin-bottom: 16px;
/* Truncate the text */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sorry-status-notice-subject {
font-weight: 500;
margin-right: 5px;
}
/*
* Notice Schedule
*
* Soften the text a little, just to give a subtle distinct
* style outside of the usual content.
*/
.sorry-status-notice-schedule {
opacity: 0.8;
font-style: italic;
}
/*
* Notice Link
*
* Each notice is acompanies by a link through to the status
* page should someone wish to read more.
*/
.sorry-status-notice-link {
display: inline-block;
padding: 5px 10px;
font-size: 14px;
text-decoration: none;
border: 1px solid #2980b9;
border-radius: 4px;
color: #2980b9;
opacity: .7;
}
.sorry-status-notice-link:hover,
.sorry-status-notice-link:visited,
.sorry-status-notice-link:active {
text-decoration: none;
opacity: 1;
}
/*
* Close / Dismiss Button
*
* Each notice has a [x] icon which allows
* the user to dismiss the notice.
*/
button.sorry-status-notice-close {
position: absolute;
right: 24px;
font-size: 16px;
color: #333;
opacity: .2;
filter: alpha(opacity=20);
}
button.sorry-status-notice-close:hover,
button.sorry-status-notice-close:focus {
text-decoration: none;
cursor: pointer;
opacity: .75;
filter: alpha(opacity=75);
}
button.sorry-status-notice-close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
/*
* Large Screen Styles
*
* When on bigger screens we want to drop the box look
* and go for an inline narrow bar with trimmed content.
*
* Usualy I'd not block media queries like this at the bottom
* of the stylesheet but as it's only small I feel it's fair.
*/
@media (min-width: 972px) {
.sorry-status-notice {
line-height: 34px;
}
.sorry-status-notice-content {
margin: 0 auto;
padding-right: 0;
line-height: inherit;
text-align: center;
}
.sorry-status-notice-details {
display: inline-block;
max-width: 80%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
padding-right: 14px;
}
.sorry-status-notice-header,
.sorry-status-notice-schedule,
.sorry-status-notice-details { margin-right: 14px; }
.sorry-status-notice-details * { display: inline; }
.sorry-status-notice-link {
line-height: initial;
max-width: 20%;
}
.sorry-status-notice-close { line-height: inherit; }
}