Skip to content

Commit

Permalink
style(ui): set specific bg img for main container in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosbarreto committed Jan 22, 2025
1 parent 602289d commit 0f40eed
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 2 deletions.
59 changes: 59 additions & 0 deletions ui/public/bg-inverted.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions ui/src/layouts/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<v-main data-test="main">
<slot>
<v-container
class="pa-8"
:class="{ 'pa-8': true, 'container-light-bg': getStatusDarkMode == 'light' }"
fluid
data-test="container"
>
Expand Down Expand Up @@ -308,11 +308,15 @@ defineExpose({
height: 100vh !important;
}
.v-container {
:deep(.v-container) {
min-height: calc(100vh - 64px);
background-image: linear-gradient(155deg, rgb(var(--v-theme-primary),0.10) 0%, transparent 30%), url(/bg.svg);
background-position: 0% 0;
background-repeat: no-repeat;
background-size: auto;
}
.container-light-bg {
background-image: linear-gradient(155deg, rgb(var(--v-theme-primary),0.10) 0%, transparent 0%), url(/bg-inverted.svg);
}
</style>

0 comments on commit 0f40eed

Please sign in to comment.