1- // 页面布局 CSS 变量
1+ /* 页面布局 CSS 变量 */
22: root {
3- // 头部高度
3+ /* 头部高度 */
44 --g-header-height : 60px ;
5- // 侧边栏宽度
5+
6+ /* 侧边栏宽度 */
67 --g-main-sidebar-width : 80px ;
78 --g-sub-sidebar-width : 220px ;
89 --g-sub-sidebar-collapse-width : 64px ;
9- // 侧边栏Logo高度
10+
11+ /* 侧边栏Logo高度 */
1012 --g-sidebar-logo-height : 50px ;
11- // 顶栏高度
13+
14+ /* 顶栏高度 */
1215 --g-topbar-height : 50px ;
13- // 窗口高度(仅在窗口预览时使用)
16+
17+ /* 窗口高度(仅在窗口预览时使用) */
1418 --g-window-height : 800px ;
15- // 窗口预览缩放系数
19+
20+ /* 窗口预览缩放系数 */
1621 --g-window-perview-scale : 0.5 ;
1722}
1823
19- // 明暗模式 CSS 变量
24+ /* 明暗模式 CSS 变量 */
2025/* stylelint-disable-next-line no-duplicate-selectors */
2126: root {
2227 --g-box-shadow-color : rgb (0 0 0 / 12% );
8994 box-sizing : inherit;
9095}
9196
92- // 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
97+ /* 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width] */
9398[data-fixed-calc-width ] {
9499 position : fixed;
95100 right : 0 ;
@@ -98,20 +103,20 @@ body {
98103 transform : translateX (-50% ) translateX (calc (var (--g-main-sidebar-actual-width ) / 2 )) translateX (calc (var (--g-sub-sidebar-actual-width ) / 2 ));
99104}
100105
101- // textarea 字体跟随系统
106+ /* textarea 字体跟随系统 */
102107textarea {
103108 font-family : inherit;
104109}
105110
106111/* Overrides Floating Vue */
107112.v-popper--theme-dropdown ,
108113.v-popper--theme-tooltip {
109- --at-apply : inline-flex ;
114+ --uno : inline-flex;
110115}
111116
112117.v-popper--theme-dropdown .v-popper__inner ,
113118.v-popper--theme-tooltip .v-popper__inner {
114- --at-apply : bg- white dark- bg- stone- 8 text- dark dark- text- white rounded shadow ring- 1 ring- gray- 200 dark- ring- gray- 800 border border- solid border- stone/ 20 text- xs font- normal;
119+ --uno : bg-white dark-bg-stone-8 text-dark dark-text-white rounded shadow ring-1 ring-gray-200 dark-ring-gray-800 border border-solid border-stone/20 text-xs font-normal;
115120
116121 box-shadow : 0 6px 30px rgb (0 0 0 / 10% );
117122}
@@ -120,12 +125,12 @@ textarea {
120125.v-popper--theme-dropdown .v-popper__arrow-inner {
121126 visibility : visible;
122127
123- --at-apply : border- white dark- border- stone- 8;
128+ --uno : border-white dark-border-stone-8;
124129}
125130
126131.v-popper--theme-tooltip .v-popper__arrow-outer ,
127132.v-popper--theme-dropdown .v-popper__arrow-outer {
128- --at-apply : border- stone/ 20 ;
133+ --uno : border-stone/20;
129134}
130135
131136.v-popper--theme-tooltip .v-popper--shown ,
0 commit comments