1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-12 04:05:13 -05:00
mail/src/sass/components/_lightbox.scss

130 lines
2.9 KiB
SCSS
Raw Normal View History

2013-09-16 13:46:04 -04:00
.lightbox {
position: relative;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index: 2000;
@include respond-to(desktop) {
backface-visibility: hidden;
}
2013-09-16 13:46:04 -04:00
@include respond-to(desktop) {
margin: 0 auto;
width: $lightbox-width;
max-width: $lightbox-max-width;
height: auto;
text-align: left;
2013-09-16 13:46:04 -04:00
}
.lightbox-body {
2014-04-23 10:29:26 -04:00
position: relative;
height: 100%;
2013-09-16 13:46:04 -04:00
padding: $lightbox-padding;
background: #fff;
backface-visibility: hidden;
display: flex;
flex-direction: column;
@include respond-to(desktop) {
max-height: $lightbox-min-height;
}
2013-09-16 13:46:04 -04:00
header {
flex-shrink: 0;
2013-09-16 13:46:04 -04:00
text-align: center;
position: relative;
button.close {
font-family: $font-family-icons;
position: absolute;
top: 0px;
right: 0px;
display: block;
border: none;
background: none;
2014-06-27 07:05:05 -04:00
padding: 0 0 0 40px;
2013-09-16 13:46:04 -04:00
margin: 0;
color: $color-grey-dark;
outline: none;
&.active {
top: 2px;
right: -2px;
}
2013-09-16 13:46:04 -04:00
}
h2 {
margin: 0;
padding: 0;
font-size: $font-size-bigger;
font-weight: normal;
line-height: 1em;
color: $color-grey-dark;
}
}
.content {
flex-grow: 1;
2013-09-16 13:46:04 -04:00
overflow: hidden;
}
}
}
.lightbox-overlay {
position: absolute;
width: 100%;
height: 100%;
display: none;
2013-09-16 13:46:04 -04:00
top: 0;
left: 0;
z-index: 1000;
2013-10-22 11:04:39 -04:00
background: $color-grey-dark-alpha;
overflow: auto;
@include respond-to(desktop) {
@include scut-vcenter-ib(".lightbox");
text-align: center;
}
2013-09-16 13:46:04 -04:00
&.show {
display: block;
}
2013-09-16 13:46:04 -04:00
/* ngAnimate */
&.show-add {
display: block;
opacity: 0;
@include respond-to(desktop) {
transition: opacity 0.3s;
}
.lightbox-body {
transform: scale(0.7);
@include respond-to(desktop) {
transition: transform 0.3s;
}
}
}
&.show-add-active {
opacity: 1;
.lightbox-body {
transform: scale(1);
}
}
&.show-remove {
display: block;
opacity: 1;
@include respond-to(desktop) {
transition: opacity 0.3s;
}
.lightbox-body {
transform: scale(1);
@include respond-to(desktop) {
transition: transform 0.3s;
}
}
}
&.show-remove-active {
opacity: 0;
.lightbox-body {
transform: scale(0.7);
}
}
2013-09-16 13:46:04 -04:00
}