alexdaniels.me/assets/styles/scss/front/_photos.scss

198 lines
4.1 KiB
SCSS
Raw Permalink Normal View History

2026-06-03 17:18:50 -07:00
@use '../shared/colors' as colors;
.photos {
display: block;
.albums {
display: flex;
flex-direction: column;
width: 100%;
@media (min-width: 800px) {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
}
gap: 1rem;
list-style: none;
padding: 0;
.album {
display: block;
width: 100%;
a {
display: block;
position: relative;
color: white;
text-decoration: none;
overflow: hidden;
img {
display: block;
width: 100%;
height: auto;
}
.title, .date, .overlay {
position: absolute;
visibility: visible;
margin: 0;
}
.title, .date, .category {
z-index: 2;
}
.title {
top: 1rem;
left: 1rem;
}
.date {
bottom: 1rem;
left: 1rem;
font-weight: bold;
}
.overlay {
width: 100%;
height: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.333);
z-index: 1;
}
&:hover {
.title, .date, .category, .overlay {
visibility: hidden;
}
img {
transform: scale(1.01);
transition: transform 100ms ease-in-out;
}
}
}
}
}
img {
width: 100%;
}
}
#album {
.title {
margin: 0;
}
.meta {
border-bottom: 5px solid colors.$computerBorder;
}
.photos {
display: flex;
flex-direction: column;
width: 100%;
@media (min-width: 800px) {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
}
gap: 1rem;
list-style: none;
padding: 0;
.photo {
width: 100%;
overflow: hidden;
img {
//width: 100%;
transition: transform 100ms ease-in-out;
}
&:hover {
cursor: pointer;
img {
transform: scale(1.01);
transition: transform 100ms ease-in-out;
}
}
}
}
}
#open-image {
display: none;
position: fixed;
2026-06-10 11:45:32 -07:00
top: 0;
left: 0;
2026-06-03 17:18:50 -07:00
z-index: 999;
2026-06-10 11:45:32 -07:00
width: 100%;
height: 100vh;
2026-06-03 17:18:50 -07:00
2026-06-10 11:45:32 -07:00
.wrapper {
2026-06-03 17:18:50 -07:00
position: absolute;
2026-06-10 13:41:23 -07:00
top: 50%;
2026-06-10 11:45:32 -07:00
left: 50%;
2026-06-10 13:41:23 -07:00
transform: translate(-50%, -50%);
2026-06-10 11:50:28 -07:00
width: 100%;
max-width: 700px;
2026-06-10 13:41:23 -07:00
height: 75%;
2026-06-10 11:52:43 -07:00
max-height: 100vh;
2026-06-10 11:45:32 -07:00
2026-06-10 13:41:23 -07:00
/* @media (min-width: 600px) {
top: 2rem;
transform: translate(-50%, 0);
} */
2026-06-10 11:45:32 -07:00
.close {
cursor: pointer;
font-family: AtomicAge-Regular;
font-size: 2rem;
position: absolute;
right: 5px;
top: 0;
2026-06-03 17:18:50 -07:00
}
2026-06-10 11:45:32 -07:00
img {
width: 100%;
height: auto;
2026-06-03 17:18:50 -07:00
}
2026-06-10 11:45:32 -07:00
#details {
display: block;
height: auto;
padding: 1rem 1rem;
background-color: colors.$computerBorder;
p {
margin: 0;
}
#caption {
font-size: 1.5rem;
padding-bottom: 1rem;
}
#location, #date, #equipment {
font-size: 1.25rem;
}
2026-06-03 17:18:50 -07:00
}
2026-06-10 11:45:32 -07:00
2026-06-03 17:18:50 -07:00
}
&.open {
display: block;
}
2026-06-10 11:45:32 -07:00
2026-06-03 17:18:50 -07:00
}