website/assets/scss/layouts/photos.scss

98 lines
1.7 KiB
SCSS
Raw Normal View History

2023-01-23 10:07:18 +01:00
.photos-list {
2024-05-26 16:56:15 +02:00
.photos-list-title {
margin-bottom: 1em;
.fa {
margin-right: 10px;
}
2023-01-23 10:07:18 +01:00
}
2024-05-26 16:56:15 +02:00
.photos-list-photos {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-column-gap: 1.2em;
grid-row-gap: 1.2em;
justify-content: center;
2024-05-28 07:51:48 +02:00
&.photos-list-photos-len-1{
grid-template-columns:repeat(1,1fr);
2024-05-31 11:39:23 +02:00
.photos-list-item{
width:100%;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
span#caption{
2024-06-11 07:49:48 +02:00
--height:100%;
--width:100%;
2024-05-31 11:39:23 +02:00
}
}
2024-05-28 07:51:48 +02:00
}
&.photos-list-photos-len-2{
grid-template-columns:repeat(2,1fr);
}
&.photos-list-photos-len-3{
grid-template-columns:repeat(3,1fr);
}
2024-05-26 16:56:15 +02:00
}
2023-01-23 10:07:18 +01:00
2024-05-26 16:56:15 +02:00
.photos-list-item {
border-radius: 5px;
height: 17.5em;
/*min-width: 14em;*/
width:17.5em;
background-size: cover;
background-position: center;
opacity: 1;
display: block;
transition: opacity 0.2s;
span#caption{
display:none;
background-color:rgba(27, 27,27, 0.7);
color:white;
2024-06-11 07:49:48 +02:00
--width:17.5em;
width: 0;
2024-05-26 16:56:15 +02:00
overflow:auto;
2024-06-11 07:49:48 +02:00
--height:17.5em;
height: 0;
overflow: none;
2024-05-26 16:56:15 +02:00
word-wrap:break-word;
word-break:break-word;
padding:10px;
text-decoration:none!important;
}
2023-01-23 10:07:18 +01:00
2024-05-26 16:56:15 +02:00
}
.photos-list-item:hover {
opacity: 0.8;
cursor: pointer;
transition: opacity 0.2s;
span#caption{
display:block;
2024-06-11 07:49:48 +02:00
width:var(--width);
height:var(--height);
overflow: auto;
2024-05-26 16:56:15 +02:00
}
}
2023-01-23 10:07:18 +01:00
2024-05-26 16:56:15 +02:00
.photos-more {
float: right;
}
2023-01-23 10:07:18 +01:00
}
@media (max-width: $responsive-medium) {
2024-05-26 16:56:15 +02:00
.photos-list {
.photos-list-photos {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
/*.photos-list-item {
min-width: 17.5em;
span#caption{
width:calc(17.5em - 10px);
}
}*/
2023-01-23 10:07:18 +01:00
}
2024-05-26 16:56:15 +02:00
}