mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
renamed introduction to tutorial
This commit is contained in:
53
docs/examples/tutorial/stopwatch.css
Normal file
53
docs/examples/tutorial/stopwatch.css
Normal file
@@ -0,0 +1,53 @@
|
||||
Stopwatch {
|
||||
layout: horizontal;
|
||||
background: $panel-darken-1;
|
||||
height: 5;
|
||||
min-width: 50;
|
||||
margin: 1;
|
||||
padding: 1;
|
||||
}
|
||||
|
||||
TimeDisplay {
|
||||
content-align: center middle;
|
||||
text-opacity: 60%;
|
||||
height: 3;
|
||||
}
|
||||
|
||||
Button {
|
||||
width: 16;
|
||||
}
|
||||
|
||||
#start {
|
||||
dock: left;
|
||||
}
|
||||
|
||||
#stop {
|
||||
dock: left;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#reset {
|
||||
dock: right;
|
||||
}
|
||||
|
||||
.started {
|
||||
text-style: bold;
|
||||
background: $success;
|
||||
color: $text-success;
|
||||
}
|
||||
|
||||
.started TimeDisplay {
|
||||
text-opacity: 100%;
|
||||
}
|
||||
|
||||
.started #start {
|
||||
display: none
|
||||
}
|
||||
|
||||
.started #stop {
|
||||
display: block
|
||||
}
|
||||
|
||||
.started #reset {
|
||||
visibility: hidden
|
||||
}
|
||||
Reference in New Issue
Block a user