Merge branch 'shadow-control-2.0' into themes3-grand-finale-maybe
This commit is contained in:
commit
596a1e4961
|
@ -168,6 +168,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-block {
|
.preview-block {
|
||||||
|
background: var(--background, var(--bg));
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -178,6 +179,8 @@
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: var(--border);
|
border-color: var(--border);
|
||||||
|
border-radius: var(--roundness);
|
||||||
|
box-shadow: var(--shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,12 +61,13 @@ label.Select {
|
||||||
&:disabled {
|
&:disabled {
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
opacity: 1; /* override browser */
|
opacity: 1; /* override browser */
|
||||||
|
color: var(--faint);
|
||||||
|
|
||||||
select {
|
select {
|
||||||
&[multiple],
|
&[multiple],
|
||||||
&[size] {
|
&[size] {
|
||||||
option.-active {
|
option.-active {
|
||||||
color: var(--text);
|
color: var(--faint);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default {
|
||||||
props: [
|
props: [
|
||||||
'modelValue', 'fallback', 'separateInset', 'noPreview', 'disabled'
|
'modelValue', 'fallback', 'separateInset', 'noPreview', 'disabled'
|
||||||
],
|
],
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue', 'subShadowSelected'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
selectedId: 0,
|
selectedId: 0,
|
||||||
|
@ -93,9 +93,13 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
selected (value) {
|
||||||
|
this.$emit('subShadowSelected', this.selectedId)
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateProperty: throttle(function (prop, value) {
|
updateProperty: throttle(function (prop, value) {
|
||||||
console.log(prop, value)
|
|
||||||
this.cValue[this.selectedId][prop] = value
|
this.cValue[this.selectedId][prop] = value
|
||||||
if (prop === 'inset' && value === false && this.separateInset) {
|
if (prop === 'inset' && value === false && this.separateInset) {
|
||||||
this.cValue[this.selectedId].spread = 0
|
this.cValue[this.selectedId].spread = 0
|
||||||
|
|
Loading…
Reference in a new issue