mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Tidying Button widget-level CSS
This commit is contained in:
@@ -69,7 +69,7 @@ class Button(Widget, can_focus=True):
|
||||
Button.-success:hover {
|
||||
background: $success-darken-1;
|
||||
color: $text-success-darken-1;
|
||||
border: tall $success-lighten-2; /* TODO: This shouldn't be necessary?? */
|
||||
border: tall $success-lighten-2;
|
||||
}
|
||||
|
||||
.-dark-mode Button.-success {
|
||||
@@ -109,6 +109,7 @@ class Button(Widget, can_focus=True):
|
||||
border: tall $warning-lighten-3;
|
||||
}
|
||||
|
||||
/* Error variant */
|
||||
Button.-error {
|
||||
background: $error;
|
||||
color: $text-error;
|
||||
|
||||
Reference in New Issue
Block a user