mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
0f48eb8525
This PR brings the style changes made in the "Align Fleet UI colors with Figma components" #615 and "Align Fleet UI with Figma (spacing and fonts)" #628 PRs into the master branch.
39 lines
1001 B
SCSS
39 lines
1001 B
SCSS
$min-width: 768px;
|
|
$medium-width: 1024px;
|
|
$desktop-width: 1280px;
|
|
$max-width: 2560px;
|
|
|
|
@mixin breakpoint($size: desktop) {
|
|
@if ($size == tablet) {
|
|
@media (max-width: $medium-width) {
|
|
@content;
|
|
}
|
|
} @else if ($size == ltdesktop) {
|
|
@media (max-width: $desktop-width - 1) {
|
|
@content;
|
|
}
|
|
} @else if ($size == desktop) {
|
|
@media (min-width: $medium-width + 1) {
|
|
@content;
|
|
}
|
|
} @else if ($size == smalldesk) {
|
|
@media (max-width: 1185px) {
|
|
@content;
|
|
}
|
|
} @else {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
// Used to keep the settings description sticky under the main nav and sub nav.
|
|
// TODO: figure out how to calculate these values with variables. Will be tedious to change otherwise
|
|
@mixin sticky-settings-description {
|
|
position: sticky;
|
|
// this is the current spacing needed to keep the description looking correct under the sub nav when scrolling.
|
|
top: 94px;
|
|
z-index: 2;
|
|
background-color: $core-white;
|
|
margin: 0;
|
|
padding: $pad-xxlarge 0 54px 0;
|
|
}
|