Skip to content

Commit b229a0d

Browse files
committed
1 parent b08c00b commit b229a0d

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/App.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default defineComponent({
7070
</script>
7171

7272
<style lang="sass">
73+
@use "sass:color"
7374
@import "@/assets/sass/_variables.sass"
7475
7576
body, main
@@ -143,11 +144,11 @@ h3
143144
opacity: 0.7
144145
145146
a
146-
color: darken($color-accent, 20%)
147+
color: color.adjust($color-accent, $lightness: -20%)
147148
148149
.dark
149150
a
150-
color: lighten($color-accent, 5%)
151+
color: color.adjust($color-accent, $lightness: 5%)
151152
152153
br
153154
user-select: none

src/components/prompteditor/AddedPromptElement.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ export default defineComponent({
9595
</script>
9696

9797
<style lang="sass" scoped>
98+
@use "sass:color"
9899
@import "@/assets/sass/_variables.sass"
99100
100101
.selected
101102
// darken the background color because the delete icon has the same color
102-
background-color: darken($color-accent, 15%)
103+
background-color: color.adjust($color-accent, $lightness: -15%)
103104
104105
.parameter
105106
vertical-align: middle

src/components/properties/ElementProperties.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ export default defineComponent({
239239
240240
.properties-wrapper
241241
text-align: left
242-
// lighten($color-background, 10%)
242+
// color.adjust($color-background, $lightness: 10%)
243243
--popper-theme-background-color: #ffffff
244244
--popper-theme-background-color-hover: #ffffff
245245
246246
&.dark
247-
// lighten($color-foreground, 10%)
247+
// color.adjust($color-foreground, $lightness: 10%)
248248
--popper-theme-background-color: #37414f
249249
--popper-theme-background-color-hover: #37414f
250250

src/components/ui/ColorPicker.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,18 @@ export default defineComponent({
8484
</script>
8585

8686
<style lang="sass" scoped>
87+
@use "sass:color"
8788
@import "@/assets/sass/_variables.sass"
8889
8990
.color-picker
9091
text-align: center
9192
padding: 1em
92-
background: lighten($color-background, 10%)
93+
background: color.adjust($color-background, $lightness: 10%)
9394
box-shadow: 0 0 0.8em 0.2em rgba(0, 0, 0, 0.2)
9495
z-index: 2
9596
9697
&.dark
97-
background: lighten($color-foreground, 10%)
98+
background: color.adjust($color-foreground, $lightness: 10%)
9899
99100
.color-picker_color4
100101
margin-bottom: 0.4em

0 commit comments

Comments
 (0)