Removed fullscreen close button

Fixed button colours
Added primary/good options for some assets
This commit is contained in:
Michał Gdula 2022-11-10 11:27:40 +00:00
parent bd7765b376
commit a6b9ab0e5a
10 changed files with 195 additions and 138 deletions

View file

@ -27,7 +27,7 @@
--alert: #d8a657;
--success: #8c977d;
--neutral: #121212;
--shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
--shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
--rad: 0.4rem;
--border: #8c977d 0.2rem solid;
}
@ -42,7 +42,7 @@ nav {
color: #e8e3e3;
border-radius: 0.4rem;
border: #8c977d 0.2rem solid;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
display: flex;
flex-direction: row;
flex-wrap: wrap;
@ -122,17 +122,15 @@ nav .btn {
@media (max-width: 550px) {
nav {
margin: 0;
padding-bottom: 1rem;
padding-bottom: 2rem;
position: fixed;
top: auto;
bottom: 0;
bottom: -1rem;
left: 0;
right: 0;
border: none;
border-top: #8c977d 0.2rem solid;
border-radius: 0;
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
}
nav .svg {
margin: 0;
@ -178,7 +176,7 @@ nav .btn {
color: #e8e3e3;
border-radius: 0.4rem;
border: #8c977d 0.2rem solid;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
}
.warningDecoration {
@ -186,7 +184,7 @@ nav .btn {
color: #e8e3e3;
border-radius: 0.4rem;
border: #b66467 0.2rem solid;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
}
.defaultFonts h1,
@ -244,7 +242,7 @@ nav .btn {
}
.gallery-item:hover {
transform: scale(1.15) rotate(5deg);
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
z-index: 9;
}
.gallery-item:active {
@ -328,8 +326,8 @@ nav .btn {
|-------------------------------------------------------------
*/
.fullscreen-image {
width: 100vw;
height: 100vh;
width: 110vw;
height: 110vh;
position: fixed;
top: 50%;
left: 50%;
@ -343,39 +341,16 @@ nav .btn {
opacity: 0;
}
.fullscreen-image img {
max-width: 95%;
max-height: 95%;
max-width: calc(95% - 10rem);
max-height: calc(95% - 10rem);
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
border-radius: 0.4rem;
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
z-index: 1;
}
.fullscreen-image button {
padding: 0.25rem;
width: 2rem;
height: 2rem;
position: absolute;
top: 1.25rem;
right: 1.25rem;
display: block;
box-sizing: border-box;
border: none;
border-radius: 3px;
transition: outline 0.1s cubic-bezier(0.19, 1, 0.22, 1);
background-color: #121212;
z-index: 2;
}
.fullscreen-image button img {
width: 1.5rem;
display: block;
}
.fullscreen-image button:hover {
outline: #e8e3e3 0.2rem solid;
color: #e8e3e3;
cursor: pointer;
}
.image-container {
margin: 1rem 0 2rem 0;
@ -717,12 +692,47 @@ nav .btn {
.upload-root > img {
margin: 0 auto;
max-width: 100%;
max-height: 15rem;
height: 15rem;
border-radius: 3px;
display: none;
flex-direction: column;
}
.upload-root > #imagePreviewBlock {
margin: 0 auto;
max-width: 100%;
height: 15rem;
-webkit-animation: uploadGradient 10s ease infinite;
animation: uploadGradient 10s ease infinite;
background: linear-gradient(-45rad, #000000, #EE7752, #E73C7E, #23A6D5, #23D5AB);
background-size: 200% 200%;
border-radius: 3px;
display: flex;
flex-direction: column;
}
@-webkit-keyframes uploadGradient {
0% {
background-position: 10% 0%;
}
50% {
background-position: 91% 100%;
}
100% {
background-position: 10% 0%;
}
}
@keyframes uploadGradient {
0% {
background-position: 10% 0%;
}
50% {
background-position: 91% 100%;
}
100% {
background-position: 10% 0%;
}
}
/*
|-------------------------------------------------------------
| ACCOUNT
@ -1142,6 +1152,11 @@ a.btn {
background-image: linear-gradient(to top, #7f8b6f, #8c977d);
}
.btn-primary {
background-color: #8c977d;
background-image: linear-gradient(to top, #7f8b6f, #8c977d);
}
.btn-neutral {
background-color: #121212;
background-image: linear-gradient(to top, #111111, #121212);
@ -1167,6 +1182,11 @@ a.btn {
border-radius: 3px;
}
.alert-good {
border-color: #8c977d;
background-image: linear-gradient(120deg, rgba(140, 151, 125, 0.3), rgba(21, 21, 21, 0));
}
.alert-bad {
border-color: #b66467;
background-image: linear-gradient(120deg, rgba(182, 100, 103, 0.3), rgba(21, 21, 21, 0));
@ -1221,6 +1241,13 @@ a.btn {
.badge.badge-primary.link:hover {
color: #8c977d;
}
.badge.badge-good {
background: rgba(140, 151, 125, 0.3);
border: #8c977d 0.2rem solid;
}
.badge.badge-good.link:hover {
color: #8c977d;
}
.badge.badge-critical {
background: rgba(182, 100, 103, 0.3);
border: #b66467 0.2rem solid;
@ -1306,7 +1333,8 @@ br {
*/
a.link {
display: inline;
text-decoration: underline;
-webkit-text-decoration: underline 0.2rem solid #8c977d;
text-decoration: underline 0.2rem solid #8c977d;
}
a.link:hover {
color: #8c977d;
@ -1330,7 +1358,7 @@ a.link:hover {
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border-radius: 3px;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.4);
box-shadow: 6px 6px 10px rgba(21, 21, 21, 0.4);
transition: right 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}
#back-to-top:hover {

View file

@ -182,6 +182,15 @@ a.btn {
}
.btn-good {
background-color: $success;
background-image: linear-gradient(
to top,
darken($success, 5%),
$success
);
}
.btn-primary {
background-color: $page-accent;
background-image: linear-gradient(
to top,
@ -225,6 +234,12 @@ a.btn {
}
}
.alert-good {
border-color: $page-accent;
background-image: linear-gradient(120deg, rgba($page-accent, 0.3),rgba($bg, 0)
);
}
.alert-bad {
border-color: $warning;
background-image: linear-gradient(120deg, rgba($warning, 0.3), rgba($bg, 0));
@ -236,12 +251,8 @@ a.btn {
}
.alert-good {
border-color: $page-accent;
background-image: linear-gradient(
120deg,
rgba($page-accent, 0.3),
rgba($bg, 0)
);
border-color: $success;
background-image: linear-gradient(120deg, rgba($success, 0.3), rgba($bg, 0));
}
.alert-box {
@ -300,6 +311,10 @@ a.btn {
@include badge($page-accent);
}
&.badge-good {
@include badge($success);
}
&.badge-critical {
@include badge($red);
}
@ -381,7 +396,7 @@ br {
*/
a.link {
display: inline;
text-decoration: underline;
text-decoration: underline $border-thickness solid $page-accent;
&:hover {
color: $page-accent;

View file

@ -176,8 +176,8 @@
|-------------------------------------------------------------
*/
.fullscreen-image {
width: 100vw;
height: 100vh;
width: 110vw;
height: 110vh;
position: fixed;
top: 50%;
@ -194,60 +194,22 @@
display: none; // Automatically hidden, revealed on fullscreen
opacity: 0; // expose
img {
max-width: 95%;
max-height: 95%;
max-width: calc(95% - 10rem);
max-height: calc(95% - 10rem);
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
border-radius: $rad;
box-shadow: $shadow;
z-index: +1;
}
button {
padding: 0.25rem;
width: 2rem;
height: 2rem;
position: absolute;
top: 1.25rem;
right: 1.25rem;
display: block;
box-sizing: border-box;
border: none;
@if calc($rad - 0.5rem) > 0 {
border-radius: calc($rad - 0.5rem);
} @else {
border-radius: 3px;
}
transition: outline 0.1s cubic-bezier(0.19, 1, 0.22, 1);
background-color: $black;
z-index: +2;
img {
width: 1.5rem;
display: block;
}
&:hover {
outline: $white 0.2rem solid;
color: $fg;
cursor: pointer;
}
}
}
.image-container {
@ -700,20 +662,48 @@
| UPLOAD
|-------------------------------------------------------------
*/
.upload-root > img {
margin: 0 auto;
max-width: 100%;
max-height: 15rem;
@if calc($rad - 0.5rem) > 0 {
border-radius: calc($rad - 0.5rem);
} @else {
border-radius: 3px;
.upload-root {
> img {
margin: 0 auto;
max-width: 100%;
height: 15rem;
@if calc($rad - 0.5rem) > 0 {
border-radius: calc($rad - 0.5rem);
} @else {
border-radius: 3px;
}
display: none;
flex-direction: column;
}
display: flex;
flex-direction: column;
> #imagePreviewBlock {
margin: 0 auto;
max-width: 100%;
height: 15rem;
animation: uploadGradient 10s ease infinite;
background: linear-gradient(-45rad, #000000, #EE7752, #E73C7E, #23A6D5, #23D5AB);
background-size: 200% 200%;
@if calc($rad - 0.5rem) > 0 {
border-radius: calc($rad - 0.5rem);
} @else {
border-radius: 3px;
}
display: flex;
flex-direction: column;
}
}
@keyframes uploadGradient {
0%{background-position:10% 0%}
50%{background-position:91% 100%}
100%{background-position:10% 0%}
}
/*

View file

@ -101,11 +101,11 @@ nav {
@media (max-width: 550px) {
nav {
margin: 0;
padding-bottom: 1rem;
padding-bottom: 2rem;
position: fixed;
top: auto;
bottom: 0;
bottom: -1rem;
left: 0;
right: 0;
@ -113,11 +113,8 @@ nav {
border-top: $border;
border-radius: 0;
backdrop-filter: blur(16px);
.svg {
margin: 0;
display: block;
}
}

View file

@ -14,13 +14,13 @@ $purple: #a988b0;
$black: #121212;
$white: #e8e3e3;
$page-accent: #8c977d;
$page-accent: $green;
$warning: $red;
$alert: $orange;
$success: $green;
$neutral: $black;
$shadow: 6px 6px 2px #15151566;
$shadow: 6px 6px 10px #15151566;
$rad: 0.4rem;
$border-thickness: 0.2rem;