Skip to content

A platform for community discussion. Free, open, simple.

UX: Style tweaks for wizard & onboarding banner (#41950)

Jordan Vidrine67ef3df8ac88
diff --git a/app/assets/stylesheets/common/components/admin-onboarding-banner.scss b/app/assets/stylesheets/common/components/admin-onboarding-banner.scss
index e473a109fce..06f3158a936 100644
--- a/app/assets/stylesheets/common/components/admin-onboarding-banner.scss
+++ b/app/assets/stylesheets/common/components/admin-onboarding-banner.scss
@@ -186,10 +186,6 @@
}
.theme-picker-modal {
- .d-modal__container {
- background-color: var(--primary-very-low);
- }
-
&__loading {
display: flex;
justify-content: center;
@@ -212,7 +208,6 @@
border: 2px solid var(--content-border-color);
height: 250px;
border-radius: var(--d-border-radius);
- box-shadow: var(--shadow-card);
@include viewport.from(md) {
height: 24vw; // adjusts with window width (like the modal itself)
@@ -251,6 +246,8 @@
background: var(--tertiary);
padding: var(--space-1) var(--space-2);
border-radius: var(--d-border-radius);
+ border-top-left-radius: 0;
+ border-bottom-right-radius: 0;
z-index: 1;
}
diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss
index af074ce1cef..09319bf08c4 100644
--- a/app/assets/stylesheets/wizard.scss
+++ b/app/assets/stylesheets/wizard.scss
@@ -116,11 +116,20 @@ body.wizard {
#wizard-main {
position: fixed;
inset: 0;
- justify-content: safe center;
+
+ // inset must size the box alone; height + padding on a content-box
+ // element pushes it past the viewport and skews centering
+ height: auto;
padding: 1.5rem;
overflow: auto;
}
+ // auto margins center the step when short, but unlike justify-content:
+ // center keep the top reachable when a tall step overflows
+ .wizard-container__step {
+ margin-block: auto;
+ }
+
#wizard-main::after {
content: "";
position: fixed;
@@ -147,7 +156,6 @@ body.wizard {
background-color: var(--secondary);
box-shadow: 0 10px 30px light-dark(rgb(123, 95, 226, 0.15), transparent);
box-sizing: border-box;
- margin: 1em auto;
border-radius: 16px;
padding: 3em;
@@ -156,7 +164,6 @@ body.wizard {
}
&__step {
- margin-top: 1em;
max-width: 700px;
width: 100%;