Browse Source

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

pull/142/merge
connors 12 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;
margin-bottom: 10px;
font-size: 16px;
width: 100%;
}
/* Active state for block level buttons */
@ -820,6 +821,11 @@ select {
padding: 12px 0;
}
/* Make button elements go full width when given .button-block class */
button.button-block {
width: 100%;
}
/* Counts in buttons
-------------------------------------------------- */

8
dist/ratchet.js vendored

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

6
lib/css/buttons.css

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

Loading…
Cancel
Save