mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
28
docs/examples/widgets/switch.tcss
Normal file
28
docs/examples/widgets/switch.tcss
Normal file
@@ -0,0 +1,28 @@
|
||||
Screen {
|
||||
align: center middle;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
Switch {
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.label {
|
||||
height: 3;
|
||||
content-align: center middle;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#custom-design {
|
||||
background: darkslategrey;
|
||||
}
|
||||
|
||||
#custom-design > .switch--slider {
|
||||
color: dodgerblue;
|
||||
background: darkslateblue;
|
||||
}
|
||||
Reference in New Issue
Block a user