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

145 lines
2.2 KiB
SCSS
Raw Normal View History

2021-04-19 03:11:49 +00:00
@charset "utf-8";
@import "../initial";
// Gallery MODULES
.widget-gallery {
.widget-title {
@extend .unity-title;
}
.widget-content {
position: relative;
}
&.widget1 {
.widget-content {
overflow: hidden;
.widget-pic {
display: inline-block;
padding: 1px;
text-align: center;
@include size(33.3333%, auto);
img {
@include size(100%, 100%);
}
}
}
}
&.widget2 {
.widget-content {
margin-left: -5px;
margin-right: -5px;
.widget-pic {
margin-bottom: 10px;
padding-left: 5px;
padding-right: 5px;
img {
@include size(100%, auto);
}
}
}
}
}
.index-gallery {
.index-title {
@extend .unity-title;
}
&.index1 {
.index-content {
&:nth-child(4n+1) {
clear: both;
}
.index-part {
padding: 8px;
}
.index-content-inner {
position: relative;
}
.index-content-title {
font-family: $main-font;
2021-06-28 11:19:31 +00:00
font-size: 0.9375em;
2021-04-19 03:11:49 +00:00
}
.index-img-description {
2021-06-28 11:19:31 +00:00
font-size: 0.8125em;
2021-04-19 03:11:49 +00:00
}
}
}
&.index2 {
.index-content {
padding: 25px 15px;
background: lighten($theme-gray, 60%);
margin-bottom: 20px;
border-radius: 2px;
@media screen and (max-width: $screen-sm) {
margin-right: 20px;
margin-left: 20px;
}
}
.index-content-inner {
margin-bottom: 25px;
}
.index-img {
border-radius: 2px;
}
.index-content-title {
font-family: $main-font;
2021-06-28 11:19:31 +00:00
font-size: 0.9375em;
2021-04-19 03:11:49 +00:00
}
.index-img-description {
2021-06-28 11:19:31 +00:00
font-size: 0.8125em;
2021-04-19 03:11:49 +00:00
}
}
}
.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: 2px;
}
.show-content-inner {
position: relative;
padding: 5px;
z-index: 0;
}
.show-description {
font-family: $main-font;
2021-06-28 11:19:31 +00:00
font-size: 0.8125em;
2021-04-19 03:11:49 +00:00
padding: 8px;
}
}
}