nfu-newfarming/assets/stylesheets/template/modules/gallery.scss

536 lines
10 KiB
SCSS

@charset "utf-8";
@import "../initial";
.widget-gallery{
position: relative;
}
.gallery-shadow{
display: flex;
flex-wrap: wrap;
position: relative;
flex: 1;
padding: 40px;
background: #fff;
border-radius: 3px;
border: #eee solid 1px;
box-shadow: 0px 3px 8px -5px rgba(0, 0, 0, 0.2);
}
.widget-gallery{
.cycle-slideshow > *:nth-child(n + 2):not(.active, [class*="-wrap"]){
display: none!important;
}
}
.index-pic{
overflow: hidden;
padding: 0;
.img-thumbnail{
width: 100%;
padding: 0;
border: 0;
}
&: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{
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;
margin-left: 1em;
border-radius: 1em;
@media(max-width:$screen-xs){
margin: 0!important;
}
img{
height: 12.5em!important;
}
}
}
}
&.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%);
}
}
}
}
&.widget8 {
.w-annc__more-wrap{
margin-top: 1em;
}
.mask_box{
border-radius: 1em;
overflow: hidden;
}
.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 {
display: inline-block;
padding: 0.0625em;
text-align: center;
padding: 0.5em;
@media(max-width:$screen-xs){
margin: 0!important;
padding:0;
}
}
}
}
&.widget9 {
.w-annc__more-wrap{
margin-top: 1em;
}
.mask_box{
border-radius: 1em;
overflow: hidden;
}
.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 {
display: inline-block;
padding: 0.0625em;
text-align: center;
padding: 0.5em;
@media(max-width:$screen-xs){
margin: 0!important;
padding:0;
}
}
}
}
}
.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 0;
}
.index-content-inner {
position: relative;
}
.index-content-title {
@extend .i-title;
}
.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%;
// }