diff --git a/docs/components/dropDown.md b/docs/components/dropDown.md index ba0839d2a..cab2beeff 100644 --- a/docs/components/dropDown.md +++ b/docs/components/dropDown.md @@ -464,9 +464,9 @@ export default { -## Buttom +## Button -You can customize the component or element that initialize the dropdown in this case is a Buttom that is the most common +You can customize the component or element that initialize the dropdown in this case, it is a Button that is the most common :::tip The component or element that initializes the dropdown is the one inside it with the possibility of total customization and flexibility in the required use @@ -484,7 +484,7 @@ You can customize the component or element that initialize the dropdown in this
- +
@@ -591,7 +591,7 @@ export default { align-items: center; justify-content: center; button - margin: 0px !important + margin: 0px !important; &.btnx margin-left: 10px !important; border-radius: 5px 0px 0px 5px; diff --git a/src/components/vsCheckBox/main.styl b/src/components/vsCheckBox/main.styl index 5681ba5a6..a02a9cb8c 100644 --- a/src/components/vsCheckBox/main.styl +++ b/src/components/vsCheckBox/main.styl @@ -22,6 +22,16 @@ z-index: 200; cursor: pointer; background: rgb(85, 215, 117); + &:disabled + cursor: default; + pointer-events: none; + & + span.checkbox_x + opacity $vs-disabled-opacity; + cursor: default; + pointer-events: none; + span._check + cursor: default; + pointer-events: none; &:active:checked & + span.checkbox_x span._check diff --git a/src/components/vsCollapse/main.styl b/src/components/vsCollapse/main.styl index 2224f11cf..32fc5abd1 100644 --- a/src/components/vsCollapse/main.styl +++ b/src/components/vsCollapse/main.styl @@ -9,8 +9,10 @@ border-bottom: 1px solid rgba(0,0,0,.04) transition: all .25s ease &.disabledx - opacity .5 - pointer-events: none + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + z-index: 999; header display: block padding: 10px diff --git a/src/components/vsDropDown/main.styl b/src/components/vsDropDown/main.styl index 82111d67d..831bd78e6 100644 --- a/src/components/vsDropDown/main.styl +++ b/src/components/vsDropDown/main.styl @@ -117,7 +117,8 @@ user-select: none; pointer-events: none !important; cursor: default; - opacity: .3 !important; + opacity: $vs-disabled-opacity !important; + color: rgba(0,0,0,$vs-disabled-opacity) !important; &.vsDivider border-top: 1px solid rgba(0, 0, 0, 0.08) margin-top: 5px; diff --git a/src/components/vsInput/main.styl b/src/components/vsInput/main.styl index 5ee3a1905..17d20fee1 100644 --- a/src/components/vsInput/main.styl +++ b/src/components/vsInput/main.styl @@ -65,6 +65,14 @@ + .input-span-placeholder padding-left: .4rem; padding-right: 28px + &:disabled + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + + .input-span-placeholder + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; .input-span-placeholder transition: all .2s ease position: absolute diff --git a/src/components/vsInputNumber/main.styl b/src/components/vsInputNumber/main.styl index 124b44a59..253eab307 100644 --- a/src/components/vsInputNumber/main.styl +++ b/src/components/vsInputNumber/main.styl @@ -43,7 +43,9 @@ color: rgba(255,255,255,1) backface-visibility hidden &:disabled - opacity: .5 !important + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; i font-size: .9rem @@ -52,10 +54,30 @@ transform translate(10px) &:active transform scale(.9) translate(10px) !important + &:disabled + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + background-color: rgba(0,0,0,$vs-disabled-opacity) !important; + &.btn-plus.limit + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + background-color: rgba(0,0,0,$vs-disabled-opacity) !important; &.btn-less transform translate(-10px) &:active transform scale(.9) translate(-10px) !important + &:disabled + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + background-color: rgba(0,0,0,$vs-disabled-opacity) !important; + &.btn-less.limit + opacity: $vs-disabled-opacity; + cursor: default; + pointer-events: none; + background-color: rgba(0,0,0,$vs-disabled-opacity) !important; &.vs-input-number-size-medium input diff --git a/src/components/vsInputNumber/vsInputNumber.vue b/src/components/vsInputNumber/vsInputNumber.vue index baf9ca732..55c648a3b 100644 --- a/src/components/vsInputNumber/vsInputNumber.vue +++ b/src/components/vsInputNumber/vsInputNumber.vue @@ -9,9 +9,11 @@