mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-21 19:04:54 +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 {
|
.gallery-item {
|
||||||
margin: 0.5rem; padding: 0;
|
margin: 0.5rem; padding: 0;
|
||||||
|
|
||||||
max-width: 300px; height: 200px;
|
max-width: 300px; height: auto;
|
||||||
|
|
||||||
background-color: var(--bg-2);
|
background-color: var(--bg-2);
|
||||||
border-radius: var(--rad);
|
border-radius: var(--rad);
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
|
||||||
flex: 1 0 150px;
|
flex: 1 0 150px;
|
||||||
|
|
||||||
transition: transform 0.15s cubic-bezier(.19,1,.22,1);
|
transition: transform 0.15s cubic-bezier(.19,1,.22,1);
|
||||||
|
@ -33,13 +35,46 @@
|
||||||
transform: scale(1.1) rotate(5deg);
|
transform: scale(1.1) rotate(5deg);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
}
|
}
|
||||||
|
.gallery-item:after {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
padding-bottom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.gallery-image {
|
.gallery-image {
|
||||||
margin: 0; padding: 0;
|
margin: 0; padding: 0;
|
||||||
|
|
||||||
width: 100%; height: 100%;
|
width: 100%; height: 100%;
|
||||||
|
|
||||||
|
top: 0; bottom: 0; left: 0; right: 0;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
object-position: center;
|
||||||
|
|
||||||
border-radius: var(--rad);
|
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;
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
height: 69vh;
|
height: 69vh;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
transition: height 0.15s cubic-bezier(.19,1,.22,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
--shadow: 6px 6px 10px #15151588;
|
--shadow: 6px 6px 10px #15151588;
|
||||||
--rad: 5px;
|
--rad: 5px;
|
||||||
|
|
||||||
|
--square: 33.33%;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
@ -33,7 +33,7 @@ nav hr {
|
||||||
width: auto;
|
width: auto;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
@media (max-width: 450px) {
|
@media (max-width: 569px) {
|
||||||
.nav-name h3, .nav-name {
|
.nav-name h3, .nav-name {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="info-text center">
|
<div class="info-text center">
|
||||||
<h1>Fluffys Super Duper Secrete Project!</h1>
|
<h1>Welcome!</h1>
|
||||||
<p>Fluffy's test website on uploading images to a database!</p>
|
<p>*internal screaming*</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gallery-root flex-left">
|
<div class="gallery-root flex-left">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<nav class="nav-root flex-left between">
|
<nav class="nav-root flex-left between">
|
||||||
<div class="nav-name flex-left">
|
<div class="nav-name flex-left">
|
||||||
<h3>Fluffys Gallery!</h3>
|
<h3>Fluffys Amazing Gallery!</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-links flex-left">
|
<div class="nav-links flex-left">
|
||||||
<a class="btn alert-default" href="https://superdupersecteteuploadtest.fluffybean.gay"><img class="svg" src="assets/icons/house.svg">Home</a>
|
<a class="btn alert-default" href="https://superdupersecteteuploadtest.fluffybean.gay"><img class="svg" src="assets/icons/house.svg">Home</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue