fleet/frontend/styles/global/_global.scss

113 lines
1.8 KiB
SCSS
Raw Normal View History

html {
position: relative;
2016-12-01 18:57:19 +00:00
min-width: $min-width;
height: 100%;
2016-11-18 15:41:52 +00:00
// Because iOS hates us we must fight to the death!
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
// End Apple War
}
body {
color: $text-ultradark;
padding: 0;
margin: 0;
font-family: 'Oxygen', sans-serif;
font-size: $base;
line-height: 1.6;
min-width: $medium-width;
height: 100%;
}
html,
body {
height: 100%;
}
.wrapper,
.wrapper > div {
min-height: 100vh;
}
h1,
h2,
h3 {
line-height: 1.2;
}
h1 {
font-size: 24px;
font-weight: $light;
letter-spacing: -0.5px;
color: $text-dark;
margin: 0;
}
a {
color: $link;
}
.wrapper {
background: $bg-medium;
margin: 0;
&--background {
background: url('/assets/images/background.png') center center;
background-size: cover;
}
}
.body-wrap {
border-radius: 3px;
background-color: $white;
box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
border: solid 1px $silver;
2016-12-21 18:39:40 +00:00
min-width: 610px;
2017-01-09 23:13:52 +00:00
max-width: calc(100vw - #{$nav-width} - #{$pad-base});
box-sizing: border-box;
margin-top: $pad-base;
margin-right: $pad-base;
@at-root .has-sidebar & {
margin-right: 0;
2017-01-09 23:13:52 +00:00
max-width: calc(100vw - #{$nav-width} - #{$pad-base} - #{$pad-base} - #{$sidepanel-width});
}
}
.has-sidebar {
@include display(flex);
height: 100%;
> * {
&:first-child {
@include flex-grow(1);
@include align-self(flex-start);
margin-right: 0;
}
}
}
.cf {
@include clearfix;
}
input,
2016-12-01 18:57:19 +00:00
textarea,
button {
font-family: 'Oxygen', sans-serif;
&:-webkit-autofill {
2016-12-16 15:54:49 +00:00
-webkit-box-shadow: 0 0 0 1000px #fff inset;
-webkit-text-fill-color: $text-dark !important; //sass-lint:disable-line no-important
}
}
input {
&[type=number] {
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
}