mithril-materialized 3.4.5 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,32 +76,32 @@ textarea.materialize-textarea {
76
76
  }
77
77
 
78
78
  // Valid Input Style
79
- &.valid,
80
- &:focus.valid {
79
+ &.valid:not([readonly]):not([disabled]),
80
+ &:focus.valid:not([readonly]):not([disabled]) {
81
81
  @extend %valid-input-style !optional;
82
82
  }
83
83
 
84
84
  // Custom Success Message
85
- &.valid ~ .helper-text:after,
86
- &:focus.valid ~ .helper-text:after {
85
+ &.valid:not([readonly]):not([disabled]) ~ .helper-text:after,
86
+ &:focus.valid:not([readonly]):not([disabled]) ~ .helper-text:after {
87
87
  @extend %custom-success-message !optional;
88
88
  }
89
- &:focus.valid ~ label {
89
+ &:focus.valid:not([readonly]):not([disabled]) ~ label {
90
90
  color: variables.$input-success-color;
91
91
  }
92
92
 
93
93
  // Invalid Input Style
94
- &.invalid,
95
- &:focus.invalid {
94
+ &.invalid:not([readonly]):not([disabled]),
95
+ &:focus.invalid:not([readonly]):not([disabled]) {
96
96
  @extend %invalid-input-style !optional;
97
97
  }
98
98
 
99
99
  // Custom Error message
100
- &.invalid ~ .helper-text:after,
101
- &:focus.invalid ~ .helper-text:after {
100
+ &.invalid:not([readonly]):not([disabled]) ~ .helper-text:after,
101
+ &:focus.invalid:not([readonly]):not([disabled]) ~ .helper-text:after {
102
102
  @extend %custom-error-message !optional;
103
103
  }
104
- &:focus.invalid ~ label {
104
+ &:focus.invalid:not([readonly]):not([disabled]) ~ label {
105
105
  color: variables.$input-error-color;
106
106
  }
107
107