php-gallery/css/gallery.css

83 lines
1.4 KiB
CSS
Raw Normal View History

2022-07-22 00:21:48 +00:00
/*
-=-=-= GALLERY =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.info-text {
margin: 0 0 2rem;
}
.gallery-root {
margin: 0 0 2rem; padding: 0;
background-color: var(--bg); color: var(--fg);
border: 0.2rem solid var(--green);
outline: 0.5rem solid var(--bg);
border-radius: var(--rad);
box-shadow: var(--shadow);
}
.gallery-item {
margin: 0.5rem; padding: 0;
2022-07-25 19:59:02 +00:00
/*max-width: 232.5px; max-height: 232.5px;*/
height: auto; max-width: 315px;
2022-07-22 00:21:48 +00:00
2022-07-23 07:44:43 +00:00
background-color: var(--bg-2);
2022-07-22 00:21:48 +00:00
border-radius: var(--rad);
2022-07-24 12:20:12 +00:00
position: relative;
2022-07-22 00:21:48 +00:00
flex: 1 0 150px;
transition: transform 0.15s cubic-bezier(.19,1,.22,1);
}
.gallery-item:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: var(--shadow);
}
2022-07-24 12:20:12 +00:00
.gallery-item:after {
content: "";
display: block;
padding-bottom: 100%;
}
2022-07-22 00:21:48 +00:00
.gallery-image {
margin: 0; padding: 0;
2022-07-25 15:13:26 +00:00
/*max-width: 232.5px; max-height: 232.5px;*/
2022-07-22 00:21:48 +00:00
width: 100%; height: 100%;
2022-07-24 12:20:12 +00:00
top: 0; bottom: 0; left: 0; right: 0;
position: absolute;
2022-07-22 00:21:48 +00:00
object-fit: cover;
2022-07-24 12:20:12 +00:00
object-position: center;
2022-07-22 00:21:48 +00:00
border-radius: var(--rad);
}
2022-07-24 12:20:12 +00:00
/*@media (max-width: 701px) {
.gallery-item {
margin: 0;
width: 33.33%; height: auto;
flex: none;
border-radius: 0;
transform: none;
}
.gallery-item:after {
content: "";
display: block;
padding-bottom: 100%;
}
.gallery-image {
border-radius: 0;
}
}*/