Skip to content

Commit

Permalink
✨ feat(modal.scss): Support showing modal using class toggle (previou…
Browse files Browse the repository at this point in the history
…sly using .shown class, but was never documented)
  • Loading branch information
Spiderpig86 committed Jul 1, 2022
1 parent 4bcf67e commit 2c3c6d7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -18149,7 +18149,7 @@ ul .divider::after {
/* Visible state */
}

.modal:target, .modal.shown {
.modal:target, .modal.modal--visible {
display: flex;
opacity: 1;
z-index: 999;
Expand All @@ -18158,7 +18158,7 @@ ul .divider::after {
/* The div in the modal dialpog used to create the translucent background */
}

.modal:target .modal-overlay, .modal.shown .modal-overlay {
.modal:target .modal-overlay, .modal.modal--visible .modal-overlay {
position: absolute;
/* Absolute inside of the modal container */
top: 0;
Expand All @@ -18170,8 +18170,8 @@ ul .divider::after {
}

.modal:target .modal-container,
.modal:target .modal-container, .modal.shown .modal-container,
.modal.shown .modal-container {
.modal:target .modal-container, .modal.modal--visible .modal-container,
.modal.modal--visible .modal-container {
animation: slide-down var(--animation-duration) ease 1;
z-index: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -15525,7 +15525,7 @@ ul .divider::after {
/* Visible state */
}

.modal:target, .modal.shown {
.modal:target, .modal.modal--visible {
display: flex;
opacity: 1;
z-index: 999;
Expand All @@ -15534,7 +15534,7 @@ ul .divider::after {
/* The div in the modal dialpog used to create the translucent background */
}

.modal:target .modal-overlay, .modal.shown .modal-overlay {
.modal:target .modal-overlay, .modal.modal--visible .modal-overlay {
position: absolute;
/* Absolute inside of the modal container */
top: 0;
Expand All @@ -15546,8 +15546,8 @@ ul .divider::after {
}

.modal:target .modal-container,
.modal:target .modal-container, .modal.shown .modal-container,
.modal.shown .modal-container {
.modal:target .modal-container, .modal.modal--visible .modal-container,
.modal.modal--visible .modal-container {
animation: slide-down var(--animation-duration) ease 1;
z-index: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $generate-utility: should-generate-classes($MODAL);

/* When the modal dialog is visible */
&:target,
&.shown {
&.modal--visible {
display: flex;
opacity: 1;
z-index: 999;
Expand Down

0 comments on commit 2c3c6d7

Please sign in to comment.