gaf-mobile
Version:
GAF mobile Web site
64 lines (52 loc) • 1.1 kB
text/less
@import (reference) '../libs/mixins';
@import (reference) '../themes/variables';
/* Modals module */
// 1. Landscape styling media query
// 2. iOS hack to force close button into view - need better solution
.modal {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: @zindex-modal;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
.fadein;
}
.modal-inner {
margin: 15px;
padding-bottom: 50px; // 2.
z-index: 5;
background-color: @body-bg;
.section-inner {
padding: 15px 20px;
}
&--light {
background-color: @body-bg-light;
color: @quaternary-color;
}
}
.modal-header {
background-color: @quaternary-color-xxdark;
}
.modal-heading {
margin: 0;
color: @septenary-color-xxxlight;
}
// 1.
@media all and (orientation:landscape) and (max-height: 640px) {
.modal {
position: fixed;
top: 0;
}
}
.modal-close {
display: block;
margin-top: 14px;
text-align: center;
}
.modal-close-button {
position: relative;
width: 100%;
}