fleet/website/assets/styles/layout.less
noahtalerman 0c31044340
Add top navigation, add new assets, and edit text on fleetdm.com (#517)
* Add nav items for desktop width

* Finish desktop width navigation styles

* Add new assets

* Add mobile menu and graphic

* Add assets and new navigation

* trivial (just for consistency, in case we ever change where that points)

* Make image go away on small screens

* Update deploy-google-cloud-75x60@2x.png

Uploaded correct sized retina image.

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
Co-authored-by: mthomas-fleet <mthomas@fleetdm.com>
2021-03-23 17:56:15 +09:00

130 lines
2.6 KiB
Plaintext

@footer-height: 222px;
@container-md-max-width: 1100px;
[v-cloak] { display: none; }
html, body {
height: 100%;
margin: 0;
}
[purpose='page-wrap'] {
height: 100%;
/* lesshint-disable */height: auto !important;/* lesshint-enable */
// ^^The above is to disable "importantRule" and "duplicateProperty" rules.
min-height: 100%;
position: relative;
padding-bottom: @footer-height;
}
[purpose='page-header'] {
position: absolute;
left: 0;
right: 0;
.header-btn {
color: #ffffff;
cursor: default !important;
font-family: @navigation-font;
}
// .header-btn[aria-expanded='true'] {
// color: #6a67fe;
// }
.header-link {
color: #ffffff;
}
.header-link:hover {
color: #6a67fe;
}
.mobile-menu {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
background-color: #ffffff;
}
.collapsing {
opacity: 0;
}
.collapse.show {
opacity: 1;
pointer-events: auto;
}
.collapse {
opacity: 0;
}
.mobile-menu-item {
color: #192147;
border-radius: 4px;
text-decoration: none;
}
.mobile-menu-item:hover {
background-color: #f1f0ff;
font-weight: @bold;
}
.mobile-menu-item:active {
background-color: #f1f0ff;
font-weight: @bold;
}
}
[purpose='page-footer'] {
height: @footer-height;
width: 100%;
position: absolute;
left: 0px;
bottom: 0px;
padding-top: 63px;
.twitter-link {
background-color: #03a9f4;
border-color: #03a9f4;
&:hover {
background-color: darken(#03a9f4, 10%);
border-color: darken(#03a9f4, 10%);
}
}
.slack-link {
background-color: #fff;
border-color: #fff;
&:hover {
background-color: darken(#fff, 10%);
border-color: darken(#fff, 10%);
}
}
}
body.detected-mobile {
// Above and beyond the media queries below, this selector (which relies on
// `parasails` automatically attaching this class, if appropriate) contains
// styles intended to be activated specifically when loaded from a recognized
// mobile device, regardless of viewport dimensions. This includes tablet
// devices (like the iPad) as well as handset devices (like the iPhone).
// …
}
@media (max-width: 1199px) {
[purpose='page-wrap'] {
padding-bottom: 230px;
[purpose='page-footer'] {
height: 230px;
}
}
}
@media (max-width: 767px) {
[purpose='page-wrap'] {
padding-bottom: 360px;
[purpose='page-footer'] {
padding-top: 44px;
height: 360px;
}
}
}
@media (max-width: 360px) {
[purpose='join-the-community-on-slack-expanded-text'] {
display: none;
}
}