mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* checkbox widget * fixes * Checkbox additions, fix content width in horizontal layout * Update docs, add tests for checkbox * Remove some test code * Small renaming of test class Co-authored-by: Will McGugan <willmcgugan@gmail.com>
29 lines
325 B
CSS
29 lines
325 B
CSS
Screen {
|
|
align: center middle;
|
|
}
|
|
|
|
Container {
|
|
width: 50;
|
|
height: 15;
|
|
background: $boost;
|
|
align: center middle;
|
|
}
|
|
|
|
Checkbox {
|
|
}
|
|
|
|
#check {
|
|
background: red;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
#check > .checkbox--switch {
|
|
color: red;
|
|
background: blue;
|
|
}
|
|
|
|
#check:focus {
|
|
tint: magenta 60%;
|
|
}
|