Skip to content

Commit

Permalink
Merge pull request #171 from appwrite/fix-modal-spacing-logic
Browse files Browse the repository at this point in the history
Modal
  • Loading branch information
ArmanNik authored Apr 16, 2024
2 parents efdc2e8 + f6558d2 commit 6a06db9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/rare-lemons-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@appwrite.io/pink": minor
"@appwrite.io/pink-icons": minor
---

Modal
13 changes: 8 additions & 5 deletions packages/ui/src/7-components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@
}
}
&.is-separate-header {
> .modal-form > .modal-header {
padding: var(--p-modal-padding);
padding-block-start: 0;
border-block-end: solid pxToRem(1) hsl(var(--color-border));
margin-inline: calc(var(--p-modal-padding) * -1);
> .modal-form {
> .modal-header {
padding: var(--p-modal-padding); padding-block-start: 0;
border-block-end: solid pxToRem(1) hsl(var(--color-border));
margin-inline: calc(var(--p-modal-padding) * -1); margin-block-end:0;
}
> .modal-content { padding-block:var(--p-modal-padding); margin-block:0; }
> .modal-footer { margin-block-start:0; }
}
}
&.is-page-in-mobile {
Expand Down

0 comments on commit 6a06db9

Please sign in to comment.