2016-07-28 05:50:35 +08:00
|
|
|
@import "../../stylesheets/variables/_all";
|
2016-05-04 04:40:46 +08:00
|
|
|
|
2016-05-03 06:42:54 +08:00
|
|
|
.container {
|
2016-05-04 04:40:46 +08:00
|
|
|
position: relative;
|
2016-05-03 06:42:54 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 2;
|
2017-03-24 05:52:36 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: auto;
|
2017-05-19 03:58:21 +08:00
|
|
|
order: 1;
|
2016-05-03 06:42:54 +08:00
|
|
|
}
|
|
|
|
|
2016-05-04 04:40:46 +08:00
|
|
|
%ratio {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
padding: 0;
|
|
|
|
padding-bottom: calc(100% * 9 / 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
%ratio-item {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlayWrapper {
|
2016-05-03 06:42:54 +08:00
|
|
|
position: absolute;
|
2016-05-04 04:40:46 +08:00
|
|
|
width: 30%;
|
2016-05-20 23:02:57 +08:00
|
|
|
right: 2%;
|
|
|
|
bottom: 2%;
|
|
|
|
|
|
|
|
@include mq($large-up) {
|
|
|
|
flex-basis: 15%;
|
|
|
|
}
|
2016-05-04 04:40:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.overlayRatio {
|
|
|
|
@extend %ratio;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlay {
|
|
|
|
@extend %ratio-item;
|
2016-05-03 06:42:54 +08:00
|
|
|
}
|