.absolutte-section{ margin: 20% 0; position: relative; } .absolutte-button{ display: inline-block; font-weight: bold; text-align: center; white-space: nowrap; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px solid transparent; background-color: #2fc77c; color: #fff; text-transform: uppercase; min-width: 9.6875rem; -webkit-box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 3px 0 rgba(0, 0, 0, 0.08); box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 3px 0 rgba(0, 0, 0, 0.08); -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; -moz-osx-font-smoothing: grayscale; /* Firefox */ -webkit-font-smoothing: antialiased; /* WebKit */ padding: 0.625rem 1.875rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; &:hover, &:focus{ text-decoration: none; background-color: darken($secondary, 5); box-shadow: 0 4px 17px 0 rgba(0,0,0,0.15); transform: translateY(-3px); color: #fff; } &:focus, &.focus { outline: 0; box-shadow: 0 0 0 .2rem rgba(0,0,0, .25); } // Disabled comes first so active can properly restyle display: inline-block; width: auto; height: auto; margin-bottom: 0; } .absolutte-button-secondary{ @extend .absolutte-button; background-color: #f8f8f8; color: #6c757d; &:hover, &:focus{ background-color: darken(#f8f8f8, 3); color: #495057; } } /* Modal Popup /*----------------------------------------------------------------------*/ .absolutte-modal-wrap{ position: fixed; opacity: 0; top: 0; left: 0; right: 0; bottom: 0; transform: scale(0); background-color: rgba(0,0,0,0.7); z-index: -998; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; box-sizing: border-box; transition: opacity 300ms, transform 400ms cubic-bezier(0.075, 0.82, 0.165, 1); .absolutte-modal-open &{ display: block; opacity: 1; transform: scale(1); z-index: 998; } .absolutte-modal{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-40%); z-index: 999; opacity: 0; transition: opacity 300ms, transform 400ms cubic-bezier(0.075, 0.82, 0.165, 1); transition-delay: 100ms; box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 15px 30px rgba(0,0,0,0.5); border-radius: 5px; overflow: hidden; .absolutte-modal-open &{ transform: translate(-50%,-50%); opacity: 1; } .absolutte-responsive-video{ width: 70vw; } } } .absolutte-diagonal-bottom, .absolutte-diagonal-top{ position: absolute; bottom: -1px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 0; overflow: hidden; svg{ width: 101%; } } .absolutte-diagonal-top{ bottom: auto; top: 0; } /* Shadow Big /*----------------------------------------------------------------------*/ .absolutte-shadow-big{ box-shadow: 0 5px 15px rgba(0,0,0,0.07), 0 15px 35px rgba(0,0,0,0.10); } .absolutte-shadow-big-hover{ box-shadow: 0 9px 20px rgba(0,0,0,0.07), 0 20px 45px rgba(0,0,0,0.10); } /* Section Title /*----------------------------------------------------------------------*/ .absolutte-section-title{ font-size: 1.875rem; color: $primary; font-weight: bold; position: relative; padding-bottom: 1.5625rem; margin-bottom: 1.875rem; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; &::after{ content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background-color: $primary; } a{ .no-touch &:hover{ text-decoration: none; } } } /* Section Title Small /*----------------------------------------------------------------------*/ .absolutte-section-title-small{ font-size: 1.875rem; color: $primary; font-weight: bold; position: relative; padding-bottom: 1.5625rem; margin-bottom: 1.875rem; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; &::after{ content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background-color: $primary; } a{ .no-touch &:hover{ text-decoration: none; } } } /* Phone Mockup /*----------------------------------------------------------------------*/ .absolutte-phone-mockup{ border: 6px solid #fff; width: 60%; margin: 0 auto; border-radius: 30px; overflow: hidden; position: relative; top: 0; @extend .absolutte-shadow-big; z-index: 1; margin-bottom: 10%; .absolutte-phone-mockup-image{ width: 100%; padding-bottom: 217.7%; background-size: cover; background-position: center; position: relative; z-index: 1; } &::before{ position: absolute; content: ""; width: 50%; margin: 0 auto; height: 3.2%; background-color: #fff; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; border-radius: 0 0 10px 10px; } &::after{ position: absolute; content: ""; width: 20%; margin: 0 auto; height: 0.8%; background-color: #000; top: 1%; left: 50%; transform: translateX(-50%); z-index: 2; border-radius: 15px; opacity: 0.08; } &.absolutte-dark-mode{ border-color: #000; &::before{ background-color: #000; } &::after{ background-color: #fff; } } } /* Absolutte Track /*----------------------------------------------------------------------*/ .absolutte-animations .absolutte-track{ opacity: 0; } /* Columns Blocks /*----------------------------------------------------------------------*/ .absolutte-columns{ display: flex; flex-wrap: wrap; margin-right: (30px / -2); margin-left: (30px / -2); .wp-block-column{ position: relative; width: 100%; min-height: 1px; // Prevent collapsing padding-right: (30px / 2); padding-left: (30px / 2); width: auto; flex-basis: 100%; } } .wp-block-columns{ max-width: 1140px; margin-left: auto; margin-right: auto; } /*-------------------------------------------------------------- # Accessibility --------------------------------------------------------------*/ /* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; } .screen-reader-text:focus { background-color: #f1f1f1; -webkit-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-size: 0.875rem; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; /* Above WP toolbar. */ } /* Inputs */ /*----------------------------------------------------------------------*/ input, textarea { display: block; width: 100%; height: 42px; border-radius: 3px; margin-bottom: 0.71428571428571em; border: 1px solid #dee2e6; transition: all 300ms; box-shadow: none; color: #6c757d; &:focus{ box-shadow: none; border: 1px solid #495057; } } textarea { min-height: 100px; } /* Small and Up /*----------------------------------------------------------------------*/ @media (min-width: 576px) { .absolutte-section{ margin: 8% 0; } .absolutte-section-title{ font-size: 1.875rem; } /* Phone Mockup /*----------------------------------------------------------------------*/ .absolutte-phone-mockup{ border-width: 7px; border-radius: 25px; &::before{ border-radius: 0 0 10px 10px; } } /* App Store Buttons /*----------------------------------------------------------------------*/ .absolutte-app-store-button{ font-size: 0.875rem; padding-left: 50px; padding-right: 20px; &::before{ left: 20px; width: 20px; height: 20px; font-size: 20px; } } /* Columns Blocks /*----------------------------------------------------------------------*/ .wp-block-columns{ &.has-3-columns{ .wp-block-column, .editor-block-list__block{ flex-basis: 33%; } } .editor-inner-blocks{ width: 100%; } } } /* Large and Up /*----------------------------------------------------------------------*/ @media (min-width: 992px) { .absolutte-section-title{ font-size: 2.6875rem; } /* Phone Mockup /*----------------------------------------------------------------------*/ .absolutte-phone-mockup{ border-width: 10px; border-radius: 40px; &::before{ border-radius: 0 0 15px 15px; } } /* App Store Buttons /*----------------------------------------------------------------------*/ .absolutte-app-store-button{ font-size: 1rem; padding-left: 65px; padding-right: 25px; &::before{ left: 25px; width: 25px; height: 25px; font-size: 25px; } } }