php-gallery/css/master.css

272 lines
4.3 KiB
CSS
Raw Normal View History

2022-07-21 14:53:04 +00:00
:root {
2022-07-21 18:42:03 +00:00
--red: #B66467dd;
--green: #8C977Ddd;
2022-07-21 14:53:04 +00:00
--black: #151515;
--gray: #15151555;
--dark-gray: #151515cc;
--white: #E8E3E3;
--rad: 5px;
--space-xsmall: 0.25rem;
--space-small: 0.5rem;
--space-medium: 1rem;
--space-large: 2rem;
}
* {
font-family: "Rubik", sans-serif;
font-weight: 621;
}
html {
2022-07-21 18:42:03 +00:00
margin: 0;
padding: 0;
2022-07-21 14:53:04 +00:00
}
body {
2022-07-21 18:42:03 +00:00
margin: 0;
padding: var(--space-small);
min-height: calc(100vh - 1rem);
display: flex;
flex-direction: column;
justify-content: space-between;
2022-07-21 14:53:04 +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;
}
.alert {
margin: var(--space-small) 0;
2022-07-21 18:42:03 +00:00
padding: var(--space-medium);
2022-07-21 14:53:04 +00:00
2022-07-21 18:42:03 +00:00
width: calc(100% - (var(--space-large)));
display: inline-block;
2022-07-21 14:53:04 +00:00
border-radius: var(--rad);
}
.alert-high {
background-color: var(--green);
}
.alert-low {
background-color: var(--red);
}
.alert-default {
background-color: var(--gray);
}
2022-07-21 18:42:03 +00:00
.btn {
padding: var(--space-small);
border: none;
2022-07-21 14:53:04 +00:00
display: inline-block;
2022-07-21 18:42:03 +00:00
align-items: center;
border-radius: var(--rad);
}
.btn:hover {
outline: var(--gray) 3px solid;
2022-07-21 14:53:04 +00:00
}
2022-07-21 18:42:03 +00:00
.space-small {
margin-left: var(--space-small);
width: 0;
height: 0;
border: none;
2022-07-21 14:53:04 +00:00
}
/*
-=-=-= NAV =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
2022-07-21 18:42:03 +00:00
nav {
2022-07-21 14:53:04 +00:00
margin: 0;
padding: var(--space-small);
width: calc(100vw - (var(--space-medium) * 2));
2022-07-21 18:42:03 +00:00
height: 2.5rem;
2022-07-21 14:53:04 +00:00
align-items: center;
2022-07-21 18:42:03 +00:00
background-image: url(../assets/nav.svg);
background-position: top;
background-repeat: no-repeat;
background-size: cover;
2022-07-21 14:53:04 +00:00
border-radius: var(--rad);
}
/*
-=-=-= FOOTER =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
2022-07-21 18:42:03 +00:00
footer {
2022-07-21 14:53:04 +00:00
margin: 0;
padding: var(--space-small);
width: calc(100vw - (var(--space-medium) * 2));
2022-07-21 18:42:03 +00:00
background-image: url(../assets/footer.svg);
background-position: bottom;
background-repeat: no-repeat;
background-size: cover;
2022-07-21 14:53:04 +00:00
border-radius: var(--rad);
}
.footer-child {
min-width: 300px;
}
/*
-=-=-= UPLOAD =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.upload-root {
margin: var(--space-large) auto;
padding: var(--space-medium);
max-width: 621px;
background-color: var(--gray);
border-radius: var(--rad);
}
2022-07-21 18:42:03 +00:00
form {
width: 100%;
}
2022-07-21 14:53:04 +00:00
/*
-=-=-= GALLERY =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
2022-07-21 18:42:03 +00:00
.info-text {
margin: var(--space-medium) auto;
max-width: 1500px;
}
2022-07-21 14:53:04 +00:00
.gallery-root {
2022-07-21 18:42:03 +00:00
margin: var(--space-medium) auto;
2022-07-21 14:53:04 +00:00
padding: 0;
max-width: 1500px;
}
.gallery-item {
margin: var(--space-xsmall); padding: 0;
max-width: 300px; height: 200px;
background-color: var(--gray);
border-radius: var(--rad);
flex: 1 0 150px;
transition: transform 0.15s cubic-bezier(.19,1,.22,1);
}
.gallery-image {
margin: 0; padding: 0;
width: 100%; height: 100%;
object-fit: cover;
border-radius: var(--rad);
}
.gallery-item:hover {
2022-07-21 18:42:03 +00:00
transform: scale(1.1);
2022-07-21 14:53:04 +00:00
box-shadow:0 0 5px var(--dark-gray);
}
/*
-=-=-= IMAGE FULLSCREEN =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
.image-container {
2022-07-21 18:42:03 +00:00
margin: var(--space-medium) auto;
2022-07-21 14:53:04 +00:00
padding: 0;
width: calc(100vw - var(--space-medium));
height: 60vh;
position: relative;
}
.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-detail {
2022-07-21 18:42:03 +00:00
margin: var(--space-medium) 0;
padding: var(--space-medium);
2022-07-21 14:53:04 +00:00
background-color: var(--gray);
border-radius: var(--rad);
}
.danger-zone {
2022-07-21 18:42:03 +00:00
margin: var(--space-medium) 0;
padding: var(--space-medium);
2022-07-21 14:53:04 +00:00
background-color: var(--red);
border-radius: var(--rad);
}
/*
-=-=-= TEXT SIZES =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/
h1 {
2022-07-21 18:42:03 +00:00
margin: 0 0 var(--space-small) 0;
2022-07-21 14:53:04 +00:00
font-size: 30px;
}
h2 {
2022-07-21 18:42:03 +00:00
margin: 0 0 var(--space-small) 0;
2022-07-21 14:53:04 +00:00
font-size: 27px;
}
h3 {
2022-07-21 18:42:03 +00:00
margin: 0 0 var(--space-small) 0;
2022-07-21 14:53:04 +00:00
font-size: 24px;
}
h4 {
2022-07-21 18:42:03 +00:00
margin: 0 0 var(--space-small) 0;
2022-07-21 14:53:04 +00:00
font-size: 21px;
}
p {
2022-07-21 18:42:03 +00:00
margin: 0 0 var(--space-small) 0;
2022-07-21 14:53:04 +00:00
}