From 55d56931278a004dd46c94ff454b6cdecce3e454 Mon Sep 17 00:00:00 2001 From: Jose Silva Date: Fri, 5 Aug 2022 14:54:33 -0300 Subject: [PATCH] fix(modal): fix spacing and overriding styles in the docsite (#635) --- docs/assets/less/overrides.less | 8 ++++++++ lib/build/less/components/modal.less | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/assets/less/overrides.less b/docs/assets/less/overrides.less index 34cf0fe259..ce3432e10c 100644 --- a/docs/assets/less/overrides.less +++ b/docs/assets/less/overrides.less @@ -4,6 +4,7 @@ @import (reference) '../../../lib/build/less/utilities/internals'; @import (reference) '../../../lib/build/less/utilities/spacing'; @import (reference) '../../../lib/build/less/utilities/typography'; +@import (reference) '../../../lib/build/less/components/modal'; html { scroll-behavior: smooth; @@ -156,6 +157,13 @@ samp { } +// Fix theme-default styles leaking into the modal +.theme-default-content { + .d-modal__header { + .d-modal__header(); + } +} + .page-nav { margin: 0 auto; max-width: 99rem; diff --git a/lib/build/less/components/modal.less b/lib/build/less/components/modal.less index 6d63e5d4e9..912a1e623d 100644 --- a/lib/build/less/components/modal.less +++ b/lib/build/less/components/modal.less @@ -96,8 +96,6 @@ visibility: hidden; opacity: 0; will-change: visibility, z-index, opacity, transform; - - .d-stack16(); } // $$ MAKE THEM APPEAR @@ -150,7 +148,7 @@ // ---------------------------------------------------------------------------- .d-modal__content { max-width: 75ch; - margin: var(--su12) 0 0 !important; + margin: var(--su12) 0; padding: var(--su4) var(--su24); }