php-gallery/css/master.css

456 lines
7.2 KiB
CSS
Raw Normal View History

2022-07-22 00:21:48 +00:00
@import "nav.css";
@import "footer.css";
2022-07-21 14:53:04 +00:00
:root {
2022-07-22 00:21:48 +00:00
--bg: #151515df;
--bg-1: #242621;
--bg-2: #1D1E1C;
--fg:#E8E3E3;
--fg-dark: #151515;
--red: #B66467;
2022-07-23 07:44:43 +00:00
--orange: #FF7700;
2022-07-22 00:21:48 +00:00
--green: #8C977D;
2022-07-21 14:53:04 +00:00
--black: #151515;
--white: #E8E3E3;
2022-07-22 00:21:48 +00:00
--shadow: 6px 6px 10px #15151588;
2022-07-21 14:53:04 +00:00
--rad: 5px;
2022-07-24 12:20:12 +00:00
--square: 33.33%;
2022-07-21 14:53:04 +00:00
}
* {
2022-07-22 00:21:48 +00:00
font-weight: 521;
color: var(--fg);
2022-07-23 09:37:12 +00:00
font-family: "Fira Code", monospace;
2022-07-21 14:53:04 +00:00
}
html {
2022-07-22 00:21:48 +00:00
margin: 0; padding: 0;
2022-07-23 07:44:43 +00:00
min-height: 100vh; max-width: 100vw;
2022-07-22 00:21:48 +00:00
2022-07-29 15:41:05 +00:00
position: relative;
2022-07-22 00:21:48 +00:00
background-color: var(--bg-2);
2022-07-23 07:44:43 +00:00
background-image: url("../assets/bg2.svg");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
2022-07-25 19:59:02 +00:00
scroll-behavior: smooth;
overflow: auto;
2022-07-21 14:53:04 +00:00
}
body {
2022-07-22 00:21:48 +00:00
margin: 0 auto; padding: 1rem;
2022-07-21 18:42:03 +00:00
2022-07-27 14:42:25 +00:00
min-height: calc(100vh - 2rem); max-width: 1000px;
2022-07-22 00:21:48 +00:00
2022-07-21 18:42:03 +00:00
display: flex;
2022-07-23 14:03:11 +00:00
2022-07-21 18:42:03 +00:00
flex-direction: column;
justify-content: space-between;
2022-07-21 14:53:04 +00:00
}
2022-07-26 12:34:48 +00:00
/*
2022-07-27 14:42:25 +00:00
-=-=-= BACK TO TOP BUTTON =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
2022-07-26 12:34:48 +00:00
*/
#back-to-top {
margin: 0; padding: 0.5rem;
position: fixed;
right: -2.5rem; bottom: 1rem;
object-position: center;
background-color: var(--bg);
border-radius: 50%;
box-shadow: var(--shadow);
transition: right 0.15s cubic-bezier(.19,1,.22,1);
}
#back-to-top:hover {
outline: 0.2rem solid var(--green);
}
#back-to-top * {
margin: 0; padding: 0;
width: 1.5rem; height: 1.5rem;
display: block;
object-position: center;
}
2022-07-27 11:46:10 +00:00
/*
-=-=-= DIV DECORATIONS =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.default-window {
margin: 0 0 2rem; padding: 0.5rem;
2022-07-27 14:42:25 +00:00
width: auto;
2022-07-27 11:46:10 +00:00
background-color: var(--bg);
outline: 0.5rem solid var(--bg);
border-radius: var(--rad);
box-shadow: var(--shadow);
2022-07-30 15:15:48 +00:00
text-overflow: ellipsis;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
2022-07-27 11:46:10 +00:00
}
2022-07-27 14:42:25 +00:00
.password-reset-root {
border: 0.2rem solid var(--red);
2022-07-27 11:46:10 +00:00
}
.edit-root {
border: 0.2rem solid var(--red);
}
2022-07-27 14:42:25 +00:00
.upload-root {
border: 0.2rem solid var(--green);
}
2022-07-27 11:46:10 +00:00
.signup-root {
border: 0.2rem solid var(--green);
}
2022-07-27 14:42:25 +00:00
.account-root {
border: 0.2rem solid var(--green);
}
.login-root {
border: 0.2rem solid var(--green);
}
.about-root {
border: 0.2rem solid var(--green);
}
2022-07-27 11:46:10 +00:00
2022-07-27 14:42:25 +00:00
/*
-=-=-= GALLERY =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.info-text {
margin: 0 0 2rem;
2022-07-27 11:46:10 +00:00
}
2022-07-27 14:42:25 +00:00
.gallery-root {
margin: 0 0 2rem; padding: 0.25rem;
background-color: var(--bg); color: var(--fg);
2022-07-27 11:46:10 +00:00
border: 0.2rem solid var(--green);
2022-07-27 14:42:25 +00:00
outline: 0.5rem solid var(--bg);
border-radius: var(--rad);
box-shadow: var(--shadow);
2022-07-27 11:46:10 +00:00
}
2022-07-27 14:42:25 +00:00
.gallery-item {
margin: 0.25rem; padding: 0;
height: auto; max-width: 350px;
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);
2022-07-27 11:46:10 +00:00
}
2022-07-27 14:42:25 +00:00
.gallery-item:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: var(--shadow);
2022-07-27 11:46:10 +00:00
2022-07-27 14:42:25 +00:00
z-index: 999;
}
.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);
}
/*
-=-=-= IMAGE FULLSCREEN =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.image-container {
margin: 0 0 2rem; padding: 0;
width: calc(100vw - var(--space-medium));
height: 69vh;
position: relative;
transition: height 0.15s cubic-bezier(.19,1,.22,1);
}
@media (max-width: 600px) {
.image-container {
height: 35vh;
}
}
.image {
max-width: 100%;
width: auto;
max-height: 100%;
height: auto;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
border-radius: var(--rad);
}
.image-description {
2022-07-27 11:46:10 +00:00
border: 0.2rem solid var(--green);
2022-07-28 10:59:16 +00:00
word-wrap: break-word;
2022-07-27 11:46:10 +00:00
}
2022-07-27 14:42:25 +00:00
.image-detail {
border: 0.2rem solid var(--green);
}
.danger-zone {
border: 0.2rem solid var(--red);
}
2022-07-28 21:18:14 +00:00
.tags-root {
border: 0.2rem solid var(--green);
}
.tag {
margin: 0.25rem; padding: 0.5rem;
display: block;
border-radius: var(--rad);
}
.tag::before {
content: '#';
}
2022-07-27 14:42:25 +00:00
/*
-=-=-= UNIVERSAL =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.flex-left {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.flex-down {
display: flex;
flex-direction: column;
}
.between {
justify-content: space-between;
}
.around {
justify-content: space-around;
}
.center {
text-align: center;
}
2022-07-28 21:18:14 +00:00
.space-bottom-small {
margin-bottom: 0.5rem;
margin-top: 0;
}
.space-top-small {
margin-top: 0.5rem;
margin-bottom: 0;
}
2022-07-27 14:42:25 +00:00
.space-bottom {
margin-bottom: 1rem;
margin-top: 0;
}
.space-top {
margin-top: 1rem;
margin-bottom: 0;
}
.space-bottom-large {
margin-bottom: 2rem;
}
.space-top-large {
margin-top: 2rem;
}
.svg {
margin: 0 0.2rem 0.1rem 0;
width: 19px; height: 18px;
vertical-align: middle;
display: inline;
}
.text-box {
padding: 0.5rem;
display: block;
font-size: 16px;
text-decoration: none;
border: none;
border-radius: var(--rad);
}
2022-07-27 14:42:25 +00:00
/*
-=-=-= ALERT =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.alert {
padding: 1rem;
2022-07-28 10:59:16 +00:00
width: auto;
2022-07-27 14:42:25 +00:00
text-align: center;
display: block;
border-radius: var(--rad);
outline: 0.5rem solid var(--bg);
}
.alert-high {
background-color: var(--green);
}
.alert-low {
background-color: var(--red);
}
.alert-default {
background-color: var(--black);
}
/*
-=-=-= FORM =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
form {
width: 100%;
box-sizing: border-box;
}
form * {
width: 100%;
box-sizing: border-box;
}
/*
-=-=-= BUTTONS =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.btn {
padding: 0.5rem;
display: block;
font-size: 16px;
text-decoration: none;
border: none;
border-radius: var(--rad);
2022-07-31 11:50:52 +00:00
transition: outline 0.1s cubic-bezier(.19,1,.22,1);
2022-07-27 14:42:25 +00:00
}
.btn:hover {
outline: var(--white) 3px solid;
color: var(--fg);
}
a.btn {
2022-07-27 18:47:19 +00:00
margin-bottom: 0;
2022-07-27 14:42:25 +00:00
text-align: center;
}
2022-07-28 10:59:16 +00:00
2022-07-29 12:53:36 +00:00
/*
-=-=-= FLYOUT =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.flyout {
margin: 0; padding: 0.5rem 0.5rem 1.5rem;
max-width: 621px; width: calc(100% - 2.5rem + 3px);
2022-07-29 15:41:05 +00:00
max-height: 20rem; height: auto; min-height: 10rem;
2022-07-29 12:53:36 +00:00
2022-07-29 15:41:05 +00:00
bottom: -20rem; left: 50%;
2022-07-29 12:53:36 +00:00
2022-07-29 15:41:05 +00:00
transform: translateX(-50%) scale(0.8);
2022-07-29 12:53:36 +00:00
position: fixed; z-index: 99999;
overflow-y: auto;
border: 0.2rem solid var(--green);
border-bottom: none;
border-radius: inherit inherit none none;
word-wrap: break-word;
2022-07-29 15:41:05 +00:00
transition: bottom 0.5s cubic-bezier(.19,1,.22,1), transform 0.5s cubic-bezier(.19,1,.22,1);
2022-07-29 12:53:36 +00:00
}
.flyout-dim {
margin: 0; padding: 0;
width: 100vw; height: 100vh;
left: 0; top: 0;
position: fixed; z-index: 99998;
opacity: 0.8;
display: none;
background: var(--bg);
}
2022-07-28 10:59:16 +00:00
/*
-=-=-= FONT SIZES =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
h1, h2, h3, h4 {
margin: 0 0 0.5rem 0;
font-family: "Lexend Deca", sans-serif;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 27px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 21px;
}
p, a {
margin: 0 0 0.5rem 0;
font-family: "Fira Code", monospace;
}
2022-07-28 13:04:44 +00:00
a {
text-decoration: none;
}
2022-07-28 10:59:16 +00:00
a:hover {
color: var(--orange);
}