Browse Source

Updating button elements so that they work correctly when given the button-block.

pull/142/merge
connors 11 years ago
parent
commit
60ecb68233
  1. 6
      dist/ratchet.css
  2. 8
      dist/ratchet.js
  3. 6
      lib/css/buttons.css

6
dist/ratchet.css vendored

@ -813,6 +813,7 @@ select {
padding: 11px 0 13px; padding: 11px 0 13px;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 16px; font-size: 16px;
width: 100%;
} }
/* Active state for block level buttons */ /* Active state for block level buttons */
@ -820,6 +821,11 @@ select {
padding: 12px 0; padding: 12px 0;
} }
/* Make button elements go full width when given .button-block class */
button.button-block {
width: 100%;
}
/* Counts in buttons /* Counts in buttons
-------------------------------------------------- */ -------------------------------------------------- */

8
dist/ratchet.js vendored

@ -117,12 +117,13 @@
'slide-out' : 'slide-in', 'slide-out' : 'slide-in',
'fade' : 'fade' 'fade' : 'fade'
}; };
var bars = { var bars = {
bartab : '.bar-tab', bartab : '.bar-tab',
bartitle : '.bar-title', bartitle : '.bar-title',
barfooter : '.bar-footer', barfooter : '.bar-footer',
barheadersecondary : '.bar-header-secondary' barheadersecondary : '.bar-header-secondary'
} };
var cacheReplace = function (data, updates) { var cacheReplace = function (data, updates) {
PUSH.id = data.id; PUSH.id = data.id;
@ -509,7 +510,8 @@
window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); }); window.addEventListener('click', function (e) { if (getTarget(e)) e.preventDefault(); });
window.addEventListener('popstate', popstate); window.addEventListener('popstate', popstate);
}();/* ---------------------------------- }();
/* ----------------------------------
* TABS v1.0.0 * TABS v1.0.0
* Licensed under The MIT License * Licensed under The MIT License
* http://opensource.org/licenses/MIT * http://opensource.org/licenses/MIT
@ -579,7 +581,7 @@
var scrollableArea; var scrollableArea;
var getSlider = function (target) { var getSlider = function (target) {
var i, sliders = document.querySelectorAll('.slider ul'); var i, sliders = document.querySelectorAll('.slider > ul');
for (; target && target !== document; target = target.parentNode) { for (; target && target !== document; target = target.parentNode) {
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
} }

6
lib/css/buttons.css

@ -88,6 +88,7 @@
padding: 11px 0 13px; padding: 11px 0 13px;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 16px; font-size: 16px;
width: 100%;
} }
/* Active state for block level buttons */ /* Active state for block level buttons */
@ -95,6 +96,11 @@
padding: 12px 0; padding: 12px 0;
} }
/* Make button elements go full width when given .button-block class */
button.button-block {
width: 100%;
}
/* Counts in buttons /* Counts in buttons
-------------------------------------------------- */ -------------------------------------------------- */

Loading…
Cancel
Save