ydu_depts_rwd/assets/stylesheets/template/modules/ad_banner.scss

90 lines
1.7 KiB
SCSS
Executable File

.widget-adBanner {
.widget-adBanner-content {
width: 100%;
.slide-img {
@include size(100%, 100%);
overflow: hidden;
img {
@include size(100%, auto);
}
}
}
.widget-adBanner-overlay {
display: none !important;
top: 5px;
right: 0;
margin: 0 auto;
padding: 1em;
color: $theme-gray-light;
z-index: 999;
.navigation {
margin: 0;
padding: 0;
color: $theme-gray-light;
list-style: none;
text-align: center;
li {
display: inline-block;
margin: .2em;
cursor: pointer;
&.active {
i {
&:before {
content: "\f111";
}
}
}
}
}
@media (min-width: $screen-sm) {
display: block !important;
}
@media (min-width: $screen-md) {
.caption {
width: 30%;
margin-bottom: 2em;
}
}
}
&.widget1,
&.widget2, {
.widget-adBanner-overlay {
position: absolute;
@extend .response-content;
}
}
&.widget1 {
.widget-adBanner-content {
.slide-img {
max-height: 200px;
@media (min-width: $screen-sm) {
max-height: 300px;
}
@media (min-width: $screen-md) {
max-height: 430px;
}
}
}
}
&.widget2 {
.widget-adBanner-content {
.slide-img {
max-height: 200px;
@media (min-width: $screen-md) {
max-height: 300px;
}
}
}
}
&.widget3 {
.widget-adBanner-content {
.slide-img {
max-height: 200px;
}
}
.widget-adBanner-overlay {
position: absolute;
}
}
}