fleet/website/assets/styles/layout.less
Eric 21e7a13f85
Website: Re-order items in "more" dropdown menu (#33146)
Changes:
- Reordered the links in the "More" dropdown menu
- Updated the position of the "More" dropdown menu when it is open.
2025-09-18 12:39:51 +09:00

1108 lines
25 KiB
Text
Vendored

@footer-height: 433px;
@container-md-max-width: 1100px;
[v-cloak] { display: none; }
html, body {
height: 100%;
margin: 0;
}
[purpose='page-wrap'] {
height: 100%;
height: auto !important;//lesshint-disable-line importantRule,duplicateProperty
min-height: 100%;
position: relative;
padding-bottom: @footer-height;
background: linear-gradient(180deg, #E8F1F6 0%, #FFFFFF 100px);
background-position: center 40px;
opacity: 1;
// Note: This element has the "show" class toggled by the mobile header nav menu button.
// We are overriding bootstrap classes here to allow us to prevent the page being scrolled while the mobile menu is open.
&.collapse {
display: block;
[purpose='mobile-nav'] {
display: none;
}
}
&.collapsing {
opacity: 0;
transition: 0s;
}
&.collapse.show {
max-height: 100vh;
overflow: hidden;
[purpose='mobile-nav'] {
display: block;
opacity: 1;
}
}
}
[purpose='header-background'] {
background: rgba(255, 255, 255, 0.95);
}
// Styles for the page header
[purpose='header-container'] {
box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08);
border-bottom: 1px solid #FFFFFF;
// rules for sticky nav transitions
left: 0;
right: 0;
z-index: 199;
position: sticky;
position: -webkit-sticky; //lesshint-disable-line duplicateProperty
top: 0;
transition-property: transform, bottom;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 500ms;
}
[purpose='announcement-banner'] {
br {
display: none;
@media (max-width: 375px) {
display: block;
}
}
display: flex;
width: 100%;
padding: 12px 8px;
justify-content: center;
align-items: center;
background: #0587FF;
color: #FFF;
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: normal;
[parasails-component='animated-arrow-button'] {
padding: 0;
}
}
[purpose='continue-banner'] {
z-index: 198;
position: fixed;
bottom: 24px;
left: 24px;
[purpose='banner-body'].invisible {
transform: translateY(200px);
}
[purpose='banner-body'] {
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
[purpose='banner-close-button'] {
width: 18px;
height: 18px;
display: flex;
justify-content: center;
align-items: center;
padding: 4px;
font-size: 20px;
line-height: 24px;
cursor: pointer;
}
width: 260px;
position: relative;
border-radius: 12px;
border: 1px solid #E2E4EA;
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
padding: 8px;
background: #FFFFFF;
[purpose='banner-text'] {
width: 100%;
padding: 0 0 0 16px;
strong {
font-size: 13px;
}
p {
color: #192147;
font-size: 12px;
font-style: normal;
line-height: 18px; /* 150% */
margin-bottom: 0;
}
[purpose='form-progress-bar'] {
height: 6px;
margin-bottom: 16px;
width: 100%;
background: #E2E4EA;
border-radius: 3px;
[purpose='current-progress'] {
background-color: #3DB67B;
height: 6px;
border-radius: 3px;
}
}
[purpose='continue-button'] {
width: fit-content;
display: flex;
align-items: center;
padding: 6px 0px;
text-decoration: none;
font-size: 12px;
color: @core-fleet-black;
font-weight: 600;
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='animated-arrow'] {
margin-left: 8px;
stroke-width: 2px;
height: 8px;
width: 8px;
fill: none;
stroke: #FF5C83;
}
[purpose='arrow-line'] {
opacity: 0;
transition: opacity 10ms ease-out;
}
[purpose='chevron'] {
transition: transform 100ms ease-out;
}
&:hover {
text-decoration: none;
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='arrow-line'] {
opacity: 1;
transition: opacity 150ms ease-out;
}
[purpose='chevron'] {
transform: translateX(5px);
}
}
}
}
[purpose='continue-chevron'] {
display: none;
}
[purpose='banner-image-background'] {
background-color: #EEF9FE;
border-radius: 4px;
}
[purpose='banner-image'] {
height: 80px;
min-width: 80px;
background-size: cover;
background-position: center;
border-radius: 12px;
&.stage-one {
background-image: url('/images/psystage-1-unaware-558x680@2x.png');
}
&.stage-two {
background-image: url('/images/cta-thumbnail-psystage-2-aware-128x128@2x.png');
}
&.stage-three {
background-image: url('/images/cta-thumbnail-psystage-3-intrigued-128x128@2x.png');
}
&.stage-four {
background-image: url('/images/cta-thumbnail-psystage-4-has-use-case-128x128@2x.png');
}
&.stage-five {
background-image: url('/images/cta-thumbnail-psystage-5-feeling-confident-128x128@2x.png');
}
&.stage-six {
background-image: url('/images/psystage-6-has-team-buy-in-504x784@2x.png');
}
}
}
[purpose='banner-body'].collapsed {
[purpose='banner-image'] {
height: 100px;
min-width: 100px;
}
[purpose='banner-text'] {
display: none;
}
&:hover {
transform: scale(0.9);
}
transform: scale(0.8);
cursor: pointer;
min-height: unset;
overflow: hidden;
border-radius: 50%;
border: 4px solid #FFF;
padding: 0;
background: #EEF9FE;
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
width: 100px;
height: 100px;
&.invisible {
transform: translateY(200px);
}
}
}
[purpose='header-ribbon-cta'] {
background-color: #0587FF;
padding: 12px 8px;
img {
height: 20px;
margin-right: 10px;
}
p {
font-size: 14px;
line-height: 20px;
color: #fff;
margin-bottom: 0px;
}
a {
font-size: 14px;
line-height: 20px;
font-weight: 700;
text-decoration: underline;
color: #fff;
&:hover {
color: #FFF;
text-decoration-color: #FFF;
}
}
}
[purpose='page-header'] {
max-width: 1200px;
padding: 0px 32px;
height: 80px;
color: @core-fleet-black;
[purpose='header-logo'] {
max-width: 118px;
padding: 19px 0px 19px 0px;
img {
height: 41px;
width: 118px;
}
}
[purpose='glass-header-btn'] {
color: #FFFFFF;
height: 36px;
position: relative;
font-size: 14px;
font-weight: 700;
line-height: 1;
padding: 16px 12px;
border-radius: 8px;
background-color: @core-vibrant-red;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
&:hover {
color: #FFF;
}
}
[purpose='glass-header-btn']::before {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 1;
content: ' ';
position: absolute;
top: 0;
left: -5px;
width: 60%;
height: 100%;
transform: skew(-10deg);
transition: left 0.5s ease-in, opacity 0.50s ease-in, width 0.5s ease-in;
}
[purpose='glass-header-btn']:hover:before {
opacity: 0;
left: 160px;
width: 110%;
}
[purpose='layout-animated-arrow-button'] {
width: fit-content;
display: flex;
align-items: center;
padding: 6px 0px;
text-align: center;
font-family: Inter;
font-size: 15px;
line-height: 24px; /* 160% */
color: @core-fleet-black;
font-weight: 600;
text-decoration: none;
margin-right: 16px;
margin-left: 8px;
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='animated-arrow'] {
margin-left: 8px;
stroke-width: 2px;
height: 12px;
width: 12px;
fill: none;
stroke: #FF5C83;
}
[purpose='arrow-line'] {
opacity: 0;
transition: opacity 10ms ease-out;
}
[purpose='chevron'] {
transition: transform 100ms ease-out;
}
&:hover {
text-decoration: none;
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='arrow-line'] {
opacity: 1;
transition: opacity 150ms ease-out;
}
[purpose='chevron'] {
transform: translateX(5px);
}
}
}
[purpose='mobile-nav-toggle-btn'] {
color: #192147;
cursor: pointer;
font-size: 16px;
text-decoration: none;
font-family: @navigation-font;
font-weight: @bold;
height: 100%;
padding-left: 24px;
user-select: none;
img {
margin-left: 8px;
width: 16px;
}
}
[purpose='mobile-nav'] {
position: fixed;
max-height: 100vh;
overflow: scroll;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 200;
background-color: #ffffff;
hr {
margin-top: 4px;
margin-bottom: 8px;
}
[purpose='mobile-nav-header'] {
padding: 19px 32px;
height: 80px;
}
[purpose='mobile-dropdown-menus'] {
margin-top: 16px;
margin-bottom: 32px;
}
[purpose='mobile-nav-container'] {
padding: 0px;
}
[purpose='mobile-header-logo'] {
img {
height: 41px;
width: 118px;
}
}
[purpose='mobile-nav-close-btn'] {
font-size: 16px;
padding-left: 24px;
cursor: pointer;
text-decoration: none;
user-select: none;
img {
width: 16px;
}
}
[purpose='layout-animated-arrow-button'] {
margin-left: 16px;
}
[purpose='mobile-dropdown-link'] {
width: 100%;
padding: 8px 32px 8px 0px;
margin-bottom: 8px;
font-weight: 700;
cursor: pointer;
color: @core-fleet-black;
display: flex;
flex-direction: row;
align-items: center;
text-decoration: none;
&:hover {
color: @core-vibrant-blue;
text-decoration: none;
}
}
[purpose='mobile-dropdown-toggle'] {
width: 100%;
padding: 20px 32px;
margin-bottom: 4px;
font-weight: 700;
cursor: pointer;
color: @core-fleet-black;
text-decoration: none;
&[aria-expanded='true'] {
// color: #6a67fe;
outline: none;
margin-bottom: 4px;
img {
transform: rotate(0deg);
}
}
&:hover {
// color: #6a67fe;
}
p {
margin-bottom: 0px;
}
img {
height: 12px;
transform: rotate(-90deg);
}
}
[purpose='mobile-nav-btn'] {
text-decoration: none;
font-weight: 700;
color: @core-fleet-black;
&:hover {
color: @core-vibrant-blue;
}
}
[purpose='mobile-dropdown'] {
cursor: pointer;
display: flex;
flex-direction: column;
padding: 8px 32px;
&.collapse {
display: none;
}
&.collapse.show {
display: flex;
}
[purpose='indented-mobile-links'] {
padding-left: 16px;
}
[purpose='dropdown-item-link'] {
padding: 8px 0px;
}
[purpose='dropdown-item'] {
white-space: normal;
}
[purpose='dropdown-cta'] {
text-decoration: none;
margin-top: 4px;
margin-left: -8px;
margin-right: -8px;
[purpose='dropdown-cta-link'] {
height: 100%;
padding: 8px;
display: flex;
flex-direction: row;
align-items: center;
border-radius: 8px;
border: 1px solid #E2E4EA;
background: #FFF;
[purpose='dropdown-cta-image'] {
margin-right: 8px;
background-image: url('/images/nav-cta-meow-wolf-100x160@2x.png');
background-size: cover;
height: 122px;
width: 100px;
background-position: top center;
background-repeat: no-repeat;
}
}
}
}
[purpose='mobile-nav-cta'] {
padding: 0px 32px 32px 32px;
}
}
[purpose='header-nav'] {
position: relative;
[purpose='header-nav-btn'][aria-expanded='true'] {
// font-weight: 700;
outline: none;
color: @core-fleet-black;
}
[purpose='header-nav-btn']:before {
display: block;
content: attr(button-text);
font-weight: bold;
height: 0;
overflow: hidden;
visibility: hidden;
}
[purpose='log-out-button'] {
padding-left: 16px;
color: @core-fleet-black-75;
font-size: 14px;
white-space: nowrap;
text-decoration: none;
&:hover {
color: @core-fleet-black;
text-decoration: none;
}
}
[purpose='header-nav-btn'] {
padding: 23px 8px;// Note: The parent container does not have veritcal padding. (Done to prevent menus from closing when users )
color: @core-fleet-black-75;
font-weight: 400;
cursor: pointer;
display: inline-block;
text-decoration: none;
width: auto;
margin-right: 24px;
img {
display: inline-block;
height: 12px;
margin-left: 4px;
}
}
[purpose='header-nav-btn']:hover {
// font-weight: 700;
color: @core-fleet-black;
text-decoration: none;
}
&:focus {
outline-color: none;
}
.current-section {
// font-weight: 700;
color: @core-fleet-black;
svg {
path {
fill: #6a67fe;
}
}
}
[purpose='gh-button'] {
min-width: 98.5px;
width: 98.5px;
margin-right: 16px;
}
[purpose='header-dropdown'] {
&.solutions-dropdown {
left: -10px;
}
&.more-dropdown {
left: -379px;
flex-direction: row;
}
&.customers-dropdown {
left: -140px;
}
&.show {
display: flex;
}
position: absolute;
top: 61px;
border-radius: 8px;
border: 1px solid #E2E4EA;
background: #FFF;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
flex-direction: column;
min-width: 460px;
padding: 8px;
a {
font-weight: 400;
line-height: 20px;
text-decoration: none;
&:not(:last-of-type) {
margin-bottom: 8px;
}
&[target='_blank'] {
display: flex;
flex-direction: row;
align-items: center;
}
}
hr {
margin: 16px;
}
a:hover {
text-decoration: none;
}
[purpose='dropdown-item'] {
padding: 8px;
white-space: nowrap;
}
[purpose='dropdown-column'] {
display: flex;
flex-direction: column;
margin-right: 4px;
}
}
}
[purpose='dropdown-item'] {
text-decoration: none;
padding: 0px;
[purpose='dropdown-item-link'] {
display: flex;
flex-direction: row;
align-items: center;
[purpose='dropdown-item-icon'] {
margin-right: 16px;
img {
height: 40px;
}
}
[purpose='dropdown-item-text'] {
[purpose='nav-item-heading'] {
color: #192147;
font-family: Inter;
font-size: 13px;
font-style: normal;
font-weight: 600;
line-height: 20px;
margin-bottom: 0px;
}
[purpose='nav-item-body'] {
color: #515774;
margin-bottom: 0px;
font-family: Inter;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px;
}
}
}
}
[purpose='dropdown-cta'] {
margin-right: 16px;
[purpose='dropdown-cta-link'] {
height: 100%;
padding: 8px;
display: flex;
flex-direction: row;
align-items: center;
border-radius: 8px;
border: 1px solid #E2E4EA;
background: #FFF;
[purpose='dropdown-cta-image'] {
margin-right: 8px;
background-image: url('/images/nav-cta-meow-wolf-100x160@2x.png');
background-size: contain;
height: 160px;
width: 100px;
border-radius: 8px;
}
[purpose='dropdown-cta-text'] {
padding: 5px 9px;
width: 160px;
[purpose='dropdown-cta-heading'] {
color: #192147;
font-family: Inter;
font-size: 13px;
font-style: normal;
font-weight: 600;
line-height: 20px; /* 153.846% */
margin-bottom: 8px;
}
[purpose='dropdown-cta-body'] {
color: #515774;
font-family: Inter;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
margin-bottom: 8px;
}
[purpose='cta-animated-arrow-button'] {
color: #192147;
text-align: center;
font-family: Inter;
font-size: 12px;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 200% */
}
}
}
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='animated-arrow'] {
margin-left: 8px;
stroke-width: 2px;
height: 12px;
width: 12px;
fill: none;
stroke: #FF5C83;
}
[purpose='arrow-line'] {
opacity: 0;
transition: opacity 10ms ease-out;
}
[purpose='chevron'] {
transition: transform 100ms ease-out;
}
&:hover {
text-decoration: none;
[purpose='button-text'] {
color: @core-fleet-black;
}
[purpose='arrow-line'] {
opacity: 1;
transition: opacity 150ms ease-out;
}
[purpose='chevron'] {
transform: translateX(5px);
}
}
}
}
[purpose='admin-nav'] {
justify-content: center;
[purpose='admin-link'] {
margin-left: 30px;
margin-right: 30px;
color: @core-fleet-black-75;
&:hover {
color: @core-vibrant-blue;
}
}
span {
color: @core-fleet-black;
font-weight: 600;
margin-right: 30px;
}
}
// Footer styles
[purpose='page-footer'] {
background-color: #FFF;
color: #515774;
height: @footer-height;
width: 100%;
padding: 64px;
position: absolute;
left: 0px;
bottom: 0px;
a {
color: #515774;
text-decoration: none;
}
}
[purpose='footer-content'] {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
[purpose='footer-logo'] {
width: 118px;
height: 41px;
}
[purpose='footer-nav'] {
display: flex;
flex-direction: row;
margin-left: -8px;
margin-right: -8px;
margin-bottom: 80px;
position: relative;
z-index: 101;
}
[purpose='footer-nav-header'] {
margin-bottom: 8px;
}
[purpose='footer-nav-column'] {
padding-right: 8px;
padding-left: 8px;
a {
font-size: 14px;
line-height: 150%;
margin-top: 8px;
}
}
[purpose='footer-bottom'] {
background-color: #FFF;
}
[purpose='legal-section'] {
font-size: 12px;
line-height: 150%;
[purpose='iso-27001-badge'] {
width: 48px;
margin-right: 8px;
}
[purpose='footer-trust-link'] {
font-size: 10px;
line-height: 150%;
font-weight: 700;
padding: 2px 6px;
color: @core-fleet-black-75;
text-decoration: none;
margin-right: 12px;
border-radius: 3px;
background: #FFF;
img {
width: 9px;
height: auto;
margin-right: 6px;
}
&:hover {
background-color: #f6f7f8;
text-decoration: none;
}
}
[purpose='creative-commons-license'] {
width: 80px;
height: 15px;
margin-right: 8px;
}
[purpose='legal-links'] {
a {
margin-left: 12px;
display: inline;
text-decoration: none;
}
}
}
[purpose='footer-socials'] {
img {
height: 20px;
width: auto;
margin-top: 2px;
}
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 96px;
}
[purpose='page-wrap'].header-hidden {
padding-top: 0px;
padding-bottom: 0px;
background: #FFF;
}
// Landing page footer styles
[purpose='reduced-nav-footer'] {
position: absolute;
bottom: 0px;
width: 100%;
height: 96px;
padding: 24px 32px;
color: @core-fleet-black-75;
a {
text-decoration: none;
color: @core-fleet-black-75;
}
}
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: 991px) {
[purpose='page-wrap'] {
padding-bottom: 487px;
}
[purpose='page-footer'] {
padding: 64px 40px;
height: 487px;
[purpose='footer-socials'] {
margin-bottom: 32px;
}
}
[purpose='continue-banner'] {
position: fixed;
bottom: 70px;
height: 0px;
left: 0;
right: unset;
width: 100%;
[purpose='banner-body'].invisible {
transform: translateY(200px);
}
[purpose='banner-body'] {
transition: transform 1s ease-in-out;
[purpose='banner-close-button'] {
display: none;
}
height: 70px;
min-height: unset;
width: 100%;
margin-right: 0px;
position: relative;
border-radius: 0px;
border: 1px solid #E2E4EA;
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
padding: 8px;
background: #FFFFFF;
cursor: pointer;
[purpose='banner-text'] {
width: 100%;
margin-right: 24px;
padding: 8px 8px 8px 16px;
p {
font-size: 12px;
line-height: 18px;
margin-bottom: 0;
}
[purpose='form-progress-bar'] {
height: 6px;
margin-bottom: 4px;
width: 100%;
background: #E2E4EA;
border-radius: 3px;
[purpose='current-progress'] {
background-color: #3DB67B;
height: 6px;
border-radius: 3px;
}
}
[purpose='continue-button'] {
display: none;
}
}
[purpose='continue-chevron'] {
display: block;
img {
width: 5px;
height: 10px;
margin-right: 8px;
}
}
[purpose='banner-image'] {
height: 54px;
min-width: 54px;
background-size: cover;
}
}
[purpose='banner-body'].collapsed {
[purpose='banner-text'] {
display: flex;
}
[purpose='banner-image'] {
height: 54px;
min-width: 54px;
background-size: cover;
}
transform: none;
transition: none;
&:hover {
transform: none;
}
height: 70px;
min-height: unset;
width: 100%;
margin-right: 0px;
position: relative;
border-radius: 0px;
border: 1px solid #E2E4EA;
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
padding: 8px;
background: #FFFFFF;
}
}
}
@media (max-width: 767px) {
[purpose='page-header'] {
[purpose='mobile-nav'] {
[purpose='mobile-nav-header'] {
padding: 19px 32px;
}
[purpose='mobile-dropdown'], [purpose='mobile-dropdown-toggle'], [purpose='mobile-nav-cta'] {
padding-left: 32px;
padding-right: 32px;
}
}
}
[purpose='page-wrap'] {
padding-bottom: 728px;
}
[purpose='footer-nav-column']:not(:last-of-type) {
margin-bottom: 64px;
}
[purpose='page-footer'] {
padding: 64px 32px;
height: 728px;
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 150px;
}
[purpose='reduced-nav-footer'] {
height: 150px;
[purpose='footer-socials'] {
margin-bottom: 32px;
}
}
}
@media (max-width: 575px) {
[purpose='page-wrap'] {
padding-bottom: 955px;
}
[purpose='page-header'] {
padding: 19px 20px;
[purpose='mobile-nav'] {
[purpose='mobile-nav-header'] {
padding: 19px 20px;
}
[purpose='mobile-dropdown'], [purpose='mobile-dropdown-toggle'], [purpose='mobile-nav-cta'] {
padding-left: 24px;
padding-right: 24px;
}
}
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 200px;
}
[purpose='reduced-nav-footer'] {
height: 200px;
padding: 24px;
}
[purpose='page-footer'] {
height: 955px;
padding: 64px 24px;
}
[purpose='footer-nav'] {
margin-bottom: 64px;
}
[purpose='footer-nav-column']:not(:last-of-type) {
margin-bottom: 40px;
}
[purpose='license-information'] {
margin-bottom: 32px;
}
}
@media (max-width: 375px) {
[purpose='page-header'] {
padding: 19px 16px;
[purpose='mobile-nav'] {
[purpose='mobile-nav-header'] {
padding: 19px 16px;
}
[purpose='mobile-dropdown'], [purpose='mobile-dropdown-toggle'], [purpose='mobile-nav-cta'] {
padding-left: 16px;
padding-right: 16px;
}
}
}
}
// Some utilities for the sticky nav behaviour.
// Note: this will not be applied if a navigation menu open.
.translate-y-0 {
transform: translateY(-81px);
}