$wizard-bg: svg-uri( ' ' ); $wizard-mobile-bg: svg-uri( ' ' ); @keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } body.wizard { background: $wizard-bg; background-size: 110vw 110vh; // crops better than cover at various viewport sizes background-repeat: no-repeat; background-position: bottom; color: var(--primary-very-high); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif; #wizard-main { display: flex; flex-direction: column; align-items: center; } @media screen and (max-height: 900px) { .desktop-view & { #main-outlet { padding-top: 0; } } } .discourse-logo svg { height: 70px; width: auto; @include breakpoint("mobile-extra-large") { height: 50px; } @media screen and (max-height: 900px) { .desktop-view & { display: none; } } } @include breakpoint("mobile-extra-large") { background: $wizard-mobile-bg; background-size: cover; background-repeat: no-repeat; background-position: bottom; } } // Refactored SCSS .wizard-container { position: relative; z-index: 11; background-color: var(--secondary); box-shadow: 0 4px 19px 6px rgba(var(--primary-rgb), 0.05); box-sizing: border-box; margin: 3em auto 1.5em auto; padding: 0; max-width: 85%; min-width: 35%; width: 100%; border: 1px solid var(--primary-low); border-radius: 8px; padding: 2em 3em; @media screen and (max-height: 800px) { .desktop-view & { margin: 1em auto; } } @include breakpoint("mobile-extra-large") { padding: 2em 1.5em; max-width: 99%; margin: 1.5em auto; } &__fields { width: 100%; padding-right: 20%; @include breakpoint("large") { padding-right: 0; } } &__step-banner { @include breakpoint("large") { display: none; } } &__step.branding .wizard-container__fields { padding-right: 0; display: flex; flex-wrap: wrap; gap: 0 2em; .wizard-container__field { flex: 1 1 45%; @include breakpoint("large") { flex: 1 1 100%; } } } &__step.branding .wizard-container__field { @include breakpoint("mobile-extra-large") { max-width: 100%; } } &__step.branding .wizard-container__description { max-width: 25em; @include breakpoint("mobile-extra-large") { display: none; } } &__step.branding .wizard-container__preview canvas { @include breakpoint("mobile-extra-large") { max-width: 100%; height: auto; } } &__step.corporate .wizard-container__fields { display: grid; grid-template-columns: repeat(2, calc(50% - 1em)); grid-column-gap: 2em; grid-template-rows: repeat(3, auto); padding-right: 0; @media only screen and (max-device-width: 568px) { display: flex; flex-wrap: wrap; } } &__field { margin-bottom: 1em; } &__field.checkbox-field { margin-bottom: 3.5em; @media only screen and (max-device-width: 568px) { margin-bottom: 1em; } } &__field.invalid input { outline: 0; border: 3px solid var(--danger); animation: bump 0.25s ease-in-out; animation-iteration-count: 2; } &__field label { display: block; } &__field.component-styling-preview { display: inline; @media only screen and (max-device-width: 568px) { display: none; } } &__field.text-governing-law, &__field.text-city-for-disputes { @media only screen and (max-device-width: 568px) { display: none; } } &__step-form { display: flex; } &__sidebar { width: 170px; box-sizing: border-box; margin-right: 1em; + .wizard-container__fields { padding: 1em; background: var(--primary-very-low); width: calc(100% - 170px); border-radius: 0.5em; margin-top: -1em; } } .preview-nav { display: flex; justify-content: flex-end; position: relative; margin-top: -1px; padding-right: 10px; .preview-nav-button { text-align: center; padding: 10px 15px; cursor: pointer; margin-left: 10px; font-size: 14px; font-weight: bold; color: var(--primary-high); &.active { background: var(--secondary); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; color: var(--tertiary); border-top: none; } } } .previews { position: relative; height: 320px; width: 100%; overflow: hidden; background: var(--secondary); border-radius: 10px; cursor: grab; user-select: none; &.dragging { cursor: grabbing; } .topic-preview { position: absolute; left: 0px; top: 0px; } .homepage-preview { position: absolute; left: calc(100% + 25px); top: 0px; } } &__step-title { font-size: 2.75em; color: var(--primary); line-height: $line-height-medium; margin: 0 0 1.5em 0; @include breakpoint("medium") { font-size: var(--font-up-5); } } &__step-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } &__step-contents { min-height: 37em; margin-bottom: 2em; } &__step-form { flex: 1 0 50%; @media only screen and (max-device-width: 568px) { width: 100%; } } @media only screen and (max-device-width: 568px) { &__step.introduction .wizard-container__step-banner, &__step.privacy .wizard-container__step-banner { display: none; } } &__step-banner { flex: 0 1 40%; } &__step-banner-image { width: 100%; } &__step.ready { .wizard-container__step-banner { display: flex; flex: 1 0 100%; gap: 2em; } .wizard-container__step-description { font-size: var(--font-up-3); flex: 1 0 40%; @include breakpoint("tablet") { font-size: var(--font-up-2); } } .wizard-container__step-banner-image { padding-top: 2em; flex: 0 1 40%; margin-left: 2em; max-height: 300px; @include breakpoint("large") { display: none; } } } &__step.branding .wizard-container__description { font-size: var(--font-0); } &__step-progress { display: flex; align-items: center; font-weight: bold; margin-right: -1.5em; @media screen and (max-width: 767px) { display: none; } @include breakpoint("mobile-extra-large") { margin-bottom: 1em; } .wizard-container__link { color: var(--primary-400); margin: 0 1em; &.inactive { // disabling instead of removing, to hold space pointer-events: none; opacity: 0; } } } &__step-text { display: inline; margin-right: 0.25em; @media only screen and (max-device-width: 568px) { display: none; } } &__step-count { min-width: 3.2em; text-align: center; } .preloaded-font-styles { font-size: 1px; } &__link { margin-right: 1em; text-decoration: none; color: var(--primary-high); font-size: var(--font-up-1); } &__link:hover { color: var(--tertiary-hover); } &__button { border-radius: 2px; font-size: var(--font-0); border: 0; padding: 0.5em; transition: background-color 0.3s; text-decoration: none; background-color: var(--secondary); color: var(--primary-very-high); cursor: pointer; font-size: var(--font-up-1); } &__button.small { padding: 0.25em 0.5em; font-size: var(--font-down-1); } &__button:hover, &__button:focus { background-color: var(--primary-low); } &__button:active { background-color: var(--primary-low-mid); } &__button:disabled, &__button.disabled { background-color: var(--primary-medium); } &__button .d-icon-chevron-right { margin-left: 0.25em; font-size: 0.8em; } &__button .d-icon-chevron-left { margin-right: 0.25em; font-size: 0.8em; } &__button.primary { background-color: var(--tertiary); color: var(--secondary); } &__button.primary:hover, &__button.primary:focus { background-color: var(--tertiary-hover); } &__button.primary:active { background-color: var(--tertiary-high); } &__button.primary:disabled { background-color: var(--tertiary-low); } &__button.configure-more { background-color: var(--primary-200); color: var(--primary); } &__button.configure-more:hover { background-color: var(--primary-300); color: var(--primary); } &__button.jump-in { background-color: var(--success); color: var(--secondary); &:hover { background-color: var(--success-hover); } } &__button.finish { color: var(--tertiary); padding: 0; } &__button.finish:hover { color: var(--tertiary-hover); background-color: transparent; } &__button.finish:active, &__button.finish:disabled { background-color: transparent; } &__button.next { min-width: 70px; } &__button.danger { background-color: var(--danger); color: var(--secondary); } &__button.danger:hover, &__button.danger:focus { background-color: var(--danger-hover); } &__button.danger:active { background-color: var(--danger-medium); } &__button.danger:disabled { background-color: var(--danger-low); } &__button-upload { background-color: var(--primary-low); display: block; } &__button-upload:hover { background-color: var(--primary-low-mid); } &__button-upload svg { margin-left: 0.5em; } .wizard-hidden-upload-field { visibility: hidden; position: absolute; } &__button:last-child { margin-right: 0; } &__step-footer { display: flex; justify-content: space-between; align-items: center; @media only screen and (max-device-width: 568px) { flex-direction: column; justify-content: center; } } &__buttons { display: flex; flex-wrap: wrap; gap: 1em; align-items: center; } &__image-upload { display: flex; flex-direction: column; justify-content: space-between; align-items: baseline; } &__label { font-weight: bold; font-size: var(--font-up-2); @media only screen and (max-device-width: 568px) { font-size: var(--font-up-1); } } &__step.styling .wizard-container__label { font-size: var(--font-0); } &__label.required { display: inline; color: var(--danger); } &__description { color: var(--primary-high); font-size: var(--font-down-1); margin: 0.25em 0 0.5em 0; a { margin: 0; } @media only screen and (max-device-width: 568px) { font-size: var(--font-0); } } &__description.extra { color: var(--primary-high); font-size: var(--font-up-1); margin: 0.25em 0 0.5em 0; max-width: 400px; } &__text-input { border-radius: 4px !important; padding: 5px; width: 100%; font-size: var(--font-up-1); margin: 0; padding: 10px; background-color: var(--secondary); border: 1px solid var(--primary-low-mid); transition: border-color 0.5s; } &__dropdown .select-kit-header:not(.btn) { border-radius: 4px; } &__dropdown.color-palettes .select-kit-row.color-palettes-row .name { flex: 0 0 30%; } &__dropdown.color-palettes .select-kit-row.color-palettes-row .palettes { flex: 1 1 70%; overflow: hidden; } &__field.checkbox-field .wizard-container__label { cursor: pointer; display: inline-block; } &__checkbox-slider { display: inline-block; background: var(--primary-low-mid); border-radius: 16px; width: 58px; height: 32px; margin-right: 0.5em; position: relative; vertical-align: middle; transition: background 0.25s; @media only screen and (max-device-width: 568px) { height: 20px; width: 35px; } } &__checkbox-slider:before, &__checkbox-slider:after { content: ""; } &__checkbox-slider:before { display: block; background: var(--secondary); border-radius: 50%; width: 24px; height: 24px; position: absolute; top: 4px; left: 4px; transition: left 0.25s; @media only screen and (max-device-width: 568px) { height: 12px; width: 12px; } } &__field.checkbox-field .wizard-container__label:hover .wizard-container__checkbox-slider:before { background: var(--secondary); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); } &__checkbox:checked + .wizard-container__checkbox-slider { background: var(--tertiary); } &__checkbox:checked + .wizard-container__checkbox-slider:before { left: 30px; @media only screen and (max-device-width: 568px) { left: 20px; } } &__checkbox { position: absolute; visibility: hidden; } &__checkbox-label { position: relative; top: 2px; } .wizard-container__image-upload canvas { border: 1px solid rgba(0, 0, 0, 0.2); } }