Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commit8e7850e0fdfa2c371edbc0b2ae8063edc49dcc8d (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-12 10:59:08 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-12 10:59:08 +0800
Files340f2c7ec17cc0cfe3bb6dada1bec48e380db6bd /dist/spectre.css
Spectre-Dark-Gruvbox-8e7850e0fdfa2c371edbc0b2ae8063edc49dcc8d.tar
Spectre-Dark-Gruvbox-8e7850e0fdfa2c371edbc0b2ae8063edc49dcc8d.tar.gz
Spectre-Dark-Gruvbox-8e7850e0fdfa2c371edbc0b2ae8063edc49dcc8d.zip
Parent57f59337e54281121f690b8c601b9d6a01432306 (diff)
update modal and add slide animation for modal
1 files changed, 39 insertions, 7 deletions
-rw-r--r--dist/spectre.css46
diff --git a/dist/spectre.css b/dist/spectre.css
index ad6c78d..862a8b9 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -1480,11 +1480,8 @@ textarea.form-input {
border-bottom: 0.1rem solid #efefef;
margin: .5rem;
}
-.modal.active {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
+.modal {
+ display: none;
position: fixed;
top: 0;
right: 0;
@@ -1493,13 +1490,22 @@ textarea.form-input {
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
+ -ms-grid-row-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
- z-index: 499;
+ opacity: 0;
+}
+.modal.active {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ z-index: 1988;
+ opacity: 1;
}
.modal.active .modal-overlay {
display: block;
@@ -1510,6 +1516,10 @@ textarea.form-input {
left: 0;
background-color: rgba(0, 0, 0, 0.75);
}
+.modal.active .modal-container {
+ -webkit-animation: slide-down 0.216s;
+ animation: slide-down 0.216s;
+}
.modal-container {
display: block;
text-align: left;
@@ -1517,7 +1527,9 @@ textarea.form-input {
padding: 0;
border-radius: .3rem;
background-color: #fff;
- z-index: 999;
+ z-index: 1988;
+ -webkit-animation: slide-up 0.216s;
+ animation: slide-up 0.216s;
box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.3);
}
.modal-container .modal-header {
@@ -1980,3 +1992,23 @@ textarea.form-input {
transform: rotate(360deg);
}
}
+@-webkit-keyframes slide-down {
+ 0% {
+ margin-top: -3rem;
+ opacity: 0;
+ }
+ 100% {
+ margin-top: 0;
+ opacity: 1;
+ }
+}
+@keyframes slide-down {
+ 0% {
+ margin-top: -3rem;
+ opacity: 0;
+ }
+ 100% {
+ margin-top: 0;
+ opacity: 1;
+ }
+}