2019-11-04 13:09:44 +00:00
|
|
|
.grid {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
.full {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.half {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.third {
|
|
|
|
width: 33.3%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.quarter {
|
|
|
|
width: 25%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fifth {
|
|
|
|
width: 20%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* clear fix */
|
|
|
|
.grid:after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ---- .grid-item ---- */
|
|
|
|
|
|
|
|
.grid-sizer,
|
|
|
|
.grid-item {
|
|
|
|
width: 33.333%;
|
2019-11-13 08:06:51 +00:00
|
|
|
padding: 0.5rem;
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item {
|
2019-11-13 08:06:51 +00:00
|
|
|
float: left;
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item img {
|
|
|
|
display: block;
|
2019-11-13 08:06:51 +00:00
|
|
|
max-width: 100%;
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.gallery {
|
|
|
|
padding: 1rem;
|
2019-11-20 06:55:05 +00:00
|
|
|
@include flexbox();
|
|
|
|
@include flex-direction(column);
|
2019-11-24 14:31:28 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
|
|
|
|
&__contents {
|
|
|
|
padding: 1rem;
|
|
|
|
width: 65%;
|
2019-11-08 02:15:12 +00:00
|
|
|
font-family: $gallery_contents_font;
|
2019-11-04 13:09:44 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-11-13 08:06:51 +00:00
|
|
|
|
|
|
|
.grid-item {
|
|
|
|
position: relative;
|
|
|
|
opacity: 1;
|
|
|
|
height: auto;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&__desc {
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
|
|
|
padding: 0.5rem;
|
|
|
|
width: calc(100% - 1rem);
|
|
|
|
height: calc(100% - 1rem);
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
z-index: z('gallery-mask');
|
|
|
|
font-family: $single_title_font;
|
|
|
|
font-weight: 700;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
@include box-shadow(0, 4px, 4px, 0, rgba(0, 0, 0, 0.4));
|
|
|
|
@include on-event {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('gallery-mask-color');
|
|
|
|
background-color: themed('gallery-mask-background-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|