Fix profile and add gradient-primary-background

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ 2022-05-12 11:23:11 +02:00
parent b8a7ab9941
commit 264adf0c3b
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
16 changed files with 26 additions and 19 deletions

View file

@ -162,7 +162,7 @@ export default {
height: 70px;
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
background-color: var(--color-primary);
background-image: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%);
background-image: var(--gradient-primary-background);
span {
bottom: 0;

View file

@ -121,6 +121,8 @@ class DefaultTheme implements ITheme {
'--color-primary-element-hover' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, 80),
'--color-primary-element-light' => $this->util->lighten($this->util->elementColor($this->primaryColor), 15),
'--color-primary-element-lighter' => $this->util->mix($this->util->elementColor($this->primaryColor), $colorMainBackground, -70),
// to use like this: background-image: var(--gradient-primary-background);
'--gradient-primary-background' => 'linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%)',
// max contrast for WCAG compliance
'--color-main-text' => $colorMainText,

View file

@ -71,7 +71,7 @@
z-index: 2000;
height: 50px;
background-color: var(--color-primary);
background-image: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%);
background-image: var(--gradient-primary-background);
box-sizing: border-box;
justify-content: space-between;
}

View file

@ -51,7 +51,7 @@
z-index: 2000;
height: variables.$header-height;
background-color: var(--color-primary);
background-image: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%);
background-image: var(--gradient-primary-background);
box-sizing: border-box;
justify-content: space-between;
}

View file

@ -2288,7 +2288,7 @@ label.infield {
z-index: 2000;
height: 50px;
background-color: var(--color-primary);
background-image: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-element-light) 100%);
background-image: var(--gradient-primary-background);
box-sizing: border-box;
justify-content: space-between;
}

View file

@ -312,6 +312,8 @@ $content-max-width: 640px;
position: sticky;
height: 190px;
top: -40px;
background-color: var(--color-primary);
background-image: var(--gradient-primary-background);
&__container {
align-self: flex-end;
@ -576,6 +578,9 @@ $content-max-width: 640px;
display: flex;
justify-content: center;
gap: 0 4px;
a {
filter: var(--background-invert-if-dark);
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long