orbit_demo_new_old/assets/stylesheets/template/modules/video.scss

963 lines
20 KiB
SCSS

@charset "utf-8";
@import "../initial";
.video_desc{
cite{
display: none;
}
}
.video_tag .video_tags2{
display: none;
&:first-child{
display: block!important;
}
}
.Video__Player{
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
width: 100%;
height: 100%;
.Video__PlayerButton{
display: inline-block;
padding-bottom: 0px;
padding-top: 0px;
border-radius: 50%;
border: 0px;
background-color: $theme-color-second;
background: url(/assets/btn-play.svg) no-repeat;
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
transition: 0.5s;
width: 60px;
height: 60px;
&:hover{
width: 80px;
height: 80px;
}
}
}
.view_info{
max-height: 100%;
border-radius: 2px;
font-size: 0.875rem;
font-weight: normal;
letter-spacing: 0.3px;
text-align: center;
display: flex;
-webkit-box-align: center;
align-items: center;
position: absolute;
padding: 0px 8px;
background-color: #000000cc;
color: rgb(255, 255, 255);
z-index: 10;
top: 10px;
left: 10px;
border: 1px solid transparent;
line-height: 1.45;
span{
color:#fff;
}
&:before{
content: "";
display: inline-block;
margin-right: 5px;
width: 14px;
height: 10px;
background: url(/assets/icon-view@2x.png) no-repeat;
position: relative;
background-size: contain;
}
}
.w-video_data{
padding-bottom: 1em;
position: relative;
.video_keyword{
display: none;
}
.video_tag{
top:10px;
max-height: 100%;
border: 0;
border-radius: 2px;
background-color: transparent;
font-size: 0.875rem;
font-family: "Noto Sans TC", PingFangTC, , "Microsoft JhengHei", sans-serif;
font-weight: normal;
letter-spacing: 0.3px;
text-align: center;
display: flex;
-webkit-box-align: center;
align-items: center;
position: absolute;
padding: 0px 8px;
color: #fff;
z-index: 5;
.video_tags2 {
&:first-child{
border:1px #fff solid;
border-radius: 2px;
background-color: #1515154d;
}
float: left;
padding: 0 0.5em;
}
}
}
.view_info{
img{
width: 30px!important;
}
}
.videohover{
position: absolute;
width: 100%;
height: 100%;
transition: 0.3s;
top: 0;
opacity: 0;
}
.video_data{
z-index: 1!important;
position: relative!important;
&:hover{
.video_title{
.video_link{
color: $theme-color-second;
text-decoration: underline;
}
}
.videohover{
position: absolute;
width: 100%;
height: 100%;
transition: 0.3s;
z-index: 2;
opacity: 1;
}
}
&:hover{
@media(min-width: 1025px){
.video_snapshot{
box-shadow: 4px 4px 5px 1px rgba(0, 0, 0, 0.3);
-webkit-transform: scale(1.1) ;
-ms-transform: scale(1.1) ;
transform: scale(1.1) ;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
-ms-transition: all .3s ease;
-o-transition: all .3s ease;
transition: all .3s ease;
}
.video_linkwrapper2{
.video_snapshot{
-webkit-transform: scale(1.1) !important;
-ms-transform: scale(1.1) !important;
transform: scale(1.1) !important;
}
}
}
.video_tag{
display: none;
}
}
img{
width: 100%;
height: 100%;
object-fit: cover;
}
@media(max-width: 768px){
width: 100%;
}
}
.video_data-widget-1{
.video_info{
margin:0.5em 0;
}
}
.video_data-widget-2{
cite{
display: none;
}
.col-sm-4{
@media(min-width:768px){
width: 33.33333333%;
float: left;
}
}
.video_data_wrap{
@media(min-width:$screen-xs){
display: flex;
flex-wrap: wrap;
}
}
.video_desc{
display: none;
}
.video_info{
margin:0.5em 0;
}
.video_link{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
.video_keyword{
display: none;
}
.video_data{
&:first-child{
.video_tags2{
display: block!important;
}
.video_linkwrapper2{
@media(min-width:$screen-xs)and(max-width:768px){
height: 24em;
}
}
width: 100% ;
margin-bottom: 2em;
@media(max-width:1024px){
width: 100%!important;
}
@media(max-width:$screen-xs){
width: 100.5vw !important;
margin-left: -6vw;
}
.video_desc{
.video_link{
&:hover{
&:before{
background-color: #c21000!important;
}
}
&:before{
content: " ▶ 觀看節目"; /* Font Awesome 播放圖示 + 文字 */
font-weight: 900;
position: absolute;
display: inline-flex;
align-items: center;
gap: 5px;
display: inline-flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
padding: 0px 15px;
height: 44px;
border-radius: 22px;
line-height: 42px;
border: 1px solid transparent;
background-color: $theme-color-second;
color: rgb(255, 255, 255);
font-size: 1.25rem;
letter-spacing: 0.3px;
font-weight: normal;
white-space: nowrap;
transition: 0.3s;
bottom: 3em;
}
}
}
.videohover{
display: none!important;
}
.video_tag{
position: absolute;
left: 6em;
bottom: 8em;
top: auto;
display: block!important;
background-color:transparent;
border:0;
}
.video_desc{
display: block;
height: 4.1em;
overflow: hidden;
margin-bottom: 8em;
}
.video_group_time{
color: #fff!important;
position: absolute;
bottom: 4.5em;
margin-left: 10.5em;
}
.view_info{
display: none;
}
@media(min-width:767px){
&:before{
content: '';
position: absolute;
bottom: 0;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
top: 0;
z-index: 1;
width: 100%;
height: 100%;
}
}
.video_info{
position: absolute;
z-index: 2;
bottom: 0;
color: #fff;
a{
color: #fff;
}
@media(min-width:767px){
padding: 2em 5em;
width: 55%;
}
@media(max-width:820px)and(min-width:767px){
.video_title h5{
font-size: 1.6em;
}
}
@media(max-width:767px){
margin: 0;
padding: 1em;
background-color: #444;
position: relative;
padding-bottom: 4em;
padding-top: 3em;
.video_title h5{
font-size: 1.2em;
text-align: center;
}
.video_tag{
left: 12%;
bottom: 10.5em;
flex-wrap: wrap;
justify-content: center;
display: flex!important;
width: 75%;
.video_keyword{
margin-top: 0.5em;
}
}
.video_link:before{
bottom: 4em;
left: 32vw;
}
.video_group_time{
margin-left: 0;
width: 100%;
text-align: center;
left: 0;
bottom:2.5em;
}
}
}
.video_linkwrapper2{
@media(min-width:1025px){
height: 40.6em;
}
@media(min-width:769px)and(max-width:1024px){
height: 32.6em!important;
}
@media(max-width: 821px)and(min-width: 769px){
height: 25.6em!important;
}
@media(max-width:$screen-xs){
height: 14.5em!important;
}
}
}
}
}
.video_data-widget-3{
@media(max-width:768px){
margin-bottom: 3em;
}
.btnwrapper{
@media(max-width:768px)and(min-width:$screen-xs){
top:100%!important;
width: 14%!important;
left: 44%!important;
}
@media(max-width:$screen-xs){
top: 100%!important;
width: 24% !important;
left: 38% !important;
}
}
.video_data_wrap{
@media(min-width:$screen-xs){
display: flex;
flex-wrap: wrap;
}
}
.video_data{
@media(max-width:821px)and(min-width:$screen-xs){
width: 48vw !important;
float: none;
}
@media(max-width:$screen-xs){
width: 92.5vw !important;
margin-left: 0 !important;
margin-right: 1em !important;
float: none;
}
}
.video_desc{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 4.5em;
line-height: 1.5em;
min-height: 4.5em;
}
.video_info{
margin:0.5em 0;
}
.video_link{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
}
.video_data-widget-5{
margin-bottom: 1em!important;
.video_data{
.video_group_time{
display: none;
}
.video_desc{
display: none;
}
}
span.video-date {
display: block;
font-size: 0.875rem;
font-family: "Noto Sans TC", PingFangTC, , "Microsoft JhengHei", sans-serif;
font-weight: normal;
letter-spacing: 0.3px;
color: #8f8f8f;
line-height: 1.6;
cursor: pointer;
}
margin-bottom: 1em;
.cycle-pager{
font-size: 1.25rem;
font-family: "Noto Serif TC", serif;
font-weight: bold;
h5{
font-size: 1.25rem;
border-bottom: 1px solid #ccc;
padding: 0.5em 0;
margin-top: 0;
}
}
.video_title h5{
@extend .i-title;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.view_info{
float: right;
}
.view_info img{
margin-right: 5px;
}
.Video__Player{
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
width: 100%;
height: 100%;
.Video__PlayerButton{
display: inline-block;
padding-bottom: 0px;
padding-top: 0px;
border-radius: 50%;
border: 0px;
background-color: $theme-color-second;
background: url(/assets/btn-play.svg) no-repeat;
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
transition: 0.5s;
width: 60px;
height: 60px;
&:hover{
width: 80px;
height: 80px;
}
}
}
.view_info{
max-height: 100%;
border-radius: 2px;
font-size: 0.875rem;
font-weight: normal;
letter-spacing: 0.3px;
text-align: center;
display: flex;
-webkit-box-align: center;
align-items: center;
position: absolute;
padding: 0px 8px;
background-color: #000000cc;
color: rgb(255, 255, 255);
z-index: 10;
top: 10px;
left: 10px;
border: 1px solid transparent;
line-height: 1.45;
span{
color:#fff;
}
&:before{
content: "";
display: inline-block;
margin-right: 5px;
width: 14px;
height: 10px;
background: url(/assets/icon-view@2x.png) no-repeat;
position: relative;
background-size: contain;
}
}
.cycle-sentinel {
display: none !important;
}
.pager-controls{
position: absolute;
right: 1em;
bottom: 1em;
.prev-btn,.next-btn{
color: #909090;
background: #fff;
border-radius: 50%;
border: none;
height: 2.5em;
width: 2.5em;
transition: .3s;
&:hover{
filter: drop-shadow(rgb(214, 214, 214) 0px 0px 0.1rem);
}
}
@media(max-width:768px){
position: relative;
float: right;
right: 0;
bottom: 0;
}
}
.video_data_wrap{
@media(min-width:$screen-xs){
display: flex;
flex-wrap: wrap;
}
}
.video_data{
@media(max-width:$screen-xs){
width: 88.5vw !important;
margin-left: 0 !important;
margin-right: 1em !important;
float: none;
}
}
.video_desc{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 4.5em;
line-height: 1.5em;
}
.video_info{
margin:0.5em 0;
}
.video_link{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
}
.video_detail{
@media(max-width:820px){
.video_box_wrap{
width: 100vw!important;
left: -1em!important;
margin: 0;
}
}
h3{
margin-top: 0.5em;
}
}
.movie_desc{
clear: both;
letter-spacing: 0.3px;
color: #8f8f8f;
line-height: 1.8;
}
.video_title {
clear: both;
}
.video_data{
list-style: none;
}
.video_tag{
display: flex;
float: left;
}
.view_info{
margin-bottom: 1em;
}
.video_group_time{
clear: both;
}
.video_group_time{
color: #8f8f8f!important;
}
.movietitle{
margin-bottom: 15px;
width: 100%;
border-bottom: 1px solid #ccc;
clear: both;
font-family: "Noto Serif TC", serif;
font-weight: bold;
h4{
width: 100px;
border-bottom: 2px solid #141414;
padding-bottom: 0.5em;
margin-bottom: 0;
}
}
.imglst_desc{
.cite{
font-style: normal !important;
}
.video_tag{
background-color: transparent;
color: $theme-color-second;
font-weight: normal;
letter-spacing: 0.3px;
text-align: center;
display: inline-block;
padding: 0px 7px;
max-height: 100%;
border-radius: 2px;
margin-bottom: 1em;
&:first-child{
border: 1px solid;
}
}
}
.video_title {
clear: both;
@extend .i-title;
}
.video_data_wrap{
padding-right: 0.4375em;
padding-left: 0.4375em;
}
.imglst_desc{
margin: 1em 0;
}
.category_box {
padding: 0;
border: 1px solid #6868688f;
border-radius: 0.5em 0 0 0.5em;
overflow: hidden;
}
.search_box{
padding: 0;
border-radius: 0 0.5em 0.5em 0;
overflow: hidden;
border: 1px solid #6868688f;
}
.video_linkwrapper{
position:relative;
height: 12em;
overflow:hidden;
width: 100%;
img{
width: 100%;
}
}
.video_desc {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
padding-bottom: 0;
}
.video_data-widget-10{
padding-top: 2em;
.video_info{
margin:0.5em 0;
}
.video_data{
@media(max-width:820px)and(min-width: $screen-xs){
width: 50%!important;
}
}
}
.video_linkwrapper10{
position: relative;
overflow: hidden;
height: 9.5em;
@media(max-width: 1025px)and(min-width: 821px){
height:7.5em;
}
@media(max-width: 821px)and(min-width: 769px){
height:13em;
}
@media(max-width:768px)and(min-width: 600px){
height: 12em;
}
@media(max-width: $screen-xs){
height:13em;
}
}
.video_linkwrapper{
@media(max-width: 1025px)and(min-width: 821px){
height:10.5em;
}
@media(max-width: 821px)and(min-width: 769px){
height:8em;
}
@media(max-width:768px)and(min-width: 600px){
height: 23.5em;
}
@media(max-width: $screen-xs){
height: 12em;
}
}
.video_linkwrapper2{
position:relative;
height: 13.5em;
overflow:hidden;
@media(max-width: 1025px)and(min-width: 769px){
height:10em;
}
@media(max-width: 821px)and(min-width: 768px){
height:7.5em;
}
@media(max-width:767px)and(min-width:$screen-xs){
height: 22.5em;
}
@media(max-width:$screen-xs){
height: 12em;
}
}
.video_linkwrapper3{
position:relative;
height: 13.5em;
overflow:hidden;
@media(max-width: 1025px)and(min-width: 821px){
height:10em;
}
@media(max-width: 821px)and(min-width: 769px){
height: 7.8em;
}
@media(max-width:768px)and(min-width:$screen-xs){
height: 12em;
}
@media(max-width: $screen-xs){
height:12em;
}
}
.video_linkwrapper5{
position:relative;
height: 27em;
overflow:hidden;
@media(max-width: 1025px)and(min-width: 821px){
height:21.5em;
}
@media(max-width: 821px)and(min-width: 769px){
height: 7.8em;
}
@media(max-width:768px)and(min-width:$screen-xs){
height: 25em;
}
@media(max-width: $screen-xs){
height:12em;
}
}
.video_group_time{
q{
margin-left: 0.5em;
}
q::before {
display: none!important;
}
q::after {
display: none!important;
}
}
.video_data-modal-view .play_icon{
height: 55px;
}
.video_box_wrap{
box-shadow: #15151580 0px 2px 10px 0px;
margin-bottom: 1em;
}
.video_data-index-1{
.view_info{
position: relative;
}
}
.video_data-post-agency-1{
.view_info{
position: relative;
}
}
.video_data-index-2{
.video_tag{
display: block!important;
}
}
.video_data-index-4{
.i-annc__page-title{
display: none;
}
.category_box{
border:0;
display: flex;
justify-content: center;
}
button.category-btn{
margin: 0.5em;
display: inline-flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
padding: 0px 15px;
height: 36px;
border-radius: 18px;
line-height: 34px;
border: 1px solid rgb(204, 204, 204);
background-color: rgb(255, 255, 255);
color: rgb(20, 20, 20);
font-size: 1rem;
font-family: "Noto Sans TC", PingFangTC, , "Microsoft JhengHei", sans-serif;
letter-spacing: 0.3px;
font-weight: normal;
white-space: nowrap;
transition: 0.3s;
&:hover{
background-color: $theme-color-second;
color: #ffffff;
}
&:active{
background-color: $theme-color-second;
color: #ffffff;
}
}
// .video_linkwrapper2{
// height: 9.5em;
// }
.video_desc{
letter-spacing: 0.3px;
color: #8f8f8f;
line-height: 1.6;
max-height: 5em;
}
.video_info{
margin:0.5em 0;
}
.video_link{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
.video_tag{
top:5px;
left: 10px;
max-height: 100%;
border: 0;
border-radius: 2px;
background-color: transparent;
font-size: 0.875rem;
font-family: "Noto Sans TC", PingFangTC, , "Microsoft JhengHei", sans-serif;
font-weight: normal;
letter-spacing: 0.3px;
text-align: center;
display: flex;
-webkit-box-align: center;
align-items: center;
position: absolute;
padding: 0px 8px;
color: #fff;
z-index: 5;
.video_tags2 {
float: left;
min-width: 5em;
border: 1px solid;
border-radius: 2px;
background-color: #1515154d;
}
}
}