2012-06-29 06:46:45 +02:00
|
|
|
//
|
2011-11-26 06:34:55 +01:00
|
|
|
// Scaffolding
|
2012-06-29 06:46:45 +02:00
|
|
|
// --------------------------------------------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2013-03-10 19:24:07 +01:00
|
|
|
// Reset the box-sizing
|
2014-01-24 02:23:57 +01: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-06 00:20:46 +01:00
|
|
|
// Credit: Jon Neal & CSS-Tricks
|
|
|
|
// http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
|
|
|
html {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2014-07-08 11:04:48 +02:00
|
|
|
*,
|
2013-08-13 06:26:43 +02:00
|
|
|
*:before,
|
|
|
|
*:after {
|
2015-01-06 00:20:46 +01:00
|
|
|
box-sizing: inherit;
|
2013-03-10 19:24:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 21:41:11 +01: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; }
|
|
|
|
|
|
|
|
|
2012-02-21 17:24:18 +01:00
|
|
|
// Body reset
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2013-01-16 02:55:14 +01:00
|
|
|
html {
|
2014-12-04 09:10:24 +01:00
|
|
|
font-size: $font-size-root;
|
2013-01-16 02:55:14 +01:00
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
}
|
|
|
|
|
2011-05-04 03:09:25 +02:00
|
|
|
body {
|
2014-12-02 23:02:35 +01: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 09:24:17 +01:00
|
|
|
}
|
|
|
|
|
2013-06-26 01:07:51 +02:00
|
|
|
// Reset fonts for relevant elements
|
2012-11-30 09:24:17 +01:00
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2013-03-27 01:12:17 +01:00
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
|
2011-09-03 08:01:38 +02:00
|
|
|
|
2012-02-21 17:24:18 +01:00
|
|
|
// Links
|
2011-05-04 03:09:25 +02:00
|
|
|
|
|
|
|
a {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $link-color;
|
2011-05-04 03:09:25 +02:00
|
|
|
text-decoration: none;
|
2013-08-18 23:28:55 +02:00
|
|
|
|
2015-01-01 10:05:01 +01:00
|
|
|
@include hover-focus {
|
2014-12-02 23:02:35 +01:00
|
|
|
color: $link-hover-color;
|
|
|
|
text-decoration: $link-hover-decoration;
|
2013-08-18 23:28:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2014-12-02 23:02:35 +01:00
|
|
|
@include tab-focus();
|
2013-08-18 23:28:55 +02:00
|
|
|
}
|
2012-12-21 05:52:20 +01:00
|
|
|
}
|
2012-07-27 09:06:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Images
|
|
|
|
|
2012-12-21 05:52:20 +01:00
|
|
|
img {
|
2015-03-11 20:19:03 +01:00
|
|
|
// Make them responsive with `max-width` and `height`
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
// Match vertical alignment of most other Bootstrapped elements
|
2013-06-28 09:09:10 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2012-09-04 20:31:48 +02:00
|
|
|
// Rounded corners
|
2012-07-27 09:06:43 +02:00
|
|
|
.img-rounded {
|
2014-12-02 23:02:35 +01:00
|
|
|
@include border-radius($border-radius-lg);
|
2012-07-27 09:06:43 +02:00
|
|
|
}
|
|
|
|
|
2013-01-18 05:16:04 +01:00
|
|
|
// Image thumbnails
|
2013-08-19 04:24:10 +02:00
|
|
|
.img-thumbnail {
|
2014-12-02 23:02:35 +01:00
|
|
|
padding: $thumbnail-padding;
|
|
|
|
line-height: $line-height-base;
|
|
|
|
background-color: $thumbnail-bg;
|
|
|
|
border: 1px solid $thumbnail-border;
|
|
|
|
border-radius: $thumbnail-border-radius;
|
2014-07-08 11:04:48 +02:00
|
|
|
transition: all .2s ease-in-out;
|
2014-12-02 23:02:35 +01:00
|
|
|
@include box-shadow(0 1px 2px rgba(0,0,0,.075));
|
2013-08-19 04:24:10 +02:00
|
|
|
|
|
|
|
// Keep them at most 100% wide
|
2015-03-11 20:19:03 +01:00
|
|
|
// @include img-responsive(inline-block);
|
2013-08-19 04:24:10 +02:00
|
|
|
}
|
2012-07-27 09:06:43 +02:00
|
|
|
|
2012-09-04 20:31:48 +02:00
|
|
|
// Perfect circle
|
2012-07-27 09:06:43 +02:00
|
|
|
.img-circle {
|
2013-08-09 13:57:49 +02:00
|
|
|
border-radius: 50%; // set radius in percents
|
2012-08-20 06:12:52 +02:00
|
|
|
}
|
2013-07-05 21:21:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Horizontal rules
|
|
|
|
|
|
|
|
hr {
|
2014-12-11 21:05:29 +01:00
|
|
|
margin-top: $spacer;
|
2014-12-05 00:18:16 +01:00
|
|
|
margin-bottom: $spacer;
|
2013-07-05 21:21:05 +02:00
|
|
|
border: 0;
|
2014-12-31 19:20:29 +01:00
|
|
|
border-top: .0625rem solid $hr-border;
|
2013-07-05 21:21:05 +02:00
|
|
|
}
|
|
|
|
|
2013-08-19 04:24:10 +02:00
|
|
|
|
2015-03-29 09:08:54 +02: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;
|
|
|
|
}
|