1
1
/* General size */
2
2
html { height : fit-content ; min-height : 89px }
3
- body { width : max-content ; margin : 0 ; overflow : clip }
3
+ body { width : max-content ; margin : 0 }
4
4
5
5
/* General font */
6
6
body , button , input , select , textarea {
7
7
font-family : -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI" , Roboto,
8
8
"PingFang SC" , "Hiragino Sans GB" , "Microsoft YaHei" , "Helvetica Neue" , sans-serif ;
9
- font-size : .905rem ; user-select : none
9
+ font-size : .905rem
10
10
}
11
11
a { color : # 999 ; text-decoration : none }
12
12
a : focus , a : hover { text-decoration : underline ; color : inherit }
@@ -49,7 +49,7 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
49
49
display : flex ; min-height : 2rem ; padding : 0 14px 0 2px ; white-space : nowrap ; font-size : 91%
50
50
}
51
51
.menu-icon { padding : 8px }
52
- .menu-area : focus , .menu-area : hover { background : rgb (100 , 149 , 237 ) ; cursor : pointer } /* add hover color/cursor */
52
+ .menu-area : focus , .menu-area : hover { background : rgb (100 , 149 , 237 ) } /* add hover color/cursor */
53
53
.menu-item : hover span : not (.slider ) { filter : invert (1 ) } /* invert setting labels on hover */
54
54
.menu-item > label > .slider { transform : scale (0.95 ) ; top : 1px } /* make child toggles smaller */
55
55
.menu-prompt { margin-left : 2px } /* align non-toggle items */
@@ -58,7 +58,7 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
58
58
.toggle-switch input [type = "checkbox" ] { display : none } /* hide checkbox from toggles */
59
59
.toggle-switch .slider { /* style sliders */
60
60
background-color : white; display : block; border : 1px solid black; border-radius : 7px ;
61
- position : relative ; top : 0.05rem ; height : 10px ; width : 18px ; cursor : pointer ;
61
+ position : relative ; top : 0.05rem ; height : 10px ; width : 18px ;
62
62
}
63
63
.toggle-switch .slider ::before { /* style slider knobs */
64
64
position : absolute ; height : 0.625rem ; width : 0.625rem ; left : -0.04rem ; top : -0.05rem ;
@@ -70,8 +70,14 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
70
70
/* Footer */
71
71
footer { font-size : 12px ; text-align : center ; color : # 999 ; background : # f5f5f5 ; height : 40px ; line-height : 40px }
72
72
footer > .menu-icon { position : absolute ; bottom : -10px ; opacity : 0.7 }
73
- .chatgpt-js { position : absolute ; bottom : -.25rem ; left : 0.7rem ; cursor : pointer }
73
+ .chatgpt-js { position : absolute ; bottom : -.25rem ; left : 0.7rem }
74
74
75
75
/* Master toggle effects */
76
76
.disabled { opacity : 0.3 ; pointer-events : none }
77
77
.enabled { opacity : 1 }
78
+
79
+ /* Non-baseline features */
80
+ @supports (overflow : clip) { body { overflow : clip }}
81
+ @supports (user-select : none) { body , button , input , select , textarea { user-select : none }}
82
+ @supports (cursor : pointer) {
83
+ .menu-area : focus , .menu-area : hover , .toggle-switch .slider , .chatgpt-js { cursor : pointer }}
0 commit comments