2016-05-04 04:40:46 +08:00
|
|
|
@import "imports/ui/stylesheets/variables/_all";
|
|
|
|
|
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;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|