Files
textual/docs/examples/introduction/timers.css
2022-08-19 14:13:57 +01:00

59 lines
784 B
CSS

TimerWidget {
layout: horizontal;
background: $panel-darken-1;
border: tall $panel-darken-2;
height: 5;
min-width: 50;
margin: 1;
padding: 0 1;
transition: background 300ms linear;
}
TimerWidget.started {
text-style: bold;
background: $success;
color: $text-success;
border: tall $success-darken-2;
}
TimeDisplay {
content-align: center middle;
opacity: 60%;
height: 3;
}
TimerWidget.started TimeDisplay {
opacity: 100%;
}
Button {
width: 16;
}
#start {
dock: left;
}
#stop {
dock: left;
display: none;
}
#reset {
dock: right;
}
TimerWidget.started #start {
display: none
}
TimerWidget.started #stop {
display: block
}
TimerWidget.started #reset {
visibility: hidden
}