157 lines
2.8 KiB
SCSS
157 lines
2.8 KiB
SCSS
/*
|
|
Copyright 2023 0xf8.dev@proton.me
|
|
|
|
This file is part of Galerie
|
|
|
|
Galerie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
Galerie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
You should have received a copy of the GNU General Public License along with Galerie. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
@import url("style.scss");
|
|
|
|
span#title {
|
|
position: fixed;
|
|
display: flex;
|
|
|
|
width: 100vw;
|
|
height: 100vh;
|
|
|
|
align-content: center;
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
}
|
|
|
|
#display {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-basis: auto;
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: scroll;
|
|
position: absolute;
|
|
margin: 0;
|
|
margin-top: 2em;
|
|
padding: 0;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
|
|
span {
|
|
margin: 0.5em 0.3em 1.2em 0.3em;
|
|
|
|
img.resource,
|
|
video.resource {
|
|
display: block;
|
|
object-fit: contain;
|
|
height: 15em;
|
|
width: auto;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.resourceh:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
span {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
i {
|
|
padding: 0 .5em;
|
|
}
|
|
|
|
i:hover {
|
|
opacity: 80%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.overlay {
|
|
@keyframes slowShow {
|
|
from { background-color: rgba(0, 0, 0, 0) }
|
|
to { background-color: rgba(0, 0, 0, 0.7) }
|
|
}
|
|
|
|
overflow: hidden;
|
|
|
|
animation: slowShow .8s ease;
|
|
|
|
position: absolute;
|
|
display: flex;
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
height: 100vh;
|
|
width: 100vw;
|
|
|
|
justify-content: center;
|
|
align-content: center;
|
|
|
|
z-index: 999;
|
|
|
|
.popout {
|
|
display: block;
|
|
object-fit: contain;
|
|
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.contextmenu {
|
|
position: fixed;
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
padding: .4em 1em;
|
|
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
border: 2px rgba(0, 0, 0, 0.9) solid;
|
|
border-radius: 8px;
|
|
|
|
max-width: 18vw;
|
|
|
|
height: max-content;
|
|
width: max-content;
|
|
|
|
hr {
|
|
width: 5em;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
:first-child {
|
|
font-weight: 600;
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
:last-child {
|
|
margin-top: .4em;
|
|
}
|
|
|
|
.option {
|
|
font-size: .9em;
|
|
|
|
width: fit-content;
|
|
height: auto;
|
|
|
|
border: 3px transparent solid;
|
|
background: transparent;
|
|
color: white;
|
|
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.option:hover {
|
|
color: black;
|
|
background: white;
|
|
}
|
|
}
|
|
} |