Skip to content

Commit f607c23

Browse files
style(ui): set specific bg img for main container in light mode
1 parent 602289d commit f607c23

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed

ui/public/bg-inverted.svg

+59
Loading

ui/src/layouts/AppLayout.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<v-main data-test="main">
125125
<slot>
126126
<v-container
127-
class="pa-8"
127+
:class="{ 'pa-8': true, 'container-light-bg': getStatusDarkMode == 'light' }"
128128
fluid
129129
data-test="container"
130130
>
@@ -308,11 +308,15 @@ defineExpose({
308308
height: 100vh !important;
309309
}
310310
311-
.v-container {
311+
:deep(.v-container) {
312312
min-height: calc(100vh - 64px);
313313
background-image: linear-gradient(155deg, rgb(var(--v-theme-primary),0.10) 0%, transparent 30%), url(/bg.svg);
314314
background-position: 0% 0;
315315
background-repeat: no-repeat;
316316
background-size: auto;
317317
}
318+
319+
.container-light-bg {
320+
background-image: linear-gradient(155deg, rgb(var(--v-theme-primary),0.10) 0%, transparent 0%), url(/bg-inverted.svg);
321+
}
318322
</style>

0 commit comments

Comments
 (0)