Files
gallery/assets/style.css
tchivert 2d0cf23139
docker / docker (push) Successful in 30s
improved index css on mobiles
2024-08-11 18:14:18 +02:00

119 lines
1.5 KiB
CSS

.gallery {
width: 90%;
padding: 0;
margin: 1.5em auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.gallery > li {
flex-basis: 500px;
list-style-type: none;
}
.gallery li img {
width: 100%;
height: 600px;
vertical-align: middle;
border-radius: 5px;
cursor: pointer;
object-fit: cover;
}
.gallery li img:hover {
opacity: 0.7;
}
.index {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.index table {
width: 60%;
margin: 1.5em auto;
}
.index th, td {
border: 1px;
border-radius: 5px;
box-shadow: 0 0 10px #F012BE;
padding: 0.5em;
}
.index a, p {
margin: 0 1em;
}
body, html {
background-color: #121212;
font-family: Verdana, "Bitstream Vera Sans", sans-serif;
color: #FFFFFF;
line-height: 1.5em;
}
li {
line-height: 1.8em;
}
a {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
color: #F012BE;
}
footer {
display: block;
height: 1.5em;
position: fixed;
bottom: 0;
left: 0;
right: 0;
margin: auto;
text-align: center;
background-color: #121212;
}
footer a {
margin: 0 2em;
}
@media screen and (max-width: 1124px) {
.gallery {
width: 100%;
margin: auto;
}
.gallery > li {
flex-basis: 100%;
}
.gallery li img {
height: 900px;
}
.index table {
width: 80%;
}
footer a {
margin: 0 1em;
}
}
@media screen and (max-width: 450px) {
.gallery li img {
height: 500px;
}
.index table {
width: 100%;
margin: auto;
}
footer {
padding: 0.5em;
}
}