photo26/photo21/static/layout.css
krek0 e630494543
All checks were successful
Docker / build (release) Successful in 8s
Use object-fit: contain to show full images in gallery grid
2026-05-05 14:16:11 +02:00

78 lines
1.3 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: contain;
display: block;
}
.photo-item img.photo-private {
outline: 5px solid var(--bs-danger);
outline-offset: -5px;
}
/* Language selector */
.lang-select {
border: none;
background: none;
color: inherit;
cursor: pointer;
text-decoration: underline;
}