make disabled buttons more obviously disabled

This commit is contained in:
or-else
2023-01-10 17:59:12 -08:00
parent 2d76befea1
commit c085ef8ce1
4 changed files with 14 additions and 13 deletions
+7 -6
View File
@@ -96,6 +96,7 @@ html input[disabled] {
cursor: default;
opacity: 0.65;
box-shadow: none;
filter: grayscale(50%);
}
button.round {
@@ -117,7 +118,7 @@ button.round.small {
box-shadow: 0 2px 0.35rem 0 rgba(0, 0, 0, 0.25);
}
button:focus, button:hover, button:active {
button:focus:not([disabled]), button:hover:not([disabled]), button:active:not([disabled]) {
color: #fff;
}
button:active {
@@ -131,7 +132,7 @@ button.primary {
background-color: #1e88e5; /* blue 600 */
color: white;
}
button.primary:focus, button.primary:hover, button.primary:active {
button.primary:focus:not([disabled]), button.primary:hover:not([disabled]), button.primary:active:not([disabled]) {
background-color: #2962ff;
}
@@ -139,7 +140,7 @@ button.secondary {
background-color: #FFF;
color: #2196f3; /* blue 500 */
}
button.secondary:focus, button.secondary:hover, button.secondary:active {
button.secondary:focus:not([disabled]), button.secondary:hover:not([disabled]), button.secondary:active:not([disabled]) {
background-color: #e3f2fd;
}
@@ -149,7 +150,7 @@ button.outline {
border: 1px solid silver;
box-shadow: none;
}
button.outline:focus, button.outline:hover, button.outline:active {
button.outline:focus:not([disabled]), button.outline:hover:not([disabled]), button.outline:active:not([disabled]) {
background-color: #e8eaf6; /* indigo 50 */
}
@@ -157,7 +158,7 @@ button.danger {
background-color: #ec6560;
color: white;
}
button.danger:focus, button.danger:hover, button.danger:active {
button.danger:focus:not([disabled]), button.danger:hover:not([disabled]), button.danger:active:not([disabled]) {
background-color: #f77;
}
@@ -165,7 +166,7 @@ button.positive {
background-color: #71c46f;
color: white;
}
button.positive:focus, button.positive:hover, button.positive:active {
button.positive:focus:not([disabled]), button.positive:hover:not([disabled]), button.positive:active:not([disabled]) {
background-color: rgb(127, 237, 127);
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+5 -5
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long