@charset "utf-8"; @import "../initial"; .widget-gallery{ position:relative; } .index-pic{ overflow: hidden; padding: 0; .img-thumbnail{ width: 100%; } &:hover{ img{ transform: scale(1.15) !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; } } } // Gallery MODULES .widget-gallery { .widget-title { @extend .unity-title; } .widget-content { position: relative; } &.widget1 { .cycle-carousel-wrap{ display: flex; align-items: baseline; } .gallery-widget-title{ float: left; width: 150px; display: inline-block; padding: 5px 0 0 20px; position: relative; @media(max-width:$screen-xs){ float: none; width: 100%; } &:before { content: ""; display: inline-block; width: 1px; height: 140px; margin: 0; overflow: hidden; background: #fff; position: absolute; top: -100px; left: 0; } .en { float: left; font-size: 1.5em; line-height: 1em; color: #FFF; font-weight: bold; } .ch { float: left; font-size: 1em; line-height: 1em; color: #FFF; display: inline-block; margin: 8px 0 0 0; } } .mask_title { color: #000000; text-align: center; margin: 0; padding: 8px 10px 10px; background: #fff; display: block; font-size: 1.2em; line-height: 1.7em; width: 100%; white-space: pre-line; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; height: 4em; } .button-mid{ position: absolute; width: 7%; height: 0; top: -2em; right: 0; min-width: 100px; } .banner-pager { position:relative; text-align: center; margin-top: 10px; } .banner-pager span { display: inline-block; width: 10px; height: 10px; margin: 0 4px; background: #ccc; border-radius: 50%; cursor: pointer; } .banner-pager .cycle-pager-active { background: $theme-color-second; } .widget-content { overflow: hidden; .album-item { display: flex; flex-direction: column; } .widget-pic { display: inline-block; padding: 0.0625em; text-align: center; margin-left: 1em; @media(max-width:$screen-xs){ width: 100vw !important; margin: 0!important; } @include size(20%, auto); img { @include size(100%, 100%); } } } } &.widget2 { .col-md-6{ @media(min-width: 768px){ width: 50%; float: left; } } .widget-content { width: 100%; // margin-left: -0.3125em; // margin-right: -0.3125em; .widget-pic { margin-bottom: 0.625em; // padding-left: 0.3125em; // padding-right: 0.3125em; img { @include size(100%, auto); } } } } &.widget6 { .widget-content { overflow: hidden; .album-item { display: flex; flex-direction: column; } // .cycle-carousel-wrap{ // @media(min-width: $screen-md){ // margin-left: -300px!important; // } // @media(max-width:$screen-md )and(min-width:$screen-xs){ // margin-left: -100px!important; // } // @media(max-width: $screen-xs){ // margin-left: 40px!important; // } // } .widget-pic { margin-right:1em; border-radius: 10px; behavior: url("/assets/ie_support/PIE2/PIE.htc"); border: 2px solid $theme-color-second; overflow: hidden; display: inline-block; padding: 0.0625em; text-align: center; // @media(min-width: $screen-md){ // width:600px !important; // } @media(max-width:$screen-md )and(min-width:$screen-xs){ width:33vw!important; } @media(max-width: $screen-xs){ width:31vw!important; } img { display: inline-block; width: 100%; height: auto; border-radius: 1.5em; transform: scale(4) translateY(-1%); } } } } } .index-gallery { .index-title { @extend .unity-title; } &.index1 { .index-content { @media(max-width: $screen-xs){ width: 100%; } &:nth-child(4n+1) { clear: both; } .index-part { padding: 0.5em; } .index-content-inner { position: relative; } .index-content-title { @extend .i-title; font-family: $main-font; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .index-img-description { font-size: 0.813em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } } } &.index2 { .index-part{ @media(max-width: $screen-xs){ padding-left: 1em; } } .index-content { padding: 1em; background: lighten($theme-gray, 60%); margin-bottom: 1.25em; border-radius: 0.125em; width: 100%; @media screen and (max-width: $screen-sm) { // margin-right: 1.25em; // margin-left: 1.25em; } } .index-content-inner { } .index-img { border-radius: 0.125em; } .index-content-title { @extend .i-title; font-family: $main-font; } .index-img-description { font-size: 0.813em; } } &.index6 { .index-content{ margin-bottom: 1em; @media(min-width: $screen-xs)and(max-width: 820px){ width: 50%; } @media(max-width: $screen-xs){ width: 100%; } } .index-pic{ border-bottom-right-radius: 30px; overflow: hidden; .img-thumbnail{ width: 100%; border: 0; padding: 0; &:hover{ transform: scale(2); -webkit-transition: .3s all ease; -o-transition: .3s all ease; transition: .3s all ease; } } } .index-content { &:nth-child(4n+1) { clear: both; } .index-part { padding: 0.5em; } .index-content-inner { position: relative; border: 0.0625em solid #ddd; padding: 0.8em; } .index-content-title { @extend .i-title; font-family: $main-font; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; height: 2.5em; } .index-img-description { font-size: 0.813em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } } } } .show-gallery { .show-title { @extend .unity-title; } .show-content { padding-right: 0; padding-left: 0; &:nth-child(6n+1) { clear: both; } .img { display: inline-block; width: 100%; height: auto; border-radius: 0.125em; } .show-content-inner { position: relative; padding: 0.3125em; z-index: 0; } .show-description { font-family: $main-font; font-size: 0.813em; padding: 0.5em; } } } // .img-thumbnail{ // width: 100%; // }