Skip to content

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

FIX: Restore danger zone styles on category settings page (#45377)

chapoi4f4b1c36333d
diff --git a/app/assets/stylesheets/common/base/edit-category.scss b/app/assets/stylesheets/common/base/edit-category.scss
index 882333e3c4c..62f33a1f572 100644
--- a/app/assets/stylesheets/common/base/edit-category.scss
+++ b/app/assets/stylesheets/common/base/edit-category.scss
@@ -151,6 +151,57 @@ $number-input-width: var(--form-kit-small-input);
}
}
+ .edit-category-tab-topic-template {
+ .select-category-template__info {
+ margin-block: 0.25rem;
+ font-size: var(--font-down-1);
+ }
+ }
+
+ .form-kit__conditional-display {
+ .form-kit__container-content:has(.is-disabled) {
+ // select-kit has pointer-events disabled, so we need to style the parent
+ cursor: not-allowed;
+ }
+ }
+
+ .edit-category-tab-localizations {
+ .btn-default {
+ align-self: start;
+ }
+ }
+
+ .admin-changes-banner {
+ max-width: var(--form-kit-max-input);
+ flex-direction: row-reverse;
+ align-items: center;
+ bottom: var(--powered-by-height, 0);
+
+ @include viewport.until(sm) {
+ &__main-label {
+ display: none;
+ }
+ }
+
+ @include viewport.from(sm) {
+ bottom: calc(var(--powered-by-height, 0px) + var(--space-5));
+
+ .footer-nav-visible & {
+ bottom: calc(
+ var(--footer-nav-height) + env(safe-area-inset-bottom) +
+ var(--powered-by-height, 0px) + var(--space-5)
+ );
+ }
+ }
+
+ .controls {
+ flex-direction: row-reverse;
+ margin-right: auto;
+ }
+ }
+}
+
+.edit-category {
&__footer {
grid-area: footer;
@@ -205,55 +256,6 @@ $number-input-width: var(--form-kit-small-input);
}
}
}
-
- .edit-category-tab-topic-template {
- .select-category-template__info {
- margin-block: 0.25rem;
- font-size: var(--font-down-1);
- }
- }
-
- .form-kit__conditional-display {
- .form-kit__container-content:has(.is-disabled) {
- // select-kit has pointer-events disabled, so we need to style the parent
- cursor: not-allowed;
- }
- }
-
- .edit-category-tab-localizations {
- .btn-default {
- align-self: start;
- }
- }
-
- .admin-changes-banner {
- max-width: var(--form-kit-max-input);
- flex-direction: row-reverse;
- align-items: center;
- bottom: var(--powered-by-height, 0);
-
- @include viewport.until(sm) {
- &__main-label {
- display: none;
- }
- }
-
- @include viewport.from(sm) {
- bottom: calc(var(--powered-by-height, 0px) + var(--space-5));
-
- .footer-nav-visible & {
- bottom: calc(
- var(--footer-nav-height) + env(safe-area-inset-bottom) +
- var(--powered-by-height, 0px) + var(--space-5)
- );
- }
- }
-
- .controls {
- flex-direction: row-reverse;
- margin-right: auto;
- }
- }
}
.edit-category-description-container {