fleet/frontend/styles/global/_global.scss
noahtalerman e6e6fcdf2d
Adjust UI layout styles and fix empty state on "Hosts" page (#542)
- Remove `$nav-width` and `$nav-tablet-width` because the navigation is now on the top of the layout.
- Add styles to `CoreLayout` to make the main content (everything except the top nav) fill the window height.
2021-03-25 17:22:37 -07:00

107 lines
1.6 KiB
SCSS

html {
position: relative;
min-width: $min-width;
height: 100%;
// Because iOS hates us we must fight to the death!
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
// End Apple War
}
body {
color: $core-black;
padding: 0;
margin: 0;
font-family: 'Nunito Sans', sans-serif;
font-size: $medium;
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: $large;
font-weight: $regular;
letter-spacing: -0.5px;
color: $core-black;
margin: 0;
}
a {
color: $core-purple;
}
.wrapper {
background: $core-gradient;
margin: 0;
}
.body-wrap {
padding: 40px 30px 0;
border-radius: 3px;
background-color: $white;
border: solid 1px $white;
min-width: 910px;
@at-root {
.has-sidebar & {
margin-right: 0;
min-width: 610px;
max-width: calc(100vw - #{$pad-body} - #{$pad-body} - #{$pad-borders} - #{$sidepanel-width});
}
}
}
.has-sidebar {
display: flex;
flex-grow: 1;
> * {
&:first-child {
flex-grow: 1;
align-self: flex-start;
margin-right: 0;
}
}
}
.cf {
@include clearfix;
}
input,
textarea,
button {
font-family: 'Nunito Sans', sans-serif;
&:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px #fff inset;
-webkit-text-fill-color: $core-dark-blue-grey !important; //sass-lint:disable-line no-important
}
}
input {
&[type=number] {
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
}