photo26/photo21/static/layout.css
krek0 f4052a3d99
All checks were successful
Docker / build (release) Successful in 9s
Add video support with unified media display.
2026-05-16 15:13:14 +02:00

92 lines
1.8 KiB
CSS

/*
This file is part of photo21
Copyright (C) 2022 Amicale des élèves de l'ENS Paris-Saclay
SPDX-License-Identifier: GPL-3.0-or-later
*/
/* Use dark scrollbar */
:root {
color-scheme: light dark;
}
/* Bootstrap icons */
.bi {
display: inline-block;
vertical-align: -0.125em;
fill: currentcolor;
}
/* Login view */
.login {
max-width: 35rem;
}
.login .asteriskField {
display: none;
}
.login .form-group {
margin-top: 0.5em;
}
/* Upload view */
.upload-drop-zone {
height: 10em;
line-height: 10em;
border-width: 2px;
color: #a3a3a3;
border-style: dashed;
border-color: #a3a3a3;
border-radius: 0.5em;
text-align: center;
margin-bottom: 0.5em;
}
.upload-drop-zone.drop {
color: #222;
border-color: #222;
background-color: rgba(163, 163, 163, 0.274);
}
/* Gallery - Google Photos style justified grid */
#lightgallery {
position: relative;
}
.photo-item {
position: absolute;
overflow: hidden;
visibility: hidden;
}
.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.photo-item img.photo-private {
outline: 5px solid var(--bs-danger);
outline-offset: -5px;
}
/* Play button overlay for video thumbnails in the grid */
.photo-item[data-video]::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z'/%3E%3C/svg%3E") center/32px no-repeat;
pointer-events: none;
}
/* Language selector */
.lang-select {
border: none;
background: none;
color: inherit;
cursor: pointer;
text-decoration: underline;
}