| @import "@automattic/onboarding/styles/mixins"; |
| @import "@wordpress/base-styles/breakpoints"; |
| @import "@wordpress/base-styles/mixins"; |
|
|
| $separator-style: 1px solid #eaeaeb; |
| $breakpoint-mobile: 660px; |
|
|
| @mixin horizontal-separator { |
| width: 100%; |
| margin: 20px 0; |
| &::before, |
| &::after { |
| position: absolute; |
| content: ""; |
| border-inline-start: 0; |
| border-block-start: $separator-style; |
| inset-block-start: 50%; |
| inset-inline-start: 0; |
| height: 0; |
| width: 42%; |
| z-index: 1; |
| } |
|
|
| &::after { |
| left: 58%; |
| } |
|
|
| .auth-form__separator-text { |
| padding: 0 24px; |
| } |
| } |
|
|
| @mixin vertical-separator { |
| width: 24px; |
| margin-left: 40px; |
| margin-right: 40px; |
|
|
| &::before, |
| &::after { |
| border-inline-start: $separator-style; |
| border-block-start: 0; |
| inset-block-start: 0; |
| inset-inline-start: 50%; |
| height: 40%; |
| } |
|
|
| &::after { |
| top: 60%; |
| } |
|
|
| .auth-form__separator-text { |
| padding: 24px 0; |
| } |
| } |
|
|
|
|
| .auth-form__separator { |
| position: relative; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
|
|
| @include horizontal-separator; |
|
|
| .auth-form__separator-text { |
| text-transform: uppercase; |
| text-align: center; |
| font-size: 0.75rem; |
| z-index: 1; |
| color: var(--studio-gray-50); |
| } |
| } |
|
|
| |
| .signup-form, |
| .layout:not(.is-grav-powered-client) .is-social-first, |
| .login form.is-woo-passwordless, |
| .login form.is-blaze-pro { |
| .auth-form__separator { |
| @include horizontal-separator; |
| width: calc(100% - 32px); |
| margin: 20px 0; |
|
|
| @include break-medium { |
| @include vertical-separator; |
| } |
| } |
|
|
| .auth-form__separator.is-horizontal { |
| @include horizontal-separator; |
| } |
| } |
|
|
| |
| |
| .card ~ .auth-form__separator { |
| margin-bottom: -10px; |
| margin-top: -10px; |
| } |
|
|
| |
| :has(> .auth-form__separator) > .card:first-of-type { |
| border-bottom: 10px solid transparent; |
| } |
|
|
| |
| .auth-form__separator + .card { |
| |
| clip-path: polygon(-1px 1px, 102% 1px, 102% 102%, -1px 102%); |
| |
| border-top: 11px solid transparent; |
| } |
|
|