2016-03-10 17:13:54 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
STYLE RESETS
|
|
|
|
========================================================================== */
|
|
|
|
|
2016-03-21 17:37:10 +01:00
|
|
|
@include border-box-sizing;
|
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
html {
|
|
|
|
/* apply a natural box layout model to all elements */
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: $background-color;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: 16px;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
@include breakpoint($medium) {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove margin */
|
|
|
|
|
|
|
|
body { margin: 0; }
|
|
|
|
|
|
|
|
/* Selected elements */
|
|
|
|
|
2016-08-08 22:01:37 +02:00
|
|
|
::-moz-selection {
|
|
|
|
color: #fff;
|
|
|
|
background: #000;
|
|
|
|
}
|
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
::selection {
|
|
|
|
color: #fff;
|
|
|
|
background: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Display HTML5 elements in IE6-9 and FF3 */
|
|
|
|
|
|
|
|
article,
|
|
|
|
aside,
|
|
|
|
details,
|
|
|
|
figcaption,
|
|
|
|
figure,
|
|
|
|
footer,
|
|
|
|
header,
|
|
|
|
hgroup,
|
|
|
|
main,
|
|
|
|
nav,
|
|
|
|
section {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Display block in IE6-9 and FF3 */
|
|
|
|
|
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
*display: inline;
|
|
|
|
*zoom: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Prevents modern browsers from displaying 'audio' without controls */
|
|
|
|
|
|
|
|
audio:not([controls]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2016-04-06 03:37:16 +02:00
|
|
|
color: $link-color;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Apply focus state */
|
|
|
|
|
|
|
|
a:focus {
|
|
|
|
@extend %tab-focus;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove outline from links */
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:active {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Prevent sub and sup affecting line-height in all browsers */
|
|
|
|
|
|
|
|
sub,
|
|
|
|
sup {
|
|
|
|
position: relative;
|
|
|
|
font-size: 75%;
|
|
|
|
line-height: 0;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
sup {
|
|
|
|
top: -0.5em;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
sub {
|
|
|
|
bottom: -0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* img border in anchor's and image quality */
|
|
|
|
|
|
|
|
img {
|
|
|
|
/* Responsive images (ensure images don't scale beyond their parents) */
|
2016-08-08 22:01:37 +02:00
|
|
|
max-width: 100%; /* part 1: Set a maximum relative to the parent*/
|
|
|
|
width: auto\9; /* IE7-8 need help adjusting responsive images*/
|
|
|
|
height: auto; /* part 2: Scale the height according to the width, otherwise you get stretching*/
|
2016-03-10 17:13:54 +01:00
|
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0;
|
|
|
|
-ms-interpolation-mode: bicubic;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Prevent max-width from affecting Google Maps */
|
|
|
|
|
|
|
|
#map_canvas img,
|
|
|
|
.google-maps img {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Consistent form font size in all browsers, margin changes, misc */
|
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
button,
|
|
|
|
input {
|
2016-08-08 22:01:37 +02:00
|
|
|
*overflow: visible; /* inner spacing ie IE6/7*/
|
|
|
|
line-height: normal; /* FF3/4 have !important on line-height in UA stylesheet*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
button::-moz-focus-inner,
|
2016-08-08 22:01:37 +02:00
|
|
|
input::-moz-focus-inner { /* inner padding and border oddities in FF3/4*/
|
2016-03-10 17:13:54 +01:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
button,
|
|
|
|
html input[type="button"], // avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-appearance: button; /* corrects inability to style clickable `input` types in iOS*/
|
|
|
|
cursor: pointer; /* improves usability and consistency of cursor style between image-type `input` and others*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
label,
|
|
|
|
select,
|
|
|
|
button,
|
|
|
|
input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"],
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
2016-08-08 22:01:37 +02:00
|
|
|
cursor: pointer; /* improves usability and consistency of cursor style between image-type `input` and others*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-08-08 22:01:37 +02:00
|
|
|
input[type="search"] { /* Appearance in Safari/Chrome*/
|
2016-03-10 17:13:54 +01:00
|
|
|
box-sizing: content-box;
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
input[type="search"]::-webkit-search-decoration,
|
|
|
|
input[type="search"]::-webkit-search-cancel-button {
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-appearance: none; /* inner-padding issues in Chrome OSX, Safari 5*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
textarea {
|
2016-08-08 22:01:37 +02:00
|
|
|
overflow: auto; /* remove vertical scrollbar in IE6-9*/
|
|
|
|
vertical-align: top; /* readability and alignment cross-browser*/
|
2016-03-21 21:36:24 +01:00
|
|
|
}
|