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

149 lines
2.4 KiB
SCSS
Raw Normal View History

2021-04-19 02:10:17 +00:00
@charset "utf-8";
@import "../initial";
// Gallery MODULES
.widget-gallery {
.widget-title {
@extend .unity-title;
font-weight: bold;
color: $theme-white;
}
.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 10:23:37 +00:00
font-size: 0.9375em;
2021-04-19 02:10:17 +00:00
}
.index-img-description {
2021-06-28 10:23:37 +00:00
font-size:0.8125em;
2021-04-19 02:10:17 +00:00
}
}
}
&.index2 {
.index-content {
padding: 25px 15px;
background: lighten($theme-gray, 60%);
margin-bottom: 20px;
border-radius: 2px;
2021-09-03 03:45:44 +00:00
behavior: url("/assets/ie_support/PIE2/PIE.htc");
2021-04-19 02:10:17 +00:00
@media screen and (max-width: $screen-sm) {
margin-right: 20px;
margin-left: 20px;
}
}
.index-content-inner {
margin-bottom: 25px;
}
.index-img {
border-radius: 2px;
2021-09-03 03:45:44 +00:00
behavior: url("/assets/ie_support/PIE2/PIE.htc");
2021-04-19 02:10:17 +00:00
}
.index-content-title {
font-family: $main-font;
2021-06-28 10:23:37 +00:00
font-size: 0.9375em;
2021-04-19 02:10:17 +00:00
}
.index-img-description {
2021-06-28 10:23:37 +00:00
font-size:0.8125em;
2021-04-19 02:10:17 +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;
2021-09-03 03:45:44 +00:00
behavior: url("/assets/ie_support/PIE2/PIE.htc");
2021-04-19 02:10:17 +00:00
}
.show-content-inner {
position: relative;
padding: 5px;
z-index: 0;
}
.show-description {
font-family: $main-font;
2021-06-28 10:23:37 +00:00
font-size:0.8125em;
2021-04-19 02:10:17 +00:00
padding: 8px;
}
}
}