// Demo content // // Please note: These are mostly for demo purposes // so feel free to remove everything in this file // and start over. // This is just for demoing purposes so let's give it some slack /* stylelint-disable */ // Demo variables $color-cyan: #159d94; $color-cyan-bright: #60f4ea; $color-demo-footer-background: #2a2d3e; $color-demo-footer-foreground: $color-white; $color-border-demo-header: rgba($color-bright, .5); // Demo navigation background on sub pages @media (min-width: $width-max-mobile) { body .nav-container { background-color: $color-main; } } .site-header { padding-top: 4rem; padding-bottom: 4rem; @media (max-width: $width-max-mobile) { padding-top: 1rem; padding-bottom: 1rem; } @media (max-width: $container-mobile) { padding-top: 1rem; padding-bottom: 1rem; } .site-title { font-weight: 700; margin: 0; svg { transition: transform 1s ease-in; // Accessibility: Disable animation if reduce motion is enabled @media screen and (prefers-reduced-motion: reduce), (update: slow) { transition: none; } } .clr-i-solid-path-2 { fill: $color-white; } a { color: $color-cyan-bright; display: flex; align-items: center; } a:hover svg { transition: transform .4s cubic-bezier(.6, -.68, .73, .04); transform: translate(260%, -220%); // Accessibility: Disable animation if reduce motion is enabled @media screen and (prefers-reduced-motion: reduce), (update: slow) { transition: none; transform: none; } .clr-i-solid-path-2 { display: block !important; fill: $color-cyan-bright; } } .logo-name { content: 'Air'; display: block; text-transform: lowercase; letter-spacing: .1em; font-weight: $font-weight-paragraphs; color: $color-white; margin-left: .75rem; font-size: 2.2rem; } } } // Nav for demo .js .nav-primary { // Default position, IE needs this top: calc(#{$height-navigation-mobile} + 10px); left: 0; @media (min-width: $container-mobile) { top: calc(#{$height-navigation-mobile} + 20px); } } // Demo structure .block.block-entry-header-demo { background: $color-demo-footer-background; display: flex; align-items: center; justify-content: center; position: relative; max-height: 80rem; height: 60vh; max-width: $width-max-layout; margin: 0 auto; @media (min-width: $container-mobile) { min-height: 60rem; } @media (max-width: $container-mobile) { padding-top: 6rem; padding-bottom: 6rem; } .shade { opacity: .4; } .inner { display: grid; grid-template-rows: 1fr 1fr; /* autoprefixer: off */ align-items: center; max-height: 100%; justify-items: center; padding: 2rem; max-width: $container-desktop; margin-top: 140px; margin-bottom: 80px; @media (min-width: $container-ipad) { padding: 0; display: grid; grid-template-rows: none; grid-template-columns: 3fr 5fr; max-width: $width-max-article; } } @keyframes plane-container { 0% { overflow: visible; } 80% { overflow: hidden; } 100% { overflow: hidden; } } .logo { color: $color-cyan-bright; border-top: 2px solid $color-border-demo-header; border-right: 0; width: 100%; text-align: center; order: 2; overflow: visible; animation: plane-container 10s linear 1s infinite; .logo-name { display: none; } @keyframes plane { 0% { transform: translate(-200%, 140%); } 10% { transform: translate(0, 0); opacity: 1; } 85% { transform: translate(0, 0); opacity: 1; } 95% { transform: translate(140%, -100%); } 97% { opacity: 0; } 100% { transform: translate(0, 0); } } svg { padding: 2rem; height: auto; width: 100%; max-width: 20rem; opacity: 0; transform: translate(-100%, 100%); animation: plane 5s cubic-bezier(.86, 0, .07, 1) 1s infinite; animation-delay: -5s; position: relative; z-index: 6; // Accessibility: Disable animation if reduce motion is enabled @media screen and (prefers-reduced-motion: reduce), (update: slow) { animation: none; transform: none; opacity: 1; } @media (max-width: $container-mobile) { max-width: 15rem; } } @media (min-width: $container-ipad) { border-top: 0; border-right: 2px solid $color-border-demo-header; order: 0; text-align: right; svg { padding: 2rem 4rem; } } } .main-heading { @include responsive-font(32px, 62px); color: $color-white; margin: 0; padding: 2rem; position: relative; z-index: 2; text-align: center; line-height: 1.23; @media (min-width: $container-ipad) { padding: 2rem 4rem; text-align: left; } } } .accent { @extend %h3; font-style: normal; letter-spacing: .05em; text-transform: lowercase; font-weight: 500; margin: 0; margin-bottom: 1rem; color: $color-bright; display: block; position: relative; z-index: 2; } @media (min-width: $width-max-mobile) { .site-header .site-branding .site-title a, .site-header .nav-primary .menu-items.nav-menu .menu-item > .dropdown-toggle, .site-header .nav-primary .menu-items .current-menu-parent > a, .site-header .nav-primary .menu-items .current-menu-item > a { color: $color-cyan-bright; } .site-header .nav-primary .menu-items .sub-menu .current-menu-parent > a, .site-header .nav-primary .menu-items .sub-menu .current-menu-item > a { color: $color-current; } .site-header .nav-primary .menu-items.nav-menu .sub-menu .menu-item > .dropdown-toggle { color: $color-dark; } } .block.block-entry-header-demo + .block .container { max-width: $width-max-article; } // Build these to views/_index.scss for example .block.block-blog article, .block.block-blog nav { max-width: $width-max-article; margin-left: auto; margin-right: auto; } .block-blog article { margin-bottom: var(--padding-block); &:last-child { margin-bottom: 0; } } .block-blog ul.tags { padding-left: 0; } @media (min-width: $width-max-mobile) { .block { min-height: 78px; } } /* stylelint-enable */