2012-06-29 00:46:45 -04:00
|
|
|
//
|
2011-11-26 00:34:55 -05:00
|
|
|
// Scaffolding
|
2012-06-29 00:46:45 -04:00
|
|
|
// --------------------------------------------------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2013-03-10 14:24:07 -04:00
|
|
|
// Reset the box-sizing
|
2014-01-23 20:23:57 -05:00
|
|
|
//
|
|
|
|
// Heads up! This reset may cause conflicts with some third-party widgets.
|
|
|
|
// For recommendations on resolving such conflicts, see
|
|
|
|
// http://getbootstrap.com/getting-started/#third-box-sizing
|
2015-01-05 18:20:46 -05:00
|
|
|
// Credit: Jon Neal & CSS-Tricks
|
|
|
|
// http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
2015-04-16 20:10:47 -04:00
|
|
|
|
2015-01-05 18:20:46 -05:00
|
|
|
html {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2015-04-16 20:10:47 -04:00
|
|
|
|
2014-07-08 05:04:48 -04:00
|
|
|
*,
|
2013-08-13 00:26:43 -04:00
|
|
|
*:before,
|
|
|
|
*:after {
|
2015-01-05 18:20:46 -05:00
|
|
|
box-sizing: inherit;
|
2013-03-10 14:24:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 15:41:11 -05:00
|
|
|
// Make viewport responsive
|
|
|
|
//
|
|
|
|
// @viewport is supposed to eventually replace <meta name="viewport">. It's manually prefixed for forward-compatibility.
|
|
|
|
//
|
|
|
|
// @viewport is also needed because IE 10+ doesn't honor <meta name="viewport"> in some cases.
|
|
|
|
// (See http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/)
|
|
|
|
//
|
|
|
|
// However, `device-width` is broken on IE 10 on Windows (Phone) 8,
|
|
|
|
// (see http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
|
|
|
// and https://github.com/twbs/bootstrap/issues/10497)
|
|
|
|
// and the fix for that involves a snippet of JavaScript to sniff the user agent and apply some conditional CSS.
|
|
|
|
// See http://getbootstrap.com/getting-started/#support-ie10-width for the relevant hack.
|
|
|
|
|
|
|
|
@-moz-viewport { width: device-width; }
|
|
|
|
@-ms-viewport { width: device-width; }
|
|
|
|
@-o-viewport { width: device-width; }
|
|
|
|
@-webkit-viewport { width: device-width; }
|
|
|
|
@viewport { width: device-width; }
|
|
|
|
|
|
|
|
|
2015-04-16 20:10:47 -04:00
|
|
|
// Reset HTML, body, and more
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
html {
|
2014-12-04 03:10:24 -05:00
|
|
|
font-size: $font-size-root;
|
2013-01-15 20:55:14 -05:00
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
}
|
|
|
|
|
2011-05-03 21:09:25 -04:00
|
|
|
body {
|
2014-12-02 17:02:35 -05:00
|
|
|
font-family: $font-family-base;
|
|
|
|
font-size: $font-size-base;
|
|
|
|
line-height: $line-height-base;
|
|
|
|
color: $text-color;
|
|
|
|
background-color: $body-bg;
|
2012-11-30 03:24:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2013-03-26 20:12:17 -04:00
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
|
2011-09-03 02:01:38 -04:00
|
|
|
|
2012-02-21 11:24:18 -05:00
|
|
|
// Links
|
2011-05-03 21:09:25 -04:00
|
|
|
|
|
|
|
a {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $link-color;
|
2011-05-03 21:09:25 -04:00
|
|
|
text-decoration: none;
|
2013-08-18 17:28:55 -04:00
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $link-hover-color;
|
|
|
|
text-decoration: $link-hover-decoration;
|
2013-08-18 17:28:55 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include tab-focus();
|
2013-08-18 17:28:55 -04:00
|
|
|
}
|
2012-12-20 23:52:20 -05:00
|
|
|
}
|
2012-07-27 03:06:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
// Images
|
|
|
|
|
2012-12-20 23:52:20 -05:00
|
|
|
img {
|
2013-06-28 03:09:10 -04:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2013-08-18 22:24:10 -04:00
|
|
|
|
2015-03-29 03:08:54 -04:00
|
|
|
// iOS "clickable elements" fix for role="button"
|
|
|
|
//
|
|
|
|
// Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
|
|
|
|
// for traditionally non-focusable elements with role="button"
|
|
|
|
// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
|
|
|
// Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
|
|
|
|
|
|
|
|
[role="button"] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|