mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add complete alignment grid screenshot.
This commit is contained in:
53
docs/examples/styles/align_all.css
Normal file
53
docs/examples/styles/align_all.css
Normal file
@@ -0,0 +1,53 @@
|
||||
#left-top {
|
||||
/* align: left top; this is the default value and is implied. */
|
||||
}
|
||||
|
||||
#center-top {
|
||||
align: center top;
|
||||
}
|
||||
|
||||
#right-top {
|
||||
align: right top;
|
||||
}
|
||||
|
||||
#left-middle {
|
||||
align: left middle;
|
||||
}
|
||||
|
||||
#center-middle {
|
||||
align: center middle;
|
||||
}
|
||||
|
||||
#right-middle {
|
||||
align: right middle;
|
||||
}
|
||||
|
||||
#left-bottom {
|
||||
align: left bottom;
|
||||
}
|
||||
|
||||
#center-bottom {
|
||||
align: center bottom;
|
||||
}
|
||||
|
||||
#right-bottom {
|
||||
align: right bottom;
|
||||
}
|
||||
|
||||
Screen {
|
||||
layout: grid;
|
||||
grid-size: 3 3;
|
||||
grid-gutter: 1;
|
||||
}
|
||||
|
||||
Container {
|
||||
background: $boost;
|
||||
border: solid gray;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
Label {
|
||||
width: auto;
|
||||
height: 1;
|
||||
background: $accent;
|
||||
}
|
||||
Reference in New Issue
Block a user