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

604 lines
12 KiB
SCSS

@charset "utf-8";
@import "../initial";
.album-name{
min-height: 1em;
display: block;
}
.show-pic{
overflow: hidden;
&: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;
}
}
}
.widget-gallery{
position: relative;
z-index: 1;
}
.widget-content-inner{
margin-bottom: 1em;
}
.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 {
.widget-content {
overflow: hidden;
.album-item {
display: flex;
flex-direction: column;
}
.widget-pic {
display: inline-block;
padding: 0.0625em;
text-align: center;
@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%;
@media(min-width:769px){
display: flex;
flex-wrap: wrap;
}
// 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;
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;
}
}
}
}
&.widget7 {
position: relative;
.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: 100%;
top: 50%;
.prev-button,.next-button{
cursor: pointer;
}
@media(min-width:769px){
.prev-button{
left: 1.5em;
}
}
// 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;
padding: 0.5em;
@media(max-width:$screen-xs){
margin: 0!important;
padding:0;
}
@include size(20%, auto);
img {
@include size(100%, 100%);
}
}
}
}
&.widget8 {
.cycle-slideshow>*:nth-child(n + 2):not(.active,[class*="-wrap"]){
display: none!important;
}
.cycle-carousel-wrap{
display: flex;
align-items: baseline;
}
.gallery-widget-title{
position: relative;
@media(max-width:$screen-xs){
float: none;
width: 100%;
}
}
.mask_title {
color: #000000;
text-align: center;
margin: 0;
padding: 8px 10px 10px;
background: #fff;
display: block;
font-size: 1em;
line-height: 1.7em;
height: 4em;
width: 100%;
box-sizing: border-box;
text-align: center;
padding: 8px 10px 10px;
overflow-wrap: break-word;
white-space: normal;
}
.button-mid{
}
.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 {
padding: 0.0625em;
text-align: center;
padding-left: 1em;
border-radius: 1em;
@media(max-width:$screen-xs){
margin: 0!important;
}
img{
height: 12.5em!important;
}
}
}
}
}
.index-gallery {
.index-title {
@extend .unity-title;
}
&.index1 {
@media(min-width:769px){
.img-thumbnail{
height: 15em;
overflow: hidden;
}
}
.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;
}
}
}
&.index7 {
@media(min-width:769px){
.img-thumbnail{
height: 15em;
overflow: hidden;
}
}
.img-thumbnail{
padding: 0;
}
.index-content {
margin-bottom: 1em;
@media(max-width: $screen-xs){
width: 100%;
}
&:nth-child(4n+1) {
clear: both;
}
.index-part {
padding: 0.5em;
width: 100%;
padding: 1vw;
color: #fff;
box-sizing: border-box;
background-color: rgba(0, 0, 0, 0.6);
position: absolute;
bottom: 0;
left: 0;
z-index: 2;
a{
color: #fff;
}
}
.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;
}
}
}
}
.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%;
// }