@@ -62,17 +62,24 @@
@hide="closeMenu"
>
+
+ {{ translations.defaultBtnLabel }}
+
{{ translations.cancelBtnLabel }}
@@ -106,6 +113,11 @@ export default {
default: 'rgba(0,0,0,0)',
},
+ defaultValue: {
+ type: String,
+ default: '',
+ },
+
translations: {
type: Object,
},
@@ -133,21 +145,12 @@ export default {
}
},
- computed: {
- pickedColor: {
- get () {
- return this.value
- },
-
- set (pickedColor) {
- this.pickedColor = pickedColor
- },
- },
- },
-
watch: {
- value (value) {
- this.currentColor = value
+ value: {
+ immediate: true,
+ handler (value) {
+ this.currentColor = value
+ },
},
},
@@ -156,6 +159,15 @@ export default {
this.currentColor = hex8
}, 300),
+ resetColor () {
+ this.currentColor = this.defaultValue
+ },
+
+ saveColor () {
+ this.$emit('input', this.currentColor)
+ this.closeMenu()
+ },
+
toggleMenu () {
if (this.showModal) {
this.closeMenu()
@@ -164,11 +176,6 @@ export default {
}
},
- saveColor () {
- this.$emit('input', this.currentColor)
- this.closeMenu()
- },
-
openMenu () {
this.showModal = true
},
@@ -180,12 +187,31 @@ export default {
}
-
diff --git a/lib/vue/src/components/navigation/CSidebar.vue b/lib/vue/src/components/navigation/CSidebar.vue
index e40d8efc5..280303eb1 100644
--- a/lib/vue/src/components/navigation/CSidebar.vue
+++ b/lib/vue/src/components/navigation/CSidebar.vue
@@ -12,6 +12,7 @@
:footer-class="`rounded-right ${isExpanded ? 'px-2' : ''}`"
:no-header="!isExpanded"
:backdrop="isMobile"
+ backdrop-variant="white"
:shadow="isExpanded && 'sm'"
no-slide
:right="right"
@@ -338,7 +339,11 @@ $header-height: 64px;
$nav-width: 320px;
.b-sidebar {
- background-color: var(--sidebar-bg) !important;
+ background-color: var(--white) !important;
+}
+
+.b-sidebar-backdrop {
+ opacity: 0.75 !important;
}
.sidebar {
diff --git a/server/assets/src/scss/main/18201141_custom_webapp.scss b/server/assets/src/scss/main/18201141_custom_webapp.scss
index b5abaeecc..5a7f0bb97 100644
--- a/server/assets/src/scss/main/18201141_custom_webapp.scss
+++ b/server/assets/src/scss/main/18201141_custom_webapp.scss
@@ -116,4 +116,61 @@ a.btn:not(.btn-link) {
-o-transition: min-width 0.2s ease-in-out;
transition: min-width 0.2s ease-in-out;
}
+}
+
+// Remove from here when all ace-editors use c-ace-editor
+.ace_editor {
+ color: var(--black) !important;
+ background-color: var(--white) !important;
+ border-radius: 0.25rem;
+ border: 2px solid var(--extra-light);
+
+ .ace_cursor {
+ border-left: 2px solid var(--black);
+ }
+
+ .ace_gutter {
+ background-color: var(--light) !important;
+ color: var(--black) !important;
+
+ .ace_gutter-active-line {
+ background-color: var(--extra-light) !important;
+ }
+ }
+
+ .ace_text {
+ color: var(--black) !important;
+ }
+
+ .ace_keyword {
+ color: var(--primary) !important;
+ }
+
+ .ace_string {
+ color: var(--secondary) !important;
+ }
+
+ .ace_variable {
+ color: var(--warning) !important;
+ }
+
+ .ace_type {
+ color: var(--secondary) !important;
+ }
+
+ .ace_constant {
+ color: var(--primary) !important;
+ }
+
+ .ace_tag {
+ color: var(--primary) !important;
+ }
+
+ .ace_attribute {
+ color: var(--warning) !important;
+ }
+
+ .ace_comment {
+ color: var(--extra-light) !important;
+ }
}
\ No newline at end of file
diff --git a/server/assets/src/scss/variables/18182031_webapp_variable.scss b/server/assets/src/scss/variables/18182031_webapp_variable.scss
index 44d8218fe..38dec4a1d 100644
--- a/server/assets/src/scss/variables/18182031_webapp_variable.scss
+++ b/server/assets/src/scss/variables/18182031_webapp_variable.scss
@@ -69,6 +69,10 @@ $body-color: $black !default;
$border-color: $extra-light !default;
$hr-border-color: $border-color !default;
+// Modal
+$modal-backdrop-bg: $white !default;
+$modal-backdrop-opacity: .75 !default;
+
// Options
$enable-rounded: true !default;
$enable-gradients: false !default;