mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-03 00:43:13 +00:00
I don't remember what I done here
This commit is contained in:
parent
08d15c9253
commit
0536dfc62c
6 changed files with 45 additions and 6 deletions
|
@ -20,11 +20,13 @@
|
|||
.gallery-item {
|
||||
margin: 0.5rem; padding: 0;
|
||||
|
||||
max-width: 300px; height: 200px;
|
||||
max-width: 300px; height: auto;
|
||||
|
||||
background-color: var(--bg-2);
|
||||
border-radius: var(--rad);
|
||||
|
||||
position: relative;
|
||||
|
||||
flex: 1 0 150px;
|
||||
|
||||
transition: transform 0.15s cubic-bezier(.19,1,.22,1);
|
||||
|
@ -33,13 +35,46 @@
|
|||
transform: scale(1.1) rotate(5deg);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.gallery-item:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
|
||||
.gallery-image {
|
||||
margin: 0; padding: 0;
|
||||
|
||||
width: 100%; height: 100%;
|
||||
|
||||
top: 0; bottom: 0; left: 0; right: 0;
|
||||
|
||||
position: absolute;
|
||||
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
|
||||
border-radius: var(--rad);
|
||||
}
|
||||
|
||||
/*@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;
|
||||
}
|
||||
}*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue