@@ -179,10 +191,10 @@
Do you really wan't to delete all files?
diff --git a/dist/plain-ui.css b/dist/plain-ui.css
index 9d6f953..4ac6a4c 100644
--- a/dist/plain-ui.css
+++ b/dist/plain-ui.css
@@ -4897,15 +4897,19 @@ img.media {
height: 100%;
top: 0;
left: 0;
+ display: flex;
+ visibility: hidden;
+ transition: visibility 0s linear 0.5s;
padding: 1em;
z-index: 20;
- display: flex;
align-items: center;
justify-content: center;
}
.modal__inner {
position: relative;
z-index: 21;
+ transition: transform 0.5s;
+ transform: scale(0);
max-width: 500px;
}
.modal__inner .button {
@@ -4933,10 +4937,22 @@ img.media {
left: 0;
width: 100%;
height: 100%;
- background: rgba(0, 0, 0, 0.87);
+ background-color: transparent;
+ transition: background-color 0.5s;
z-index: 19;
content: "";
}
+.modal--open {
+ display: flex;
+ visibility: visible;
+ transition: visibility 0s linear 0s;
+}
+.modal--open:before {
+ background: rgba(0, 0, 0, 0.87);
+}
+.modal--open .modal__inner {
+ transform: scale(1);
+}
.masonry {
display: flex;
diff --git a/src/scss/components/_button.scss b/src/scss/components/_button.scss
index faa8832..bcc3334 100644
--- a/src/scss/components/_button.scss
+++ b/src/scss/components/_button.scss
@@ -40,6 +40,10 @@
font-size: 0.8em;
}
+ &--outline {
+
+ }
+
&--no-style {
margin: 0;
padding: 0;
diff --git a/src/scss/components/_modal.scss b/src/scss/components/_modal.scss
index eeb49a6..613c7cc 100644
--- a/src/scss/components/_modal.scss
+++ b/src/scss/components/_modal.scss
@@ -17,10 +17,13 @@
top: 0;
left: 0;
+ display: flex;
+ visibility: hidden;
+ transition: visibility 0s linear 0.5s;
+
padding: 1em;
z-index: 20;
- display: flex;
align-items: center;
justify-content: center;
@@ -28,6 +31,9 @@
position: relative;
z-index: 21;
+ transition: transform 0.5s;
+ transform: scale(0);
+
max-width: 500px;
.button {
@@ -62,9 +68,25 @@
left: 0;
width: 100%;
height: 100%;
- background: rgba(0,0,0,.87);
+ background-color: transparent;
+ transition: background-color 0.5s;
z-index: 19;
content: '';
}
+
+ &--open {
+ display: flex;
+ visibility: visible;
+
+ transition: visibility 0s linear 0s;
+
+ &:before {
+ background: rgba(0,0,0,.87);
+ }
+
+ .modal__inner {
+ transform: scale(1);
+ }
+ }
}
}
\ No newline at end of file