File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131body {
3232 font-family : 'Google Sans' , 'Noto Sans SC' ;
3333 color : # 202020 ;
34- background-color : # dfdfdf ;
34+ background-color : var ( --md-sys-color-background ) ;
3535 margin : 0 ;
3636 padding : 0 ;
3737 display : flex;
3838 height : 100vh ;
3939 align-items : center;
4040 justify-content : center;
4141 overflow-y : hidden;
42+ box-sizing : border-box;
4243}
4344h1 {
4445 font-size : 3rem ;
5354 flex-direction : column;
5455 align-items : flex-start;
5556 justify-content : center;
56- gap : 20 px ;
57+ gap : 10 px ;
5758 max-height : 90vh ;
5859 overflow-y : auto;
5960 overflow-x : hidden;
7273input [type = "color" ]{
7374 border-radius : 0px ;
7475 border-color : transparent;
75- background-color : # dfdfdf ;
76+ background-color : var ( --md-sys-color-background ) ;
7677 width : 20% ;
7778}
7879md-outlined-text-field {
@@ -87,4 +88,20 @@ md-outlined-text-field{
8788 width : 100% ;
8889 max-width : 525px ;
8990 margin-bottom : 20px ;
91+ }
92+ .start-btn {
93+ left : 50% ;
94+ transform : translateX (-50% );
95+ margin-top : 10px ;
96+ }
97+
98+ @media screen and (max-aspect-ratio : 1 / 1 ){
99+ .header , .container {
100+ width : 90vw ;
101+ max-width : 90vw ;
102+ }
103+ .selections {
104+ width : 100% ;
105+ max-width : 100% ;
106+ }
90107}
Original file line number Diff line number Diff line change 33< head >
44 < meta charset ="UTF-8 ">
55 < title > ShowOn</ title >
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
67 < link rel ="stylesheet " href ="https://fonts.googleapis.com/css2?family=Google+Sans&display=swap ">
78 < link rel ="stylesheet " href ="https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap ">
89 < link rel ="stylesheet " href ="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&display=swap ">
@@ -18,15 +19,15 @@ <h1 class="mdui-prose">ShowOn</h1>
1819 </ md-icon-button >
1920 </ div >
2021 < div class ="container ">
21- < div class ="selections ">
22+ < div class ="selections text ">
2223 < span > 文本:</ span >
2324 < md-outlined-text-field type ="textarea " label ="输入文本 " rows ="1 "> </ mdui-text-field >
2425 </ div >
2526 < div class ="selections ">
2627 < span > 字体颜色:</ span >
2728 < input type ="color " class ="font-color " value ="#202020 ">
2829 < span > 背景颜色:</ span >
29- < input type ="color " class ="background-color " value ="#dfdfdf ">
30+ < input type ="color " class ="background-color " value ="#fcfcff ">
3031 </ div >
3132 < div class ="selections ">
3233 < span > 模式:</ span >
@@ -37,7 +38,7 @@ <h1 class="mdui-prose">ShowOn</h1>
3738 < label for ="scroll "> 滚动显示</ label >
3839 </ form >
3940 </ div >
40- < md-filled-tonal-button >
41+ < md-filled-tonal-button class =" start-btn " >
4142 启动!
4243 < md-icon slot ="icon "> send</ md-icon >
4344 </ md-filled-tonal-button >
You can’t perform that action at this time.
0 commit comments