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

1212 lines
23 KiB
SCSS

@charset "utf-8";
@import "../initial";
//
// Widget
//
// Widget
// ## gerenral styles
.w-ad-banner{
&:hover{
.button-mid{
opacity: 1;
}
}
.button-mid{
opacity: 0;
}
}
.button-mid{
.prev-button{
height: 2em !important;
width: 2em !important;
font-size: 3em !important;
line-height: 2rem !important;
border-radius: 1em;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: rgba(0,0,0,0.1);
}
}
.next-button{
height: 2em !important;
width: 2em !important;
font-size:3em !important;
line-height: 2rem !important;
border-radius: 1em;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: rgba(0,0,0,0.1);
}
}
}
ul.button-mid{
margin:0;
z-index: 201;
}
.banner-pager .active-slide button{
background: $theme-color-second!important;
}
.w-ba-banner .button-mid {
position: absolute;
width: 100%;
height: 0;
top: 50%;
}
.next-button, .prev-button {
cursor: pointer;
}
iframe{
border: none;
}
.jp-video{
border:0;
}
.w-ba-banner {
position: relative;
overflow: hidden;
width: 100%;
.cursor {
cursor: pointer;
}
.w-ad-banner__caption{
@media(max-width:768px){
h3{
margin-top: 0;
}
}
}
}
.w-ba-banner__wrap {
width: 100%;
max-width: 100%;
height: auto;
}
.w-ba-banner__slide {
width: 100%;
}
.ad-overlay {
color: #333333;
font-family: $main-font;
width: 100%;
bottom: 0;
// background-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000);
@media(max-width: $screen-sm) {
padding: 0.5em 1em;
}
}
.banner-pager {
@include list-reset;
position: absolute;
bottom: 0.5rem!important;
z-index: 100;
text-align:center;
width: 100%;
li {
// height: 3px;
// width: 4%;
// margin: 0 2px;
cursor: pointer;
display: inline-block;
width:auto!important;
}
button {
background: #ffffff;
width: 13px;
height: 13px;
-webkit-box-shadow: 2px 2px 10px #000;
box-shadow: 2px 2px 10px #000;
display: inline-block;
margin-right: 0.25em;
width: 0.8em !important;
height: 0.8em !important;
border-radius: 50%;
cursor: pointer;
border: 0;
}
.active-slide button {
opacity: 1;
background: $theme-color-green;
}
a {
background: white;
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;
cursor:pointer;
border:0;
}
.active-slide a {
opacity: 1;
}
}
.controlplay{
position: absolute;
right: 1em;
top: 3%;
z-index:202;
a {
display: inline-block;
margin-right: 0.25em;
cursor: pointer;
padding: 5px 10px;
border: 1px solid rgba(255, 255, 255, 0.5);
background: rgba(0, 0, 0, 0.2);
i {
font-family: FontAwesome;
position: relative;
font-size: 1rem;
line-height: 1;
color: #FFF;
vertical-align: middle;
font-style: unset;
}
}
.resume-slide i::before{
content:"\f04b"
}
.pause-slide i::before{
content:"\f04c"
}
@media(max-width: $screen-sm) {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
ul.button-mid{
.prev-button{
transition: 0.4s;
position: relative;
float:left;
left: 0.5rem;
font-size: 3rem;
border-radius: 1em;
color:#FF0086;
text-align: center;
line-height: 2.5rem;
top: 50%;
position: absolute;
transform: translateY(-50%);
z-index: 200;
// &:hover {
// background: rgba(0,0,0,0.1);
// }
}
.next-button{
float: right;
transition: 0.4s;
position: relative;
right: 0.5rem;
font-size: 3rem;
border-radius: 1em;
color:#FF0086;
text-align: center;
line-height: 2.5rem;
top: 50%;
position: absolute;
transform: translateY(-50%);
z-index: 200;
// &:hover {
// background: rgba(0,0,0,0.1);
// }
}
}
.banner-responsive {
width: 100%;
}
.background-overlay{
background-color: #F5F5F5;
opacity: 0.95;
transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
height: 100%;
top: 0;
left: 0;
z-index: 100;
position: absolute;
width: 100%;
}
// Widget 13
.ba-banner-widget-13 {
z-index: 0;
@media(min-width:768px){
.w-ba-banner__wrap{
height: 378px!important;
}
.w-ad-banner__image{
position: fixed;
top: -18%;
max-width: unset;
width: 100%;
height: auto;
}
}
@media(max-width:767px){
.ad-overlay{
position: relative!important;
}
}
.youtube, .cycle-youtube {
width: 100%;
height: 100%;
}
object, embed {
width: 100%;
height: 100%;
}
.banner-pager {
right: 1em;
top: -2em;
z-index: 100;
display: none;
}
.button-mid{
z-index: 101;
}
.ad-overlay{
padding-bottom: 1em;
text-align: center;
position: relative!important;
background: #ffd54f!important;
bottom: 0!important;
z-index: 100;
padding-left: 10%;
padding-right: 10%;
color: #434343;
font-size: 19px;
font-weight: 600;
// text-shadow: 1px 1px 1px #0000008c;
h3 {
color: #7f6000;
font-family: Roboto, Arial;
font-weight: 700;
vertical-align: baseline;
font-size: 2.1em;
text-align: center!important;
&:after{
display: none;
}
span{
color: #7f6000;
font-family: Roboto, Arial;
font-weight: 700;
vertical-align: baseline;
justify-content: center;
&:after{
display: none;
}
}
}
h4{
color: #1c4587;
font-family: Roboto, Arial;
font-weight: 700;
vertical-align: baseline;
font-size: 1.4em;
margin-bottom: 1em;
}
}
&,& .jp-jplayer{
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
}
// Widget 14
.ba-banner-widget-14 {
z-index: 0;
.w-ad-banner__image{
filter: brightness(0.6);
&:before{
opacity: 0.5;
background-color: rgba(33, 33, 33, 1);
bottom: 0;
content: "";
display: block;
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
}
}
@media(min-width:1025px){
.w-ad-banner__image{
top: -18%;
}
}
@media(min-width:768px){
.w-ba-banner__wrap{
height: 400px!important;
}
.w-ad-banner__image{
position: fixed;
max-width: unset;
width: 100%;
height: auto;
}
}
.youtube, .cycle-youtube {
width: 100%;
height: 100%;
}
object, embed {
width: 100%;
height: 100%;
}
.banner-pager {
right: 1em;
top: -2em;
z-index: 100;
display: none;
}
.button-mid{
z-index: 101;
}
.ad-overlay{
border-bottom: 12px solid #ffd54f;
text-align: center;
position: absolute;
color: #fff;
bottom: 0!important;
z-index: 100;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
h3{
@media(min-width:768px){
font-size: 3em!important;
}
&:after{
display: none!important;
}
span{
justify-content: center;
color: #fff;
&:after{
display: none!important;
}
}
}
h3 {
color: #fff;
font-family: Roboto, Arial;
font-weight: 700;
vertical-align: baseline;
font-size: 2.5em;
}
h4{
color: #fff;
font-family: Roboto, Arial;
font-weight: 700;
vertical-align: baseline;
font-size: 1.5em;
}
}
&,& .jp-jplayer{
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
}
// Widget 0
.ba-banner-widget-0 {
height: 100vh !important;
z-index: 0;
.w-ba-banner__wrap{
height: 100vh !important;
}
.youtube, .cycle-youtube {
width: 100%;
height: 100%;
}
object, embed {
width: 100%;
height: 100%;
}
.banner-pager {
right: 1em;
top: -2em;
z-index: 100;
display: none;
}
.button-mid{
z-index: 101;
}
.ad-overlay{
text-align: center;
position: relative;
background: none;
color: #fff;
z-index: 100;
padding-left: 10%;
padding-right: 10%;
// text-shadow: 1px 1px 1px #0000008c;
}
img{
position: fixed;
top:0;
@media(max-width: 1500px){
// width: auto;
max-width: unset;
// transform: translateX(-9%);
height: 100vh;
}
}
&,& .jp-jplayer{
@media(min-width:1801px){
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
@media screen and (min-width:1451px) and (max-width:1800px){
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
@media screen and (min-width:1281px) and (max-width:1450px){
.ad-overlay{
bottom: 50%;
position: absolute;
}
}
@media screen and (min-width:1026px) and (max-width:1280px){
.ad-overlay{
bottom: 40%;
position: absolute;
}
}
@media screen and (min-width:$screen-xs) and (max-width:1025px){
.ad-overlay{
bottom: 40%;
position: absolute;
}
}
@media(max-width: $screen-xs){
.ad-overlay{
top: 35%;
position: absolute;
}
}
}
}
// Widget 11
.ad-banner-widget-11 {
ul.button-mid{
.prev-button{
// height: 2em !important;
// width: 2em !important;
font-size: 3em !important;
// line-height: 2rem !important;
border-radius: 1em;
&:hover {
background:none!important;
}
}
.next-button{
// height: 2em !important;
// width: 2em !important;
font-size:3em !important;
// line-height: 2rem !important;
border-radius: 1em;
&:hover {
background:none!important;
}
}
}
.w-ad-banner__image{
height: 650px;
@media(max-width:680px){
height: 320px
}
@media(max-width:820px)and(min-width:681px){
height: 371px;
}
}
.banner-overlay{
padding: 0;
position: absolute;
z-index: 100;
color: #fff;
display: flex;
flex-wrap: wrap;
align-items: center;
bottom: 70px;
h3{
text-align: right;
width: 30%;
background-color: #0684f1b3;
height: 70px;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: end;
font-size: 2em;
padding: 1em;
}
p{
font-family: "Noto Sans TC", sans-serif;
width: 70%;
background-color: #c52077cc;
height: 70px;
margin: 0;
padding: 1em;
display: flex;
align-items: center;
font-size: 1.2em;
}
@media(max-width:768px){
h3{
width: 100%;
height: auto;
justify-content: center;
font-size: 1em;
}
p{
display: none;
}
}
}
.w-ba-banner__caption {
h2 {
font-family: $main-font;
font-size: $w-caption-font-size;
margin: 0.5em 0;
}
}
@media(max-width: $screen-sm) {
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
// Widget 12
.ad-banner-widget-12 {
.w-ad-banner__image{
height: 528px;
@media(max-width:680px){
height: 320px
}
}
&:before{
content: '';
display: block;
position: absolute;
top: 1em;
left: 1em;
background-image: url(/assets/title_topnews.png);
height: 70px;
width: 300px;
z-index: 100;
background-repeat: no-repeat;
background-size: contain;
@media(max-width:768px){
width: 150px;
}
}
.banner-overlay{
text-align: center;
padding:0;
background-color: #13128480;
padding: 10px 10%;
position: absolute;
z-index: 100;
color: #fff;
bottom: 50px;
}
.w-ba-banner__caption {
h3{
font-size: 1.7em;
padding-top: 0;
}
h2 {
font-family: $main-font;
font-size: $w-caption-font-size;
margin: 0.5em 0;
}
p {
font-family: $main-font;
margin-bottom: 0;
padding-bottom: 0;
}
@media(max-width:768px){
h3{
width: 100%;
height: auto;
justify-content: center;
font-size: 1em;
}
p{
display: none;
}
}
}
@media(max-width: $screen-sm) {
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
// Widget 15
.ad-banner-widget-15 {
.banner-overlay{
padding: 3.5em 5em;
background-image: linear-gradient(180deg, transparent 0, #00000066 40%, #000000a3);
position: absolute;
z-index: 100;
color: #333;
}
.w-ba-banner__caption {
h3{
font-family: 'Noto Sans TC', sans-serif;
font-weight: 700;
color: #333;
padding: 0;
@media(min-width:769px){
font-size: 3em;
}
}
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: $screen-sm) {
.ad-overlay {
padding:1em;
}
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
// Widget 16
.ad-banner-widget-16 {
.controlplay{
display: none;
}
.w-ba-banner__wrap{
position: relative;
overflow: unset !important;
margin: 2em 0;
}
.cycle-carousel-wrap{
@media(min-width:769px){
display: flex;
justify-content: flex-start;
}
}
.w-ad-banner__slide{
@media(min-width:769px){
width: 25%;
}
.liWrapper{
&:after{
content: "";
border-radius: 5px;
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
opacity: 0;
padding: 3px;
border: 3px solid #d000c4;
border-image-source: linear-gradient(180deg, #d000c4 0%, #247fdd 41.97%, #baf2ff 70.46%, #006ff8 98.45%);
border-image-slice: 10;
}
}
background-color: #fff;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
-o-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
&:hover{
z-index: 101 !important;
-webkit-transform: scale(1.25, 1.25);
-ms-transform: scale(1.25, 1.25);
transform: scale(1.25, 1.25);
-webkit-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589);
-moz-box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589);
box-shadow: 0px 0px 10px 2px rgba(212, 56, 212, 0.589);
.banner-overlay{
display: block;
}
.liWrapper{
&:after{
opacity: 1;
z-index: 100;
}
}
}
}
.banner-overlay{
display: none;
position: absolute;
color: #ffffff;
text-shadow: 2px 2px 3px #000000;
font-size: 1rem;
bottom: 0;
width: 100%;
padding: 1em;
text-align: center;
background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.7) 40%, #000);
}
.w-ba-banner__caption {
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: $screen-sm) {
// .ad-overlay {
// padding:1em;
// position: relative;
// background: #333333;
// }
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
// Widget 1
.ad-banner-widget-1 {
.banner-overlay{
padding: 3.5em 5em;
background-image: linear-gradient(180deg, transparent 0, #00000066 40%, #000000a3);
position: absolute;
z-index: 100;
color: #fff;
}
.w-ba-banner__caption {
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: $screen-sm) {
.ad-overlay {
padding:1em;
position: relative;
background: #333333;
}
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
// Widget 2
.ba-banner-widget-2 {
.w-ba-banner__image {
width: 100%;
height: auto;
}
.youtube, .cycle-youtube {
width: 100%;
height: 100%;
}
object, embed {
width: 100%;
height: 100%;
}
}
// Widget 3
.ba-banner-widget-3 {
.banner-pager .active-slide a {
background: $theme-color-second !important;
}
.w-ba-banner__wrap {
width: 100%;
}
.w-ba-banner__slide {
width: 100%;
position: relative;
}
.banner-pager {
right: 0;
bottom: 2em;
li { height: unset; width: unset; }
}
ul.button-mid { display: none; }
}
//Widget 4
.ba-banner-widget-4 {
.w-ba-banner__wrap {
text-align: center;
// img { margin-bottom: 0.5rem; }
}
}
//Widget 5
.ba-banner-widget-5 {
margin: 1em 0;
.slide-img {
padding: 0;
}
.slide-content {
z-index: 200;
font-family: $main-font;
padding: 1em 7em 1em 1em;
h3 {
font-size: 1rem;
margin: 0.5em 0;
color: #12517a;
}
div {
white-space: normal;
word-break: break-all;
font-size: 1rem;
color: #373634;
}
}
.banner-pager {
li { height: unset; width: unset; }
a { background: #a0d2f3;}
}
@media(max-width: $screen-sm) {
.slide-content {
padding: 0.5em 1em;
position: relative;
background: #a0d2f3;
h3 { font-size: 1em; }
div { font-size: 0.75em; }
}
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
@media(max-width: $screen-sm -1) {
ul.button-mid.next-button, ul.button-mid.prev-button{
top: 35%;
transform: translateY(-35%);
}
.slide-content h3, .slide-content div { color: $theme-white; }
.w-ba-banner__wrap { overflow: visible;}
}
}
// Widget 7
.ba-banner-widget-7 {
position: relative;
@media(min-width:1024px){
display: flex;
flex-direction: row-reverse;
.w-ba-banner__wrap{
flex: 0 0 60%;
}
.ad-overlay{
position: relative;
background: none;
}
.banner-overlay{
padding:2em 1em;
}
background-color:$theme-color-main;
}
.w-ba-banner__caption {
color: #fff;
}
@media(max-width:$screen-xs){
height:auto!important;
}
@media (max-width: 769px){
.ad-overlay, .banner-overlay {
padding: 0.5em 1em;
}
.w-ad-banner__caption{
background-color:$theme-color-main;
}
}
}
// widget8
.ba-banner-widget-8{
position: relative;
.w-ba-banner__slide{
padding: 0.5em;
overflow: hidden;
}
.banner-overlay {
// border-bottom: 3px solid $theme-color-second;
text-align: center;
width: 100%;
visibility: unset !important;
overflow: hidden;
h3{
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: pre-line;
}
h3,p{
font-size: 1.25em;
}
p{
padding: 0 0.2em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
}
}
// widget9
.ba-banner-widget-9{
iframe{
border-radius: 2em;
border:1px solid #fff;
padding: 10px;
background: #4cae4c8c;
&:hover{
transform: translate(-10px, -10px);
transition: .5s;
box-shadow: 30px 30px 60px #0000008a;
}
}
&::before{
position: absolute;
content: '';
width: 60%;
height: 100%;
background: linear-gradient(to right, $theme-color-second 0%, #03162700 100%);
display: block;
z-index: 100;
@media(max-width:768px){
}
}
height: 90vh !important;
.w-ba-banner__slide{
-webkit-filter: brightness(50%);
filter: brightness(50%);
position: fixed!important;
}
.w-ba-banner__wrap{
height: 90vh !important;
}
.jp-jplayer{
position: fixed;
}
.jp-video{
height: 90vh !important;
}
.banner-overlay{
background: none!important;
z-index:100;
position: absolute;
@media(min-width:769px){
padding-bottom: 24vh!important;
}
@media(max-width: 768px){
position: absolute!important;
padding-bottom:16vh !important;
}
}
.banner-overlay{
color: #fff;
padding: 3.5em 5em;
background-image: linear-gradient(180deg, transparent 0, #00000066 40%, #000000a3);
.ad-overlay2{
margin: 0 3em;
}
}
.w-ba-banner__caption {
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: $screen-sm) {
.ad-overlay {
padding:1em;
position: relative;
background: #333333;
}
.controlplay {
right: 0;
a { padding: 0 5px;}
a i { font-size: 0.75em; }
}
}
}
//Widget 10
.ba-banner-widget-10 {
margin-bottom: 1em;
.w-ad-banner__caption{
padding: 2em 1em;
background-image: linear-gradient(180deg, transparent 0, #00000066 40%, #000000a3);
position: absolute;
width: 100%;
bottom: 0;
color: #fff;
@extend .i-title;
}
.w-ba-banner__wrap {
text-align: center;
@media(min-width: $screen-sm){
display: grid;
grid-template-areas:
"g1 g2 g3"
"g1 g4 g5";
grid-gap: 2% 1%;
}
.bannerimgwrapper{
overflow: hidden;
position: relative;
display: block;
@media(max-width: $screen-sm){
margin-bottom: 1em;
}
&:hover{
img{
transform: scale(1.1) !important;
-webkit-transition: .3s ease-out;
-moz-transition: .3s ease-out;
-ms-transition: .3s ease-out;
-o-transition: .3s ease-out;
transition: .3s ease-out;
}
}
&:nth-child(1){
grid-area: g1;
-ms-grid-row: 1;
-ms-grid-column: 1;
-ms-grid-row-span: 3;
-ms-grid-column-span: 7;
}
&:nth-child(2){
grid-area: g2;
-ms-grid-row: 1;
-ms-grid-column: 9;
-ms-grid-row-span: 1;
-ms-grid-column-span: 7;
}
&:nth-child(3){
grid-area: g3;
-ms-grid-row: 1;
-ms-grid-column: 17;
-ms-grid-row-span: 1;
-ms-grid-column-span: 7;
}
&:nth-child(4){
grid-area: g4;
-ms-grid-row: 3;
-ms-grid-column: 9;
-ms-grid-row-span: 1;
-ms-grid-column-span: 7;
}
&:nth-child(5){
grid-area: g5;
-ms-grid-row: 3;
-ms-grid-column: 17;
-ms-grid-row-span: 1;
-ms-grid-column-span: 7;
}
}
}
}