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

135 lines
1.8 KiB
SCSS

@charset "utf-8";
@import "../initial";
//
// Widget
//
// Widget
// ## gerenral styles
.w-ad-banner {
position: relative;
.cursor {
cursor: pointer;
}
}
.w-ad-banner__wrap {
width: 100%;
}
.w-ad-banner__slide {
width: 100%;
}
.banner-pager {
@include list-reset;
position: absolute;
right: 1em;
top: 1em;
z-index: 200;
li {
display: inline-block;
}
a {
background: $theme-color-main;
display: inline-block;
margin-right: 0.25em;
width: 0.8em;
height: 0.8em;
border-radius: 50%;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
opacity: .5;
}
.active-slide a {
opacity: 1;
}
}
.banner-responsive {
width: 100%;
}
// Widget 1
.layout-slide .ad-banner-widget-1 {
.ad-overlay {
color: #fff;
z-index: 999;
position: absolute;
top: 2em;
left: 4.5em;
h2 {
font-family: $main-font;
font-size: $w-caption-font-size;
margin: 0.5em 0;
}
p {
font-family: $main-font;
font-size: $w-caption-desc;
}
@media (max-width: 767px) {
position: unset;
background: #7B76B0;
padding: 0.8em 0.5em 0.5em 0.5em;
h2 { margin: 0; }
}
}
}
// Widget 2
.ad-banner-widget-2 {
.w-ad-banner__image {
width: 100%;
height: auto;
}
.youtube, .cycle-youtube {
width: 100%;
height: 100%;
}
object, embed {
width: 100%;
height: 100%;
}
.banner-pager {
right: 1em;
bottom: 1em;
z-index: 102;
}
}
// Widget 3
.ad-banner-widget-3 {
.w-ad-banner__wrap {
width: 100%;
}
.w-ad-banner__slide {
width: 100%;
}
.banner-pager {
top: auto;
right: 1em;
bottom: 1em;
}
}
//widget 5
.ba-banner-widget-5 {
.w-ba-banner__image {
height: 5em;
max-width: unset;
overflow: hidden;
margin-bottom: 1.5em;
}
}