linaro-jekyll-theme 0.1.2.13 → 0.1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_sass/core/nav.scss +75 -1
- data/assets/js/app/main.js +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd7be50ada12de131a47c1390a89e490887106c6
|
4
|
+
data.tar.gz: 845e28a1853e700ab6e4650cacce9710fa7159d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff2d3a25cff232f5f844db6125ec234478622e57be03321516c0611d178e9a1c0ad70102a9dbc7e83d9d0463909076c03b7aac79c67749991b74a50d2315c03
|
7
|
+
data.tar.gz: e4fc2e01e5eb8f39b06a4dad71567fb6b020a14fd77bab32f6d3e87bb7798c16e7c35bd91894619efec8e83f89eea00c805fae6e948e9bfb0f40af9b3061a698
|
data/_sass/core/nav.scss
CHANGED
@@ -349,7 +349,7 @@ li.side-nav-button {
|
|
349
349
|
li.side-nav-button:first-child {
|
350
350
|
border-top: 0px;
|
351
351
|
}
|
352
|
-
.nav-pills>li.side-nav-button>a {
|
352
|
+
.nav-pills > li.side-nav-button>a {
|
353
353
|
border-radius: 0px;
|
354
354
|
font-size: 16px;
|
355
355
|
}
|
@@ -404,3 +404,77 @@ ul#navbar-buttons > li {
|
|
404
404
|
.navbar-inverse #navbar-buttons>li>a:hover{
|
405
405
|
color: $brand-primary;
|
406
406
|
}
|
407
|
+
|
408
|
+
// Search Bar
|
409
|
+
|
410
|
+
i.glyphicon.glyphicon-search {
|
411
|
+
font-size: 16px;
|
412
|
+
}
|
413
|
+
|
414
|
+
|
415
|
+
#search {
|
416
|
+
position: fixed;
|
417
|
+
top: 0px;
|
418
|
+
left: 0px;
|
419
|
+
width: 100%;
|
420
|
+
height: 100%;
|
421
|
+
background-color: rgba(0, 0, 0, 0.7);
|
422
|
+
|
423
|
+
-webkit-transition: all 0.5s ease-in-out;
|
424
|
+
-moz-transition: all 0.5s ease-in-out;
|
425
|
+
-o-transition: all 0.5s ease-in-out;
|
426
|
+
-ms-transition: all 0.5s ease-in-out;
|
427
|
+
transition: all 0.5s ease-in-out;
|
428
|
+
|
429
|
+
-webkit-transform: translate(0px, -100%) scale(0, 0);
|
430
|
+
-moz-transform: translate(0px, -100%) scale(0, 0);
|
431
|
+
-o-transform: translate(0px, -100%) scale(0, 0);
|
432
|
+
-ms-transform: translate(0px, -100%) scale(0, 0);
|
433
|
+
transform: translate(0px, -100%) scale(0, 0);
|
434
|
+
|
435
|
+
opacity: 0;
|
436
|
+
}
|
437
|
+
|
438
|
+
#search.open {
|
439
|
+
-webkit-transform: translate(0px, 0px) scale(1, 1);
|
440
|
+
-moz-transform: translate(0px, 0px) scale(1, 1);
|
441
|
+
-o-transform: translate(0px, 0px) scale(1, 1);
|
442
|
+
-ms-transform: translate(0px, 0px) scale(1, 1);
|
443
|
+
transform: translate(0px, 0px) scale(1, 1);
|
444
|
+
opacity: 1;
|
445
|
+
}
|
446
|
+
|
447
|
+
#search input[type="search"] {
|
448
|
+
position: absolute;
|
449
|
+
top: 50%;
|
450
|
+
width: 100%;
|
451
|
+
color: rgb(255, 255, 255);
|
452
|
+
background: rgba(0, 0, 0, 0);
|
453
|
+
font-size: 60px;
|
454
|
+
font-weight: 300;
|
455
|
+
text-align: center;
|
456
|
+
border: 0px;
|
457
|
+
margin: 0px auto;
|
458
|
+
margin-top: -51px;
|
459
|
+
padding-left: 30px;
|
460
|
+
padding-right: 30px;
|
461
|
+
outline: none;
|
462
|
+
}
|
463
|
+
#search .btn {
|
464
|
+
position: absolute;
|
465
|
+
top: 50%;
|
466
|
+
left: 50%;
|
467
|
+
margin-top: 61px;
|
468
|
+
margin-left: -45px;
|
469
|
+
}
|
470
|
+
#search .close {
|
471
|
+
position: fixed;
|
472
|
+
top: 15px;
|
473
|
+
right: 15px;
|
474
|
+
color: #fff;
|
475
|
+
background-color: #428bca;
|
476
|
+
border-color: #357ebd;
|
477
|
+
opacity: 1;
|
478
|
+
padding: 10px 17px;
|
479
|
+
font-size: 27px;
|
480
|
+
}
|
data/assets/js/app/main.js
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
|
4
4
|
$(document).ready(function () {
|
5
5
|
|
6
|
+
$('a[href="#search"]').on('click', function(event) {
|
7
|
+
event.preventDefault();
|
8
|
+
$('#search').addClass('open');
|
9
|
+
$('#search > form > input[type="search"]').focus();
|
10
|
+
});
|
11
|
+
|
12
|
+
$('#search, #search button.close').on('click keyup', function(event) {
|
13
|
+
if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
|
14
|
+
$(this).removeClass('open');
|
15
|
+
}
|
16
|
+
});
|
17
|
+
|
18
|
+
|
6
19
|
//Scrolling sticking on IOS7
|
7
20
|
if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
|
8
21
|
|