不成熟的改进

This commit is contained in:
2025-07-19 23:20:36 +08:00
parent 768b5bc5bc
commit 7e28958462
8 changed files with 391 additions and 30 deletions

55
styles.tcss Normal file
View File

@@ -0,0 +1,55 @@
Screen {
align: center middle;
}
#main_container {
align: center middle;
width: 80%;
height: auto;
border: thick $primary-lighten-2;
padding: 2;
}
#sentence {
content-align: center middle;
width: 100%;
height: 5;
margin-bottom: 2;
text-style: bold;
}
#progress {
width: 100%;
content-align: center middle;
margin-bottom: 1;
color: $text-muted;
}
Button {
align-horizontal: center;
width: 50%;
margin: 0 0;
}
.choice {
align-horizontal: center;
width: 50%;
margin: 0 0;
height: auto;
}
/* no_margin.tcss */
#button_container {
align-horizontal: center;
height: 9;
}
/* 选中 #button_container 下所有的 Horizontal 子元素 */
#button_container > Horizontal {
margin-top: 0;
margin-bottom: 0;
align-horizontal: center;
width: 40%;
}