Use opacity on disabled/readonly form field

This commit is contained in:
the-djmaze 2022-03-01 10:37:00 +01:00
parent 3de19b22b6
commit 30a6ee5d3d
2 changed files with 2 additions and 9 deletions

View file

@ -127,19 +127,13 @@ input[readonly],
select[readonly],
textarea[readonly] {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
// Explicitly reset the colors here
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
background-color: transparent;
opacity: 0.7;
}
// FORM FIELD FEEDBACK STATES
// --------------------------

View file

@ -68,7 +68,6 @@
@inputBackground: @white;
@inputBorder: #ccc;
@inputBorderRadius: 3px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;
// Dropdowns