Files
hwilliams-dev/styles/gallery.css

45 lines
1.0 KiB
CSS

.gallery-full-screen-portal {
transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
opacity: 0;
}
.gallery-action-button {
position: absolute;
cursor: pointer;
display: flex;
padding: 0;
}
.gallery-action-button button {
width: 28px;
height: 28px;
display: flex;
border-radius: var(--radius-sm);
border: 1px solid var(--accent);
background-color: var(--surface);
align-items: center;
justify-content: center;
color: var(--fg);
z-index: 1001;
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
/* `.is-hovered` is set while the media itself is hovered, so the button shows
the same state as a direct hover on it. */
.gallery-action-button button:hover,
.gallery-action-button.is-hovered button {
filter: brightness(120%);
border-color: var(--accent-hover);
background-color: var(--surface-hover);
}
.action-button-svg {
stroke: var(--fg-secondary);
}
@media (max-width: 768px) {
.project-card {
height: 100%;
max-height: 80vh;
}
}