Summary Files Commits Branches @commit @diff @stats
path: root / src / modals.less
diff options
context:
space:
mode:
Commit1f9f807534108fe3412e1c2e7bf9d21e19e78f0d (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-24 18:07:42 +0800
Committer
 GitHub <noreply@github.com>
2017-02-24 18:07:42 +0800
Filesf438aeb51e678535de131827f3f56c073be4a670 /src/modals.less
Spectre-Dark-Gruvbox-1f9f807534108fe3412e1c2e7bf9d21e19e78f0d.tar
Spectre-Dark-Gruvbox-1f9f807534108fe3412e1c2e7bf9d21e19e78f0d.tar.gz
Spectre-Dark-Gruvbox-1f9f807534108fe3412e1c2e7bf9d21e19e78f0d.zip
Parent48f0d7e0e6d6d6569dbf98dd56091466520ae206 (diff)
Parent408ea5b6b0c9874b7b74601259239271b253d554 (diff)
Merge pull request #139 from picturepan2/feature/new-doc-page
Feature/new doc page
1 files changed, 15 insertions, 14 deletions
-rw-r--r--src/modals.less29
diff --git a/src/modals.less b/src/modals.less
index cc2e73d..306344b 100644
--- a/src/modals.less
+++ b/src/modals.less
@@ -7,10 +7,12 @@
left: 0;
opacity: 0;
overflow: hidden;
+ padding: @layout-gutter;
position: fixed;
right: 0;
top: 0;
+ &:target,
&.active {
display: flex;
opacity: 1;
@@ -25,13 +27,21 @@
right: 0;
top: 0;
}
+
.modal-container {
animation: slide-down .216s;
+ max-width: 64rem;
+ }
+ }
+
+ &.modal-sm {
+ .modal-container {
+ max-width: 32rem;
}
}
}
+
.modal-container {
- animation: slide-up .216s;
background: #fff;
border-radius: @border-radius;
display: block;
@@ -39,36 +49,27 @@
padding: 0;
.shadow;
text-align: left;
+
z-index: 1988;
.modal-header {
padding: 1.5rem;
.modal-title {
- font-size: 1.5rem;
+ font-size: 1.6rem;
margin: 0;
}
}
+
.modal-body {
max-height: 50vh;
overflow-y: auto;
padding: 1.5rem;
position: relative;
}
+
.modal-footer {
padding: 1.5rem;
text-align: right;
}
}
-@media screen and (min-width: 640px) {
- .modal-container {
- width: 64rem;
- }
-}
-@media screen and (min-width: 320px) {
- .modal-sm {
- .modal-container {
- width: 32rem;
- }
- }
-}