fleet/frontend/layouts/CoreLayout/_styles.scss
Jacob Shandling a2f8c0b0e3
Consolidate duplicate DUP/HostDetails styles in shared parent stylesheet (#10977)
## Addresses duplicate styles between the Device User Page and Host
Details Page

Manual check that resulting page styling remains constant – windows on
the left are on `main` (containing duplicate styles), windows on the
right are on this branch:

**Host details:**
![Screenshot 2023-04-04 at 3 42 27
PM](https://user-images.githubusercontent.com/61553566/229941459-061e3798-be47-467d-984a-10631028e1d3.png)
**DUP:**
![Screenshot 2023-04-04 at 3 41 38
PM](https://user-images.githubusercontent.com/61553566/229941468-2f9d993f-1961-49dc-a76d-4da4709e8a81.png)

## Checklist for submitter
- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-04-11 12:25:15 -07:00

91 lines
1.3 KiB
SCSS

.app-wrap {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: $ui-off-white;
}
.core-wrapper {
flex-grow: 1;
margin: 0;
padding: 0;
position: relative;
background-color: $core-white;
display: flex;
// App hidden below 768px
@media (max-width: $break-768 - 1px) {
display: none;
}
// App not hidden when printing
@media print {
display: initial;
}
a {
img {
height: 12px;
width: 12px;
margin-left: $pad-xsmall;
}
}
}
.site-nav-container {
background: $core-fleet-black;
box-sizing: border-box;
top: 0;
left: 0;
z-index: 100;
// Nav hidden below 768px;
@media (max-width: $break-768 - 1px) {
display: none;
}
// Nav not hidden when printing
@media print {
display: initial;
}
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
z-index: 3;
background-color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: $pad-medium;
// Overlay below 768px
@media (min-width: 768px) {
display: none;
}
// No overlay when printing
@media print {
display: none;
}
img {
width: 160px;
}
&__text {
text-align: center;
h1 {
font-size: $small;
font-weight: $bold;
}
p {
font-size: $xx-small;
}
}
}