php-gallery/css/main.scss

227 lines
4 KiB
SCSS
Raw Normal View History

2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
| Sass stylesheet
|-------------------------------------------------------------
| This is all written by me! Fluffy! This is intended to be
| compiled before use, I want to make this autocompile for
| ease of use, but you may suffer along with me for now :3
|-------------------------------------------------------------
*/
@import "scss/mixin";
@import "scss/variables";
@import "scss/navigation";
@import "scss/body";
@import "scss/footer";
/*
|-------------------------------------------------------------
| BODY COMPONENTS
|-------------------------------------------------------------
*/
html {
2022-08-12 16:54:35 +00:00
margin: 0;
padding: 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
min-height: 100vh;
max-width: 100vw;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
position: relative;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
background-color: $bg;
background-image: url("../assets/bg.svg");
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
scroll-behavior: smooth;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
overflow: auto;
2022-08-11 18:28:52 +00:00
}
body {
2022-08-12 16:54:35 +00:00
margin: 0 auto;
padding: 1rem;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
max-width: 1000px;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
min-height: calc(100vh - 2rem);
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
@include flexDown(space-between);
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
position: relative;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
* {
color: $fg;
}
2022-08-11 18:28:52 +00:00
}
/*
|-------------------------------------------------------------
| BUTTONS
|-------------------------------------------------------------
*/
.btn {
2022-08-12 16:54:35 +00:00
padding: 0.5rem;
width: 100%;
display: block;
box-sizing: border-box;
font-size: 16px;
font-weight: 500;
font-family: $font-body;
text-decoration: none;
border: none;
border-radius: calc($rad - (0.5rem + 3px));
transition: outline 0.1s cubic-bezier(.19, 1, .22, 1);
&:hover {
2022-08-13 09:46:12 +00:00
outline: $white 0.2rem solid;
2022-08-12 16:54:35 +00:00
color: $fg;
2022-09-20 10:12:32 +00:00
cursor: pointer;
2022-08-12 16:54:35 +00:00
}
&:where(input[type="file"])::file-selector-button {
margin: -0.25rem 0.5rem -0.25rem -0.25rem;
padding: 0.5rem;
display: inline-block;
font-size: 16px;
text-decoration: none;
background-color: $white;
border: none;
2022-09-21 14:23:17 +00:00
border-radius: calc($rad - (0.5rem + 3px));
2022-08-12 16:54:35 +00:00
}
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
a.btn {
text-align: center;
}
2022-08-12 11:28:19 +00:00
.btn-good {
2022-09-13 15:03:09 +00:00
background-color: $page-accent;
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
2022-08-12 11:28:19 +00:00
.btn-bad {
2022-08-12 16:54:35 +00:00
background-color: $red;
2022-08-12 11:28:19 +00:00
}
2022-08-12 16:54:35 +00:00
2022-08-12 11:28:19 +00:00
.btn-neutral {
2022-08-12 16:54:35 +00:00
background-color: $black;
2022-08-11 18:28:52 +00:00
}
/*
|-------------------------------------------------------------
2022-08-12 11:28:19 +00:00
| FORM SIZING
2022-08-11 18:28:52 +00:00
|-------------------------------------------------------------
*/
form {
2022-08-12 16:54:35 +00:00
width: 100%;
box-sizing: content-box;
>* {
margin-bottom: 0.5rem;
}
2022-08-11 18:28:52 +00:00
}
textarea {
resize: none;
}
2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
2022-08-12 11:28:19 +00:00
| SVG
2022-08-11 18:28:52 +00:00
|-------------------------------------------------------------
*/
.svg {
2022-08-12 16:54:35 +00:00
margin: 0 0.2rem 0.1rem 0;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
width: 19px;
height: 18px;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
vertical-align: middle;
2022-08-11 18:28:52 +00:00
2022-08-12 16:54:35 +00:00
display: inline;
}
/*
|-------------------------------------------------------------
| BR / BREAK
|-------------------------------------------------------------
*/
br {
margin: 0;
line-height: 0.25rem;
2022-08-11 18:28:52 +00:00
}
2022-09-21 14:23:17 +00:00
/*
|-------------------------------------------------------------
| Link text
|-------------------------------------------------------------
*/
a.link {
display: inline;
text-decoration: underline;
&:hover {
color: $page-accent;
}
}
2022-08-11 18:28:52 +00:00
/*
|-------------------------------------------------------------
| BACK TO TOP
|-------------------------------------------------------------
*/
#back-to-top {
2022-08-12 16:54:35 +00:00
margin: 0;
padding: 0.5rem;
position: fixed;
z-index: 99;
right: -2.5rem;
bottom: 1rem;
object-position: center;
2022-08-13 09:46:12 +00:00
background-color: $bg-alt;
2022-08-12 16:54:35 +00:00
backdrop-filter: blur(8px);
border-radius: 50%;
box-shadow: $shadow;
transition: right 0.15s cubic-bezier(.19, 1, .22, 1);
&:hover {
outline: 0.2rem solid $green;
}
* {
margin: 0;
padding: 0;
width: 1.5rem;
height: 1.5rem;
display: block;
object-position: center;
}
}
@media(prefers-reduced-motion){
* {
transition: none !important;
}
2022-08-12 11:28:19 +00:00
}