Skip to content

Commit

Permalink
support light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Ledoux committed Oct 25, 2024
1 parent 8c37d4d commit 43abb10
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 6 deletions.
File renamed without changes
Binary file added ui/src/assets/dots-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions ui/src/assets/icons/blueprint-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ui/src/assets/icons/blueprint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
</template>

<style scoped lang="scss">
@import "@kestra-io/ui-libs/src/scss/variables.scss";
.blueprints {
background: url(../../../../assets/dots-bg-2.jpg) no-repeat top left;
background-color: #1C1E27;
background: var(--bg-dots-image) no-repeat top left;
background-color: var(--bg-dots-color);
background-size: 1654px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<nav class="header container">
<div class="image-box">
<img src="../../../../assets/icons/blueprint.svg" :alt="$t('blueprints.header.alt')">
<img src="../../../../assets/icons/blueprint-dark.svg" :alt="$t('blueprints.header.alt')" class="blueprint-dark">
</div>
<h4 class="catch-phrase">
{{ $t("blueprints.header.catch phrase.2") }}
Expand All @@ -20,18 +21,32 @@
padding-bottom: calc(2 * var(--spacer));
.catch-phrase {
color: $white;
color: var(--bs-heading-color);
margin-bottom: 0;
}
.image-box{
border: 1px solid var(--bs-border-color);
background-color: #2F334280;
background-color: var(--bs-card-bg);
padding: 9px;
border-radius: 7px;
box-shadow:
0px 4px 12px 0px #53009F,
1px 1px 0px 0px #FF4BBD;
& > img.blueprint-dark {
display: none;
}
}
.dark & {
.image-box > img{
display: none;
}
.image-box > img.blueprint-dark{
display: block;
}
}
}
</style>
2 changes: 2 additions & 0 deletions ui/src/styles/layout/root-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ html.dark {

--input-suffix-color: #C6C1D9;
--white-black-font-color: #{$white};
--bg-dots-image: url(../../assets/dots-bg-dark.jpg);
--bg-dots-color: $gray-900;

$content-information: #c7f0ff;
$content-running: #bbbbff;
Expand Down
2 changes: 2 additions & 0 deletions ui/src/styles/layout/root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
--input-suffix-color: #574F6C;
--white-black-font-color: #{$black};
--top-navbar-height: 79px;
--bg-dots-image: url(./assets/dots-bg.jpg);
--bg-dots-color: #FAFAFF;
}

:root {
Expand Down

0 comments on commit 43abb10

Please sign in to comment.