linaro-jekyll-theme 0.1.2.12 → 0.1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/redirect.html +11 -0
- data/_sass/core/nav.scss +59 -410
- data/assets/js/vendor/loadCSS.js +79 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5de4db2b2d08fd9209914aa374e6b02cbe35e53
|
4
|
+
data.tar.gz: dc112cbc89217b5e3a407f390d6d77ec4c755c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 688b4fa431cf6cb05bbee83ab30fb0a400c206c3cdc9460afe4ca60d786e6501c21ecc965e88a8744b4da1545718c44049638032232cb63279bac7c44dbc6a53
|
7
|
+
data.tar.gz: 87510c653f31b6813355aa4f00e7fe6bf244d4df45aa43d795e67d20b23368f0da5909830660dda00819326300b04fbecb5c33c4fcdab07d650901c6843e0c8e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<meta charset="utf-8">
|
4
|
+
<title>Redirecting…</title>
|
5
|
+
<link rel="canonical" href="{{ page.redirect.to }}">
|
6
|
+
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
|
7
|
+
<meta name="robots" content="noindex">
|
8
|
+
<h1>Redirecting…</h1>
|
9
|
+
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
|
10
|
+
<script>location="{{ page.redirect.to }}"</script>
|
11
|
+
</html>
|
data/_sass/core/nav.scss
CHANGED
@@ -1,4 +1,48 @@
|
|
1
1
|
//Navbar links colours, font and fadeinout animations.
|
2
|
+
|
3
|
+
// Media Queries
|
4
|
+
|
5
|
+
@media (min-width: $screen-lg) {
|
6
|
+
|
7
|
+
.navbar-collapse {
|
8
|
+
padding-top: 0px;
|
9
|
+
padding-right: 38px;
|
10
|
+
margin-right: -40px !important;
|
11
|
+
margin-left: -15px !important;
|
12
|
+
}
|
13
|
+
ul.dropdown-menu {
|
14
|
+
margin-top: -1px !important;
|
15
|
+
}
|
16
|
+
#navbar-buttons {
|
17
|
+
margin-right: 40px;
|
18
|
+
}
|
19
|
+
#navbar-collapse {
|
20
|
+
width: 80%;
|
21
|
+
float: right;
|
22
|
+
}
|
23
|
+
|
24
|
+
.navbar-right .dropdown-menu {
|
25
|
+
right: auto;
|
26
|
+
left: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
@media screen and (max-width: $screen-lg) and (min-width: 0px) {
|
32
|
+
|
33
|
+
#navbar-collapse {
|
34
|
+
padding-top:5px;
|
35
|
+
}
|
36
|
+
#navbar-buttons{
|
37
|
+
margin-top: -10px;
|
38
|
+
}
|
39
|
+
button.navbar-toggle {
|
40
|
+
margin-right: 10px;
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
|
2
46
|
nav{
|
3
47
|
letter-spacing: 1px;
|
4
48
|
}
|
@@ -39,35 +83,9 @@ ul#navbar-buttons > li > ul.dropdown-menu {
|
|
39
83
|
color: black;
|
40
84
|
}
|
41
85
|
|
42
|
-
ul#searchDropdown {
|
43
|
-
top: 6px !important;
|
44
|
-
}
|
45
|
-
|
46
|
-
//By default hide the complete search form and then load it using jQuery.
|
47
|
-
#searchform {
|
48
|
-
display: none;
|
49
|
-
min-width: 37px;
|
50
|
-
}
|
51
|
-
|
52
|
-
#brand-image {
|
53
|
-
height:70px;
|
54
|
-
width:auto;
|
55
|
-
padding-top: 5px;
|
56
|
-
padding-bottom: 5px;
|
57
|
-
}
|
58
|
-
#brand-image {
|
59
|
-
@media (min-width: 1200px){
|
60
|
-
height:70px;
|
61
|
-
width:auto;
|
62
|
-
}
|
63
|
-
@media (max-width: 1200px){
|
64
|
-
height:70px;
|
65
|
-
width:auto;
|
66
|
-
}
|
67
86
|
|
68
|
-
}
|
69
87
|
|
70
|
-
//Navbar
|
88
|
+
// Navbar Brand
|
71
89
|
.navbar-brand {
|
72
90
|
@media (min-width: 1200px){
|
73
91
|
padding-top: 0px;
|
@@ -81,241 +99,31 @@ ul#searchDropdown {
|
|
81
99
|
}
|
82
100
|
}
|
83
101
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
#navbar-buttons{
|
95
|
-
margin-top: -10px;
|
96
|
-
}
|
97
|
-
button.navbar-toggle {
|
98
|
-
margin-right: 10px;
|
99
|
-
}
|
100
|
-
#searchform button.btn.btn-default {
|
101
|
-
height: 45px;
|
102
|
-
}
|
103
|
-
|
104
|
-
.navbar-collapse form[role="search"]{
|
105
|
-
margin-bottom:10px;
|
102
|
+
#brand-image {
|
103
|
+
height:66px;
|
104
|
+
width:auto;
|
105
|
+
padding-top: 5px;
|
106
|
+
padding-bottom: 5px;
|
107
|
+
}
|
108
|
+
#brand-image {
|
109
|
+
@media (max-width: 1200px){
|
110
|
+
height:70px;
|
111
|
+
width:auto;
|
106
112
|
}
|
107
113
|
}
|
108
114
|
|
115
|
+
|
109
116
|
.navbar-collapse {
|
110
117
|
position: relative;
|
111
118
|
padding-top: 30px;
|
112
119
|
max-height: 270px;
|
113
120
|
}
|
114
|
-
.navbar-collapse form[role="search"] {
|
115
|
-
top: 0px;
|
116
|
-
right: 0px;
|
117
|
-
width: 100%;
|
118
|
-
padding: 0px;
|
119
|
-
margin: 0px;
|
120
|
-
z-index: 0;
|
121
|
-
}
|
122
|
-
.navbar-collapse form[role="search"] button,
|
123
|
-
.navbar-collapse form[role="search"] input {
|
124
|
-
padding: 8px 12px;
|
125
|
-
border-radius: 0px;
|
126
|
-
border-width: 0px;
|
127
|
-
color: $navbar-base-text-color;
|
128
|
-
border-color: rgb(231, 231, 231);
|
129
|
-
box-shadow: none;
|
130
|
-
outline: none;
|
131
|
-
}
|
132
|
-
.navbar-collapse form[role="search"] button[type="reset"]:focus {outline:0;background-color: transparent}
|
133
|
-
.navbar-collapse form[role="search"] button[type="reset"]:active {outline:0;background-color: transparent}
|
134
|
-
.navbar-collapse form[role="search"] button[type="submit"]:focus {outline:0;background-color: transparent}
|
135
|
-
.navbar-collapse form[role="search"] button[type="submit"]:active {outline:0;background-color: transparent}
|
136
|
-
.navbar-collapse form[role="search"] button[type="submit"] {
|
137
|
-
background-color: transparent;
|
138
|
-
}
|
139
|
-
.navbar-collapse form[role="search"] button[type="submit"]:hover {
|
140
|
-
display: table-cell;
|
141
|
-
color: $brand-primary;
|
142
|
-
transition: color .5s ease;
|
143
|
-
-moz-transition: color .5s ease;
|
144
|
-
-webkit-transition: color .5s ease;
|
145
|
-
}
|
146
|
-
.navbar-collapse form[role="search"] input {
|
147
|
-
padding: 16px 12px;
|
148
|
-
font-size: 14pt;
|
149
|
-
font-style: normal;
|
150
|
-
color: $navbar-base-text-color;
|
151
|
-
box-shadow: none;
|
152
|
-
background-color: $navbar-inverse-bg;
|
153
|
-
}
|
154
121
|
|
155
|
-
@media (min-width: 1200px) {
|
156
|
-
|
157
|
-
.navbar-collapse {
|
158
|
-
padding-top: 0px;
|
159
|
-
padding-right: 38px;
|
160
|
-
margin-right: -40px !important;
|
161
|
-
margin-left: -15px !important;
|
162
|
-
|
163
|
-
}
|
164
|
-
ul.dropdown-menu {
|
165
|
-
margin-top: -1px !important;
|
166
|
-
}
|
167
|
-
.navbar-collapse form[role="search"] {
|
168
|
-
position: absolute;
|
169
|
-
min-width: 50px;
|
170
|
-
display: block;
|
171
|
-
}
|
172
|
-
.navbar-collapse form[role="search"] button {
|
173
|
-
margin-right: 0;
|
174
|
-
min-width: 90px;
|
175
|
-
}
|
176
|
-
.navbar-collapse form[role="search"] button[type="submit"]:hover {
|
177
|
-
color: $brand-primary;
|
178
|
-
transition: color .5s ease;
|
179
|
-
-moz-transition: color .5s ease;
|
180
|
-
-webkit-transition: color .5s ease;
|
181
|
-
}
|
182
|
-
.navbar-collapse form[role="search"] button,
|
183
|
-
.navbar-collapse form[role="search"] input {
|
184
|
-
height:51px;
|
185
|
-
padding: 15px 12px;
|
186
|
-
}
|
187
|
-
.navbar-collapse form[role="search"] input {
|
188
|
-
padding: 25px 12px;
|
189
|
-
font-size: 18pt;
|
190
|
-
opacity: 0;
|
191
|
-
display: none;
|
192
|
-
}
|
193
|
-
.navbar-collapse form[role="search"].active {
|
194
|
-
width: 100%;
|
195
|
-
transition: width 2s ease;
|
196
|
-
-moz-transition: width 2s ease;
|
197
|
-
-webkit-transition: width 2s ease;
|
198
|
-
}
|
199
|
-
.navbar-collapse form[role="search"].active button,
|
200
|
-
.navbar-collapse form[role="search"].active input {
|
201
|
-
display: table-cell;
|
202
|
-
opacity: 1;
|
203
|
-
}
|
204
|
-
.navbar-collapse form[role="search"].active input {
|
205
|
-
width: 650px;
|
206
|
-
height: 51px;
|
207
|
-
text-align: right;
|
208
|
-
transition: width 1s ease;
|
209
|
-
-moz-transition: width 1s ease;
|
210
|
-
-webkit-transition: width 1s ease;
|
211
|
-
}
|
212
|
-
.navbar-collapse form[role="search"].active button[type="submit"] {
|
213
|
-
background-color: transparent;
|
214
|
-
}
|
215
|
-
.navbar-collapse form[role="search"].active button[type="reset"] {
|
216
|
-
min-width: 40px;
|
217
|
-
background-color: $navbar-inverse-bg;
|
218
|
-
display: table-cell;
|
219
|
-
}
|
220
|
-
.navbar-collapse form[role="search"].active button[type="submit"]:hover {
|
221
|
-
display: table-cell;
|
222
|
-
color: $brand-primary;
|
223
|
-
transition: color .5s ease;
|
224
|
-
-moz-transition: color .5s ease;
|
225
|
-
-webkit-transition: color .5s ease;
|
226
|
-
}
|
227
|
-
.navbar-collapse form[role="search"].active button[type="reset"]:hover {
|
228
|
-
display: table-cell;
|
229
|
-
color: $brand-primary;
|
230
|
-
transition: color .5s ease;
|
231
|
-
-moz-transition: color .5s ease;
|
232
|
-
-webkit-transition: color .5s ease;
|
233
|
-
}
|
234
|
-
form#searchform {
|
235
|
-
width: auto;
|
236
|
-
margin-top: 13px;
|
237
|
-
}
|
238
|
-
nav form[role="search"] #searchform input {
|
239
|
-
height:51px;
|
240
|
-
width: 600px;
|
241
|
-
}
|
242
|
-
#navbar-buttons {
|
243
|
-
margin-right: 40px;
|
244
|
-
}
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
#navbar-collapse {
|
249
|
-
width: 80%;
|
250
|
-
float: right;
|
251
|
-
}
|
252
|
-
|
253
|
-
}
|
254
|
-
|
255
|
-
/// Make the bootstrap nav bar work without javascript.
|
256
|
-
//Toggle
|
257
|
-
#navbar-toggle-cbox:checked ~ .navbar-collapse {
|
258
|
-
display: block;
|
259
|
-
}
|
260
|
-
|
261
|
-
#navbar-toggle-cbox {
|
262
|
-
display:none
|
263
|
-
}
|
264
|
-
nav#main-navigation label[for="navbar-toggle-cbox"]{
|
265
|
-
left:3px;
|
266
|
-
}
|
267
|
-
|
268
|
-
//Dropdowns
|
269
|
-
.no-js-navbar .dropdown-menu .sub-menu {
|
270
|
-
left: 100%;
|
271
|
-
position: absolute;
|
272
|
-
top: 0;
|
273
|
-
visibility: hidden;
|
274
|
-
margin-top: -1px;
|
275
|
-
}
|
276
|
-
|
277
|
-
.no-js-navbar .dropdown-menu li:hover .sub-menu {
|
278
|
-
visibility: visible;
|
279
|
-
}
|
280
|
-
|
281
|
-
.no-js-navbar .dropdown:hover .dropdown-menu {
|
282
|
-
display: block;
|
283
|
-
}
|
284
|
-
|
285
|
-
.no-js-navbar .nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {
|
286
|
-
margin-top: 0;
|
287
|
-
}
|
288
|
-
|
289
|
-
.no-js-navbar .navbar .sub-menu:before {
|
290
|
-
border-bottom: 7px solid transparent;
|
291
|
-
border-left: none;
|
292
|
-
border-right: 7px solid rgba(0, 0, 0, 0.2);
|
293
|
-
border-top: 7px solid transparent;
|
294
|
-
left: -7px;
|
295
|
-
top: 10px;
|
296
|
-
}
|
297
|
-
.no-js-navbar .navbar .sub-menu:after {
|
298
|
-
border-top: 6px solid transparent;
|
299
|
-
border-left: none;
|
300
|
-
border-right: 6px solid #fff;
|
301
|
-
border-bottom: 6px solid transparent;
|
302
|
-
left: 10px;
|
303
|
-
top: 11px;
|
304
|
-
left: -6px;
|
305
|
-
}
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
.no-js-navbar .navbar-form input, .form-inline input {
|
310
|
-
width:auto;
|
311
|
-
}
|
312
122
|
|
313
123
|
.input-group-btn {
|
314
124
|
min-width: 50px;
|
315
125
|
}
|
316
126
|
|
317
|
-
|
318
|
-
|
319
127
|
nav > li {
|
320
128
|
font-size: 14px;
|
321
129
|
}
|
@@ -356,55 +164,6 @@ nav > ul.navbar-right {
|
|
356
164
|
min-width: 620px;
|
357
165
|
}
|
358
166
|
|
359
|
-
//Search Dropdown
|
360
|
-
|
361
|
-
@media (min-width: 1200px) {
|
362
|
-
#searchDropdown {
|
363
|
-
top: 16%;
|
364
|
-
min-width: 234px;
|
365
|
-
width:781px;
|
366
|
-
font-size:16px;
|
367
|
-
background-color: $navbar-inverse-bg;
|
368
|
-
right: -2px;
|
369
|
-
}
|
370
|
-
#searchDropdown input {
|
371
|
-
width: 675px;
|
372
|
-
text-align: right;
|
373
|
-
color: $navbar-base-text-color;
|
374
|
-
background-color: $navbar-inverse-bg;
|
375
|
-
outline:0;
|
376
|
-
border:0;
|
377
|
-
outline-style: none;
|
378
|
-
box-shadow: none;
|
379
|
-
border-color: transparent;
|
380
|
-
|
381
|
-
}
|
382
|
-
#searchDropdown input:focus{
|
383
|
-
outline:0;
|
384
|
-
border:0
|
385
|
-
}
|
386
|
-
#searchDropdown button[type="reset"]{
|
387
|
-
font-size:16px;
|
388
|
-
background-color: $navbar-inverse-bg;
|
389
|
-
border:0;
|
390
|
-
}
|
391
|
-
#searchDropdown button[type="reset"]:hover{
|
392
|
-
color: $brand-primary;
|
393
|
-
transition: color 1s ease;
|
394
|
-
}
|
395
|
-
|
396
|
-
#searchDropdown button[type="submit"]{
|
397
|
-
font-size:16px;
|
398
|
-
background-color: $navbar-inverse-bg;
|
399
|
-
border:0;
|
400
|
-
}
|
401
|
-
#searchDropdown button[type="submit"]:hover{
|
402
|
-
color: $brand-primary;
|
403
|
-
transition: color 1s ease;
|
404
|
-
}
|
405
|
-
|
406
|
-
}
|
407
|
-
|
408
167
|
#tabbed-nav-bar {
|
409
168
|
background-color:white;
|
410
169
|
padding-bottom:10px;
|
@@ -419,8 +178,6 @@ nav > ul.navbar-right {
|
|
419
178
|
z-index: 1;
|
420
179
|
}
|
421
180
|
|
422
|
-
|
423
|
-
|
424
181
|
.sticky-nav {
|
425
182
|
position: fixed;
|
426
183
|
top: 0;
|
@@ -575,9 +332,7 @@ nav > ul.navbar-right {
|
|
575
332
|
button#closeForm {
|
576
333
|
color: $navbar-base-text-color;
|
577
334
|
}
|
578
|
-
|
579
|
-
color: $navbar-base-text-color;
|
580
|
-
}
|
335
|
+
|
581
336
|
@media (max-width: 1199px){
|
582
337
|
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a.dropdown-item {
|
583
338
|
color: $navbar-base-text-color;
|
@@ -599,60 +354,6 @@ li.side-nav-button:first-child {
|
|
599
354
|
font-size: 16px;
|
600
355
|
}
|
601
356
|
|
602
|
-
//Sub Menu for Bootstrap 3 Dropdowns
|
603
|
-
.dropdown-submenu {
|
604
|
-
position:relative;
|
605
|
-
}
|
606
|
-
.dropdown-submenu>.dropdown-menu {
|
607
|
-
top:0;
|
608
|
-
left:100%;
|
609
|
-
margin-top:-6px;
|
610
|
-
margin-left:-1px;
|
611
|
-
-webkit-border-radius:0 6px 6px 6px;
|
612
|
-
-moz-border-radius:0 6px 6px 6px;
|
613
|
-
border-radius:0 6px 6px 6px;
|
614
|
-
}
|
615
|
-
.dropdown-submenu:hover>.dropdown-menu {
|
616
|
-
display:block;
|
617
|
-
}
|
618
|
-
.dropdown-submenu>a:after {
|
619
|
-
display:block;
|
620
|
-
content:" ";
|
621
|
-
float:right;
|
622
|
-
width:0;
|
623
|
-
height:0;
|
624
|
-
border-color:transparent;
|
625
|
-
border-style:solid;
|
626
|
-
border-width:5px 0 5px 5px;
|
627
|
-
border-left-color:#cccccc;
|
628
|
-
margin-top:5px;
|
629
|
-
margin-right:-10px;
|
630
|
-
}
|
631
|
-
.dropdown-submenu:hover>a:after {
|
632
|
-
border-left-color:#ffffff;
|
633
|
-
}
|
634
|
-
.dropdown-submenu.pull-left {
|
635
|
-
float:none;
|
636
|
-
}
|
637
|
-
.dropdown-submenu.pull-left>.dropdown-menu {
|
638
|
-
left:-100%;
|
639
|
-
margin-left:10px;
|
640
|
-
-webkit-border-radius:6px 0 6px 6px;
|
641
|
-
-moz-border-radius:6px 0 6px 6px;
|
642
|
-
border-radius:6px 0 6px 6px;
|
643
|
-
}
|
644
|
-
.dropdown-submenu > ul.dropdown-menu {
|
645
|
-
margin-left: 15px;
|
646
|
-
}
|
647
|
-
.dropdown-submenu > ul.dropdown-menu > li > a {
|
648
|
-
color: $navbar-base-text-color;
|
649
|
-
}
|
650
|
-
.dropdown-submenu > ul.dropdown-menu > li > a:hover {
|
651
|
-
color: $brand-primary;
|
652
|
-
text-decoration: none;
|
653
|
-
transition: 500ms all ease;
|
654
|
-
}
|
655
|
-
|
656
357
|
button.btn.btn-default.dropdown-toggle {
|
657
358
|
color: $navbar-base-text-color;
|
658
359
|
}
|
@@ -674,9 +375,7 @@ ul#navbar-buttons > li {
|
|
674
375
|
border-top: 2px solid #a682b8;
|
675
376
|
}
|
676
377
|
|
677
|
-
|
678
|
-
height: 66px !important;
|
679
|
-
}
|
378
|
+
|
680
379
|
|
681
380
|
#navbar-buttons .dropdown-menu>li>a {
|
682
381
|
color: #444444;
|
@@ -684,9 +383,7 @@ ul#navbar-buttons > li {
|
|
684
383
|
font-size:12px;
|
685
384
|
outline: 0;
|
686
385
|
}
|
687
|
-
|
688
|
-
border-top: 1px solid #ccc !important;
|
689
|
-
}
|
386
|
+
|
690
387
|
#navbar-buttons .dropdown-menu>li>a:hover {
|
691
388
|
color: $brand-primary;
|
692
389
|
letter-spacing: 0;
|
@@ -707,51 +404,3 @@ ul#searchDropdown {
|
|
707
404
|
.navbar-inverse #navbar-buttons>li>a:hover{
|
708
405
|
color: $brand-primary;
|
709
406
|
}
|
710
|
-
i.glyphicon.glyphicon-search {
|
711
|
-
font-size: 16px;
|
712
|
-
}
|
713
|
-
|
714
|
-
@media (min-width: 1200px) {
|
715
|
-
.navbar-right .dropdown-menu {
|
716
|
-
right: auto;
|
717
|
-
left: 0;
|
718
|
-
}
|
719
|
-
}
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
// Dark and Light Nav Bar
|
724
|
-
nav.nav-light #navbar-buttons > li > a {
|
725
|
-
color:#fff;
|
726
|
-
}
|
727
|
-
|
728
|
-
nav.nav-dark #navbar-buttons > li > a {
|
729
|
-
color:#000;
|
730
|
-
}
|
731
|
-
|
732
|
-
nav.nav-light {
|
733
|
-
background: transparent;
|
734
|
-
}
|
735
|
-
|
736
|
-
nav.nav-dark {
|
737
|
-
background: transparent;
|
738
|
-
}
|
739
|
-
|
740
|
-
// Nav Bar SVG Style
|
741
|
-
svg#navbar_svg {
|
742
|
-
height: 66px;
|
743
|
-
padding-top: 5px;
|
744
|
-
padding-bottom: 5px;
|
745
|
-
}
|
746
|
-
nav.nav-light .cls-2 {
|
747
|
-
fill: #666;
|
748
|
-
}
|
749
|
-
|
750
|
-
nav.nav-light .cls-2 {
|
751
|
-
fill: #fff;
|
752
|
-
}
|
753
|
-
|
754
|
-
nav.nav-dark .cls-2 {
|
755
|
-
fill: #000;
|
756
|
-
}
|
757
|
-
|
@@ -0,0 +1,79 @@
|
|
1
|
+
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
|
2
|
+
(function(w){
|
3
|
+
"use strict";
|
4
|
+
/* exported loadCSS */
|
5
|
+
var loadCSS = function( href, before, media ){
|
6
|
+
// Arguments explained:
|
7
|
+
// `href` [REQUIRED] is the URL for your CSS file.
|
8
|
+
// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet <link> before
|
9
|
+
// By default, loadCSS attempts to inject the link after the last stylesheet or script in the DOM. However, you might desire a more specific location in your document.
|
10
|
+
// `media` [OPTIONAL] is the media type or query of the stylesheet. By default it will be 'all'
|
11
|
+
var doc = w.document;
|
12
|
+
var ss = doc.createElement( "link" );
|
13
|
+
var ref;
|
14
|
+
if( before ){
|
15
|
+
ref = before;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
var refs = ( doc.body || doc.getElementsByTagName( "head" )[ 0 ] ).childNodes;
|
19
|
+
ref = refs[ refs.length - 1];
|
20
|
+
}
|
21
|
+
|
22
|
+
var sheets = doc.styleSheets;
|
23
|
+
ss.rel = "stylesheet";
|
24
|
+
ss.href = href;
|
25
|
+
// temporarily set media to something inapplicable to ensure it'll fetch without blocking render
|
26
|
+
ss.media = "only x";
|
27
|
+
|
28
|
+
// wait until body is defined before injecting link. This ensures a non-blocking load in IE11.
|
29
|
+
function ready( cb ){
|
30
|
+
if( doc.body ){
|
31
|
+
return cb();
|
32
|
+
}
|
33
|
+
setTimeout(function(){
|
34
|
+
ready( cb );
|
35
|
+
});
|
36
|
+
}
|
37
|
+
// Inject link
|
38
|
+
// Note: the ternary preserves the existing behavior of "before" argument, but we could choose to change the argument to "after" in a later release and standardize on ref.nextSibling for all refs
|
39
|
+
// Note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
|
40
|
+
ready( function(){
|
41
|
+
ref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );
|
42
|
+
});
|
43
|
+
// A method (exposed on return object for external use) that mimics onload by polling document.styleSheets until it includes the new sheet.
|
44
|
+
var onloadcssdefined = function( cb ){
|
45
|
+
var resolvedHref = ss.href;
|
46
|
+
var i = sheets.length;
|
47
|
+
while( i-- ){
|
48
|
+
if( sheets[ i ].href === resolvedHref ){
|
49
|
+
return cb();
|
50
|
+
}
|
51
|
+
}
|
52
|
+
setTimeout(function() {
|
53
|
+
onloadcssdefined( cb );
|
54
|
+
});
|
55
|
+
};
|
56
|
+
|
57
|
+
function loadCB(){
|
58
|
+
if( ss.addEventListener ){
|
59
|
+
ss.removeEventListener( "load", loadCB );
|
60
|
+
}
|
61
|
+
ss.media = media || "all";
|
62
|
+
}
|
63
|
+
|
64
|
+
// once loaded, set link's media back to `all` so that the stylesheet applies once it loads
|
65
|
+
if( ss.addEventListener ){
|
66
|
+
ss.addEventListener( "load", loadCB);
|
67
|
+
}
|
68
|
+
ss.onloadcssdefined = onloadcssdefined;
|
69
|
+
onloadcssdefined( loadCB );
|
70
|
+
return ss;
|
71
|
+
};
|
72
|
+
// commonjs
|
73
|
+
if( typeof exports !== "undefined" ){
|
74
|
+
exports.loadCSS = loadCSS;
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
w.loadCSS = loadCSS;
|
78
|
+
}
|
79
|
+
}( typeof global !== "undefined" ? global : this ));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linaro-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2.
|
4
|
+
version: 0.1.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Kirkby
|
@@ -252,6 +252,7 @@ files:
|
|
252
252
|
- _layouts/post.html
|
253
253
|
- _layouts/product-display-page.html
|
254
254
|
- _layouts/project-display-page.html
|
255
|
+
- _layouts/redirect.html
|
255
256
|
- _sass/_bootstrap-compass.scss
|
256
257
|
- _sass/_bootstrap-mincer.scss
|
257
258
|
- _sass/_bootstrap-sprockets.scss
|
@@ -399,6 +400,7 @@ files:
|
|
399
400
|
- assets/js/vendor/jquery.min.js
|
400
401
|
- assets/js/vendor/lazysizes.min.js
|
401
402
|
- assets/js/vendor/lightbox.min.js
|
403
|
+
- assets/js/vendor/loadCSS.js
|
402
404
|
- assets/js/vendor/mc-validate.js
|
403
405
|
- assets/js/vendor/owl.carousel.min.js
|
404
406
|
- robots.txt
|