Skip to content

Commit 507b4a6

Browse files
authored
feat: dialog style enhancements (#127)
* add horizontal padding to dialog * reduce vertical padding for hr element inside dialog * add example horizontal rule in dialog
1 parent 7b92af1 commit 507b4a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ <h2>What can you build with MVP.css?</h2>
396396

397397
<dialog popover id="dialog-modal">
398398
<h3>Hello, I am a header of the modal</h3>
399+
<hr>
399400
<p>
400401
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos ullam at assumenda cum placeat aperiam ab error, doloribus eligendi sit. Lorem ipsum dolor sit amet consectetur adipisicing
401402
elit. Quos ullam.

mvp.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ dialog {
464464
max-width: 90%;
465465
max-height: 85dvh;
466466
margin: auto;
467-
padding: 0;
467+
padding-block: 0;
468+
padding-inline: 20px;
468469
border: 1px solid var(--color-bg-secondary);
469470
border-radius: 0.5rem;
470471
overscroll-behavior: contain;
@@ -510,6 +511,10 @@ dialog::backdrop {
510511
}
511512
}
512513

514+
dialog hr {
515+
margin-block: 1rem;
516+
}
517+
513518
/* Tables */
514519
table {
515520
border: 1px solid var(--color-bg-secondary);

0 commit comments

Comments
 (0)