mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
simplify css
This commit is contained in:
@@ -57,6 +57,7 @@ class Button(Widget, can_focus=True):
|
||||
background: $panel;
|
||||
border-bottom: tall $panel-lighten-2;
|
||||
border-top: tall $panel-darken-2;
|
||||
tint: $background 30%;
|
||||
}
|
||||
|
||||
/* Primary variant */
|
||||
@@ -74,10 +75,6 @@ class Button(Widget, can_focus=True):
|
||||
|
||||
}
|
||||
|
||||
Button.-active {
|
||||
tint: $background 30%;
|
||||
}
|
||||
|
||||
Button.-primary.-active {
|
||||
background: $primary;
|
||||
border-bottom: tall $primary-lighten-3;
|
||||
|
||||
Reference in New Issue
Block a user