linaro-jekyll-theme 0.1.2.13 → 0.1.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5de4db2b2d08fd9209914aa374e6b02cbe35e53
4
- data.tar.gz: dc112cbc89217b5e3a407f390d6d77ec4c755c14
3
+ metadata.gz: fd7be50ada12de131a47c1390a89e490887106c6
4
+ data.tar.gz: 845e28a1853e700ab6e4650cacce9710fa7159d4
5
5
  SHA512:
6
- metadata.gz: 688b4fa431cf6cb05bbee83ab30fb0a400c206c3cdc9460afe4ca60d786e6501c21ecc965e88a8744b4da1545718c44049638032232cb63279bac7c44dbc6a53
7
- data.tar.gz: 87510c653f31b6813355aa4f00e7fe6bf244d4df45aa43d795e67d20b23368f0da5909830660dda00819326300b04fbecb5c33c4fcdab07d650901c6843e0c8e
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
+ }
@@ -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
 
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.13
4
+ version: 0.1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby