Skip to content

Commit

Permalink
fix(modal): fix spacing and overriding styles in the docsite (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
josedialpad authored Aug 5, 2022
1 parent f98b41b commit 55d5693
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs/assets/less/overrides.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions lib/build/less/components/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@
visibility: hidden;
opacity: 0;
will-change: visibility, z-index, opacity, transform;

.d-stack16();
}

// $$ MAKE THEM APPEAR
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 55d5693

Please sign in to comment.