fleet/website/assets/styles/layout.less
Eric 73c2b25403
Website: update get started CTA styles (#20216)
Closes: #20185

Changes:
- Updated the styles for the get started CTA to prevent styling issues
when the orb is collapsed and visible because of screen width.
2024-07-03 17:11:18 -05:00

780 lines
17 KiB
Text
Vendored

@footer-height: 409px;
@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 200px);
background-position: center 40px;
}
[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='continue-banner'] {
z-index: 199;
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-image: url('/images/continue-thumbnail.png');
background-size: cover;
}
}
[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: #7487C2;
p {
font-size: 14px;
line-height: 20px;
color: #fff;
}
a {
font-size: 14px;
line-height: 20px;
font-weight: 700;
text-decoration: underline;
color: #fff;
}
}
[purpose='page-header'] {
max-width: 1200px;
padding: 19px 32px;
height: 80px;
color: @core-fleet-black;
[purpose='header-logo'] {
max-width: 118px;
img {
height: 41px;
width: 118px;
}
}
[purpose='glass-header-btn'] {
color: #FFFFFF;
height: 32px;
position: relative;
font-size: 14px;
font-weight: 700;
line-height: 1;
padding: 16px;
box-shadow: 1px 1px 2px rgba(25, 33, 71, 0.24);
border-radius: 4px;
background-color: @core-vibrant-red;
overflow: hidden;
}
[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='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;
min-height: 100vh;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
background-color: #ffffff;
hr {
margin-top: 4px;
margin-bottom: 8px;
}
[purpose='mobile-nav-header'] {
padding: 19px 40px;
height: 80px;
}
[purpose='mobile-nav-container'] {
padding: 8px 40px 0px 40px;
}
[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='mobile-dropdown-link'] {
width: 100%;
padding: 8px 24px 8px 0px;
margin-bottom: 8px;
font-weight: 700;
cursor: pointer;
color: @core-fleet-black;
&:hover {
color: @core-vibrant-blue;
text-decoration: none;
}
}
[purpose='mobile-dropdown-toggle'] {
width: 100%;
padding: 8px 24px 8px 0px;
margin-bottom: 4px;
font-weight: 700;
cursor: pointer;
color: @core-fleet-black;
&[aria-expanded='true'] {
color: #6a67fe;
outline: none;
margin-bottom: 4px;
}
&:hover {
color: #6a67fe;
}
}
[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;
&.collapse {
display: none;
}
&.collapse.show {
display: flex;
}
span {
display: inline-flex;
font-weight: bold;
font-size: 12px;
line-height: 24px;
color: @core-fleet-black-50;
margin-bottom: 4px;
}
a {
display: inline-flex;
width: 100%;
padding: 8px 24px 8px 0px;
font-weight: 400;
color: #212529;
white-space: nowrap;
background-color: transparent;
}
a:hover {
color: #6a67fe;
text-decoration: none;
}
[purpose='indented-mobile-links'] {
padding-left: 16px;
}
}
}
[purpose='header-nav'] {
[purpose='glass-header-btn'] {
color: #FFFFFF;
height: 32px;
position: relative;
font-size: 14px;
font-weight: 700;
line-height: 1;
padding: 16px;
box-shadow: 1px 1px 2px rgba(25, 33, 71, 0.24);
border-radius: 4px;
background-color: @core-vibrant-red;
text-decoration: none;
white-space: nowrap;
}
[purpose='header-nav-btn'][aria-expanded='true'] {
font-weight: 700;
outline: none;
color: @core-fleet-black-75;;
}
[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;
&:hover {
color: @core-fleet-black-75;
font-weight: 700;
text-decoration: none;
}
}
[purpose='header-nav-btn'] {
color: @core-fleet-black-75;
font-weight: 400;
cursor: pointer;
display: inline-block;
padding: 6px 16px;
}
[purpose='header-nav-btn']:hover {
font-weight: 700;
text-decoration: none;
}
&:focus {
outline-color: none;
}
.current-section {
font-weight: 700;
svg {
path {
fill: #6a67fe;
}
}
}
[purpose='gh-button'] {
margin-left: 20px;
margin-right: 20px;
}
[purpose='header-dropdown'] {
box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.4);
border-radius: 8px;
a {
color: @core-fleet-black;
font-weight: 400;
line-height: 20px;
&:not(:last-of-type) {
margin-bottom: 4px;
}
}
a:hover {
color: #6a67fe;
text-decoration: none;
}
}
}
}
[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;
}
}
[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='footer-trust-link'] {
font-size: 10px;
line-height: 150%;
font-weight: 700;
padding: 2px 6px;
color: @core-fleet-black-75;
margin-right: 12px;
border-radius: 3px;
background: #FFF;
img {
width: 9px;
height: auto;
margin-right: 6px;
}
&:hover {
background-color: #F9FAFC;
text-decoration: none;
}
}
[purpose='legal-section'] {
font-size: 12px;
line-height: 150%;
[purpose='creative-commons-license'] {
width: 80px;
height: 15px;
margin-right: 8px;
}
[purpose='legal-links'] {
a {
margin-left: 12px;
display: inline;
text-underline-offset: 2.5px;
text-decoration: underline;
}
}
}
[purpose='footer-socials'] {
img {
height: 20px;
width: auto;
margin-top: 2px;
}
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 70px;
}
// Landing page footer styles
[purpose='reduced-nav-footer'] {
position: absolute;
bottom: 0px;
width: 100%;
height: 70px;
padding: 24px 32px;
color: @core-fleet-black-75;
a {
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: 460px;
}
[purpose='page-footer'] {
padding: 64px 40px;
height: 460px;
[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-image: url('/images/continue-thumbnail.png');
background-size: cover;
}
}
[purpose='banner-body'].collapsed {
[purpose='banner-text'] {
display: flex;
}
[purpose='banner-image'] {
height: 54px;
min-width: 54px;
background-image: url('/images/continue-thumbnail.png');
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-nav-container'] {
padding: 8px 32px 0px 32px;
}
}
}
[purpose='page-wrap'] {
padding-bottom: 701px;
}
[purpose='footer-nav-column']:not(:last-of-type) {
margin-bottom: 64px;
}
[purpose='page-footer'] {
padding: 64px 32px;
height: 701px;
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 121px;
}
[purpose='reduced-nav-footer'] {
height: 121px;
[purpose='footer-socials'] {
margin-bottom: 32px;
}
}
}
@media (max-width: 575px) {
[purpose='page-wrap'] {
padding-bottom: 925px;
}
[purpose='page-header'] {
padding: 19px 20px;
[purpose='mobile-nav'] {
[purpose='mobile-nav-header'] {
padding: 19px 20px;
}
[purpose='mobile-nav-container'] {
padding: 8px 24px 0px 24px;
}
}
}
[purpose='page-wrap'].reduced-footer-links {
padding-bottom: 173px;
}
[purpose='reduced-nav-footer'] {
height: 173px;
padding: 24px;
}
[purpose='page-footer'] {
height: 925px;
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'] {
[purpose='mobile-nav'] {
[purpose='mobile-nav-header'] {
padding: 19px 16px;
}
[purpose='mobile-nav-container'] {
padding: 8px 16px 0px 16px;
}
}
}
}
// Some utilities for the sticky nav behaviour.
// Note: this will not be applied if a navigation menu open.
.translate-y-0 {
transform: translateY(-235px);
}