2013-09-16 13:46:04 -04:00
|
|
|
.lightbox {
|
|
|
|
position: relative;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 2000;
|
2014-06-27 06:38:12 -04:00
|
|
|
@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;
|
2014-04-23 05:15:13 -04:00
|
|
|
text-align: left;
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox-body {
|
2014-04-23 10:29:26 -04:00
|
|
|
position: relative;
|
2013-10-18 20:58:53 -04:00
|
|
|
height: 100%;
|
2013-09-16 13:46:04 -04:00
|
|
|
padding: $lightbox-padding;
|
|
|
|
background: #fff;
|
2014-04-22 05:54:08 -04:00
|
|
|
backface-visibility: hidden;
|
2014-07-21 08:08:10 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2014-04-23 09:24:48 -04:00
|
|
|
|
|
|
|
@include respond-to(desktop) {
|
|
|
|
max-height: $lightbox-min-height;
|
|
|
|
}
|
|
|
|
|
2013-09-16 13:46:04 -04:00
|
|
|
header {
|
2014-07-21 08:08:10 -04:00
|
|
|
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;
|
2013-10-18 20:58:53 -04:00
|
|
|
outline: none;
|
2014-06-27 06:38:12 -04:00
|
|
|
|
|
|
|
&.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 {
|
2014-07-21 08:08:10 -04:00
|
|
|
flex-grow: 1;
|
2013-09-16 13:46:04 -04:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox-overlay {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2014-04-23 09:24:48 -04:00
|
|
|
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;
|
2014-06-16 09:28:27 -04:00
|
|
|
overflow: auto;
|
2014-04-23 05:15:13 -04:00
|
|
|
|
|
|
|
@include respond-to(desktop) {
|
|
|
|
@include scut-vcenter-ib(".lightbox");
|
|
|
|
text-align: center;
|
|
|
|
}
|
2013-09-16 13:46:04 -04:00
|
|
|
|
2014-04-23 09:24:48 -04:00
|
|
|
&.show {
|
|
|
|
display: block;
|
|
|
|
}
|
2013-09-16 13:46:04 -04:00
|
|
|
|
2014-04-23 09:24:48 -04:00
|
|
|
/* ngAnimate */
|
|
|
|
&.show-add {
|
|
|
|
display: block;
|
|
|
|
opacity: 0;
|
2014-06-27 06:38:12 -04:00
|
|
|
@include respond-to(desktop) {
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
2014-04-23 09:24:48 -04:00
|
|
|
.lightbox-body {
|
|
|
|
transform: scale(0.7);
|
2014-06-27 06:38:12 -04:00
|
|
|
@include respond-to(desktop) {
|
|
|
|
transition: transform 0.3s;
|
|
|
|
}
|
2014-04-23 09:24:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.show-add-active {
|
|
|
|
opacity: 1;
|
|
|
|
.lightbox-body {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.show-remove {
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
2014-06-27 06:38:12 -04:00
|
|
|
@include respond-to(desktop) {
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
2014-04-23 09:24:48 -04:00
|
|
|
.lightbox-body {
|
|
|
|
transform: scale(1);
|
2014-06-27 06:38:12 -04:00
|
|
|
@include respond-to(desktop) {
|
|
|
|
transition: transform 0.3s;
|
|
|
|
}
|
2014-04-23 09:24:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.show-remove-active {
|
|
|
|
opacity: 0;
|
|
|
|
.lightbox-body {
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
|
|
|
}
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|