Skip to content

Commit bd73bcc

Browse files
committed
fix(styles): Adjust background stylings
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 752e3b9 commit bd73bcc

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

core/css/apps.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ html {
2929
width: 100%;
3030
height: 100%;
3131
position: absolute;
32-
// color-background-plain should always be defined. It is the primary user colour
32+
// color-background-plain should always be defined.
3333
background-color: var(--color-background-plain, var(--color-main-background));
3434
}
3535

3636
body {
37-
// color-background-plain should always be defined. It is the primary user colour
37+
// color-background-plain should always be defined.
3838
background-color: var(--color-background-plain, var(--color-main-background));
39-
// user background, or plain colour and finally default admin background
40-
background-image: var(--image-background, var(--image-background-plain, var(--image-background-default)));
39+
// user background, or plain color
40+
background-image: var(--image-background);
4141
background-size: cover;
4242
background-position: center;
4343
position: fixed;

core/css/guest.scss

+7-10
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ body {
2525
font-size: .875em;
2626
line-height: 1.6em;
2727
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, Ubuntu, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
28-
color: var(--color-text);
28+
color: var(--color-background-plain-text, #ffffff);
2929
text-align: center;
30-
/* As guest, there is no color-background-plain */
31-
background-color: var(--color-background-plain, var(--color-primary-element-default, #0082c9));
32-
/* As guest, there is no user background (--image-background)
33-
1. User background if logged in ('no' if removed, that way the variable is _defined_)
34-
2. Empty background if enabled ('yes' is used, that way the variable is _defined_)
35-
3. Else default background
36-
4. Finally default gradient (should not happened, the background is always defined anyway) */
37-
background-image: var(--image-background, var(--image-background-plain, var(--image-background-default, linear-gradient(40deg, #0082c9 0%, #30b6ff 100%))));
38-
background-attachment: fixed;
30+
background-color: var(--color-background-plain, #0082c9);
31+
/*
32+
User background if logged in ('no' if removed, that way the variable is _defined_)
33+
Fallback to default gradient (should not happened, the background is always defined anyway) */
34+
background-image: var(--image-background, linear-gradient(40deg, #0082c9 0%, #30b6ff 100%));
35+
background-attachment: fixed;
3936
min-height: 100%; /* fix sticky footer */
4037
height: auto;
4138
overflow: auto;

core/css/header.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162

163163
/* Right header standard */
164164
.header-right {
165-
> .header-menu img {
165+
> .header-menu__trigger img {
166166
filter: var(--background-image-invert-if-bright);
167167
}
168168
> div,

0 commit comments

Comments
 (0)