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