php-gallery/css/scss/_body.scss

244 lines
4.1 KiB
SCSS
Raw Normal View History

2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
| INDEX
|-------------------------------------------------------------
*/
.info-text {
2022-08-12 16:54:35 +00:00
@include defaultFont();
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
margin: 1rem 0 1rem 0.5rem;
padding: 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
text-align: center;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
h1 {
font-family: $font-header;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
margin-top: 0;
margin-bottom: 1rem;
}
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
p {
font-family: $font-body;
margin-top: 0;
margin-bottom: 1rem;
}
2022-08-11 18:28:52 +00:00
}
.gallery-root {
2022-08-12 16:54:35 +00:00
margin-bottom: 1rem;
padding: 0.25rem;
background-color: $bg;
color: $fg;
display: flex;
flex-direction: row;
flex-wrap: wrap;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
border: 0.2rem solid $green;
border-radius: $rad;
box-shadow: $shadow;
2022-08-11 18:28:52 +00:00
}
.gallery-item {
2022-08-12 16:54:35 +00:00
margin: 0.25rem;
padding: 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
height: auto;
max-width: calc(33.33% - 0.5rem);
background-color: $bg;
border-radius: calc($rad - 0.5rem);
position: relative;
flex: 1 0 150px;
transition: transform 0.15s cubic-bezier(.19, 1, .22, 1);
&:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: $shadow;
z-index: 9;
}
&:after {
content: "";
display: block;
padding-bottom: 100%;
}
2022-08-11 18:28:52 +00:00
}
.gallery-image {
2022-08-12 16:54:35 +00:00
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: calc($rad - 0.5rem);
2022-08-11 18:28:52 +00:00
}
/*
|-------------------------------------------------------------
| IMAGE
|-------------------------------------------------------------
*/
.image-container {
2022-08-12 16:54:35 +00:00
margin: 1rem 0 2rem 0;
padding: 0;
width: 100%;
max-height: 69vh;
height: auto;
display: flex;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
background-color: $bg-alt;
backdrop-filter: blur(8px);
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
border-radius: $rad;
transition: max-height 0.15s cubic-bezier(.19, 1, .22, 1);
2022-08-11 18:28:52 +00:00
}
@media (max-width: 600px) {
2022-08-12 16:54:35 +00:00
.image-container {
max-height: 42vh;
}
2022-08-11 18:28:52 +00:00
}
2022-08-12 11:28:19 +00:00
2022-08-11 18:28:52 +00:00
.image {
2022-08-12 16:54:35 +00:00
margin: 0 auto;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
max-width: 100%;
width: auto;
max-height: inherit;
height: auto;
border-radius: $rad;
}
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
// DESCRIPTION
.image-description {
@include defaultDecoration($green);
@include defaultFont();
}
// DETAILS
.image-detail {
@include defaultDecoration($green);
@include defaultFont();
}
// TAGS
.tags-root {
@include defaultDecoration($green);
@include defaultFont();
}
.tags {
@include flexLeft(auto);
}
.tag {
margin: 0.25rem;
padding: 0.5rem;
display: block;
background-color: $page-accent;
border-radius: $rad;
font-family: $font-body;
}
// DANGER ZONE
.danger-zone {
@include defaultDecoration($red);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| ABOUT
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-08-12 16:54:35 +00:00
.about-root {
@include defaultDecoration($green);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| UPLOAD
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-08-12 16:54:35 +00:00
.upload-root {
@include defaultDecoration($green);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| ACCOUNT
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-08-12 16:54:35 +00:00
.account-root {
@include defaultDecoration($green);
@include defaultFont();
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
p:first-of-type {
padding: 0.5rem;
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
background-color: $black;
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
text-align: center;
}
}
2022-08-12 11:28:19 +00:00
2022-08-12 16:54:35 +00:00
/*
|-------------------------------------------------------------
| SIGNUP
|-------------------------------------------------------------
*/
.signup-root {
@include defaultDecoration($green);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 16:54:35 +00:00
| LOGIN
2022-08-12 11:28:19 +00:00
|-------------------------------------------------------------
*/
2022-08-12 16:54:35 +00:00
.login-root {
@include defaultDecoration($green);
@include defaultFont();
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
/*
|-------------------------------------------------------------
| PASSWORD RESET
|-------------------------------------------------------------
*/
.password-reset-root {
@include defaultDecoration($red);
@include defaultFont();
}