Ghost/ghost/admin/assets/sass/components/modals.scss

163 lines
2.7 KiB
SCSS
Raw Normal View History

// ------------------------------------------------------------
2014-07-30 09:08:54 +04:00
// Modals
//
// Styles for the modal component
//
// * Outer Container
// * Inner Container
// * Content
// * Modifiers
// ------------------------------------------------------------
//
// Outer Container
2014-07-30 09:08:54 +04:00
// --------------------------------------------------
.modal-container {
2014-07-30 09:08:54 +04:00
display: none;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1040;
2014-07-30 09:08:54 +04:00
overflow-x: auto;
overflow-y: scroll;
transition: all 0.15s linear 0s;
transform: translateZ(0);
2014-07-30 09:08:54 +04:00
}
.fade {
opacity: 0;
transition: opacity 0.2s linear 0s;
transform: translateZ(0);
2014-07-30 09:08:54 +04:00
&.in {
opacity: 1;
}
}
.modal-background {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
background: rgba(0,0,0,0.6);
2014-07-30 09:08:54 +04:00
}
//
// Inner Container
// --------------------------------------------------
.modal {
2014-07-30 09:08:54 +04:00
left: 50%;
right: auto;
z-index: 1050;
2014-07-30 09:08:54 +04:00
width: 450px;
margin-left: auto;
margin-right: auto;
padding-top: 30px;
padding-bottom: 30px;
pointer-events: auto;
@media (max-width: 900px) {
width: 100%;
2014-07-30 09:08:54 +04:00
padding: 10px;
margin-left: 0;
2014-07-30 09:08:54 +04:00
};
button {
min-width: 100px;
}
.image-uploader,
.pre-image-uploader {
margin: 0;
}
}//.modal
2014-07-30 09:08:54 +04:00
.modal-action {
@extend .modal;
2014-07-30 09:08:54 +04:00
padding: 60px 0 30px;
@media (max-width: 900px) {
2014-07-30 09:08:54 +04:00
padding: 30px 0;
}
}
//
// Content
// --------------------------------------------------
2014-07-30 09:08:54 +04:00
.modal-content {
position: relative;
padding: 18px;
background-clip: padding-box;
background-color: #FFFFFF;
2014-10-26 20:07:35 +03:00
border-radius: $border-radius;
2014-07-30 09:08:54 +04:00
box-shadow: rgba(0,0,0,0.2) 0 0 0 6px;
.close {
position: absolute;
top: 19px;
right: 19px;
z-index: 9999;
2014-07-30 09:08:54 +04:00
width: 16px;
padding: 0;
margin: 0;
border: none;
@include icon($i-close, 1.4rem, $midgrey) {
transition: color 0.3s linear;
2014-07-30 09:08:54 +04:00
};
2014-07-30 09:08:54 +04:00
&:hover:before {
color: $grey;
}
}
}//.modal-content
2014-07-30 09:08:54 +04:00
.modal-header {
position: relative;
h1 {
display: inline-block;
margin: 0;
font-size: 1.85em;
font-weight: 100;
}
}
.modal-body {
position: relative;
overflow-y: auto;
}
.modal-footer {
margin-top: 20px;
2014-07-30 09:08:54 +04:00
.reject-button-class {
@extend .btn;
2014-07-30 09:08:54 +04:00
}
}
//
// Modifiers
// --------------------------------------------------
2014-07-30 09:08:54 +04:00
.modal-style-wide {
width: 550px;
@media (max-width: 900px) {
2014-07-30 09:08:54 +04:00
width: 100%;
}
}
.modal-style-centered {
text-align: center;
}