middleman-ratchet 0.1.3 → 0.1.4

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ==================================
3
- * Ratchet v1.0.1
3
+ * Ratchet v1.0.2
4
4
  * Licensed under The MIT License
5
5
  * http://opensource.org/licenses/MIT
6
6
  * ==================================
@@ -117,12 +117,13 @@
117
117
  'slide-out' : 'slide-in',
118
118
  'fade' : 'fade'
119
119
  };
120
+
120
121
  var bars = {
121
122
  bartab : '.bar-tab',
122
123
  bartitle : '.bar-title',
123
124
  barfooter : '.bar-footer',
124
125
  barheadersecondary : '.bar-header-secondary'
125
- }
126
+ };
126
127
 
127
128
  var cacheReplace = function (data, updates) {
128
129
  PUSH.id = data.id;
@@ -491,7 +492,7 @@
491
492
  }
492
493
 
493
494
  data.title = head.querySelector('title');
494
- data.title = data.title && data.title.innerText.trim();
495
+ data.title = data.title && data.title.innerText && data.title.innerText.trim();
495
496
 
496
497
  if (options.transition) data = extendWithDom(data, '.content', body);
497
498
  else data.contents = body;
@@ -509,7 +510,8 @@
509
510
  window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
510
511
  window.addEventListener('popstate', popstate);
511
512
 
512
- }();/* ----------------------------------
513
+ }();
514
+ /* ----------------------------------
513
515
  * TABS v1.0.0
514
516
  * Licensed under The MIT License
515
517
  * http://opensource.org/licenses/MIT
@@ -525,7 +527,7 @@
525
527
 
526
528
  window.addEventListener("touchend", function (e) {
527
529
  var activeTab;
528
- var activeBody;
530
+ var activeBodies;
529
531
  var targetBody;
530
532
  var targetTab;
531
533
  var className = 'active';
@@ -547,16 +549,18 @@
547
549
 
548
550
  if (!targetBody) return;
549
551
 
550
- activeBody = targetBody.parentNode.querySelector(classSelector);
552
+ activeBodies = targetBody.parentNode.querySelectorAll(classSelector);
551
553
 
552
- if (activeBody) activeBody.classList.remove(className);
554
+ for (var i = 0; i < activeBodies.length; i++) {
555
+ activeBodies[i].classList.remove(className);
556
+ }
553
557
 
554
- targetBody.classList.add(className)
558
+ targetBody.classList.add(className);
555
559
  });
556
560
 
557
561
  window.addEventListener('click', function (e) { if (getTarget(e.target)) e.preventDefault(); });
558
562
  }();/* ----------------------------------
559
- * SLIDER v1.0.0
563
+ * SLIDER v1.0.1
560
564
  * Licensed under The MIT License
561
565
  * Adapted from Brad Birdsall's swipe
562
566
  * http://opensource.org/licenses/MIT
@@ -579,7 +583,7 @@
579
583
  var scrollableArea;
580
584
 
581
585
  var getSlider = function (target) {
582
- var i, sliders = document.querySelectorAll('.slider ul');
586
+ var i, sliders = document.querySelectorAll('.slider > ul');
583
587
  for (; target && target !== document; target = target.parentNode) {
584
588
  for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
585
589
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ==================================
3
- * Ratchet v1.0.1
3
+ * Ratchet v1.0.2
4
4
  * Licensed under The MIT License
5
5
  * http://opensource.org/licenses/MIT
6
6
  * ==================================
@@ -502,7 +502,7 @@ a {
502
502
  /* Pad each list item and add dividers */
503
503
  .list li {
504
504
  position: relative;
505
- padding: 20px 60px 20px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */
505
+ padding: 11px 60px 11px 10px; /* Given extra right padding to accomodate counts, chevrons or buttons */
506
506
  border-bottom: 1px solid rgba(0, 0, 0, .1);
507
507
  }
508
508
 
@@ -516,7 +516,7 @@ a {
516
516
  position: relative;
517
517
  display: block;
518
518
  padding: inherit;
519
- margin: -20px -60px -20px -10px;
519
+ margin: -11px -60px -11px -10px;
520
520
  color: inherit;
521
521
  }
522
522
 
@@ -820,6 +820,11 @@ select {
820
820
  padding: 12px 0;
821
821
  }
822
822
 
823
+ /* Make button elements go full width when given .button-block class */
824
+ button.button-block {
825
+ width: 100%;
826
+ }
827
+
823
828
  /* Counts in buttons
824
829
  -------------------------------------------------- */
825
830
 
@@ -1132,14 +1137,14 @@ select {
1132
1137
  }/* Modals
1133
1138
  -------------------------------------------------- */
1134
1139
  .modal {
1135
- position: fixed;
1140
+ position: fixed;
1136
1141
  top: 0;
1137
1142
  opacity: 0;
1138
- z-index: 11;
1143
+ z-index: 11;
1139
1144
  width: 100%;
1140
1145
  min-height: 100%;
1141
1146
  overflow: hidden;
1142
- background-color: #fff;
1147
+ background-color: #fff;
1143
1148
  -webkit-transform: translate3d(0, 100%, 0);
1144
1149
  transform: translate3d(0, 100%, 0);
1145
1150
  -webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s;
@@ -1184,7 +1189,7 @@ select {
1184
1189
  .slider > ul > li {
1185
1190
  display: inline-block;
1186
1191
  vertical-align: top; /* Ensure that li always aligns to top */
1187
- width: 100%;
1192
+ width: 100%;
1188
1193
  height: 100%;
1189
1194
  }
1190
1195
 
@@ -1284,4 +1289,4 @@ select {
1284
1289
  .content.slide.right {
1285
1290
  -webkit-transform: translate3d(100%, 0, 0);
1286
1291
  transform: translate3d(100%, 0, 0);
1287
- }
1292
+ }
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Ratchet
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-ratchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: