mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a wee bit of animation
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
$animation-type: linear;
|
||||||
|
$animatin-speed: 175ms;
|
||||||
|
|
||||||
Game {
|
Game {
|
||||||
align: center middle;
|
align: center middle;
|
||||||
layers: gameplay messages;
|
layers: gameplay messages;
|
||||||
@@ -40,6 +43,7 @@ GameCell {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background: $surface;
|
background: $surface;
|
||||||
border: round $surface-darken-1;
|
border: round $surface-darken-1;
|
||||||
|
transition: background $animatin-speed $animation-type, color $animatin-speed $animation-type;
|
||||||
}
|
}
|
||||||
|
|
||||||
GameCell:hover {
|
GameCell:hover {
|
||||||
|
|||||||
Reference in New Issue
Block a user