@xingwangzhe/stalux 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/styles/base/init.css +5 -7
package/package.json
CHANGED
package/src/styles/base/init.css
CHANGED
|
@@ -99,15 +99,15 @@ ul {
|
|
|
99
99
|
}
|
|
100
100
|
/* 布局:使 body 成为列 flex 容器,并让 main 填充可用高度 */
|
|
101
101
|
.stalux-root {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: column;
|
|
104
102
|
min-height: 100vh;
|
|
105
|
-
color: white;
|
|
103
|
+
color: white;
|
|
106
104
|
}
|
|
107
105
|
|
|
108
|
-
/*
|
|
106
|
+
/* 主内容至少撑满视口高度
|
|
107
|
+
* - 内容不足视口时:min-height 让 main = 100vh,页脚紧跟在视口下方
|
|
108
|
+
* - 内容超过视口时:main 自然撑高,页脚在内容末尾
|
|
109
|
+
* 不使用 flex,避免 flex-basis 限制导致内容溢出 main */
|
|
109
110
|
.stalux-main {
|
|
110
|
-
flex: 1;
|
|
111
111
|
min-height: 100vh;
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -287,6 +287,4 @@ footer {
|
|
|
287
287
|
text-align: center;
|
|
288
288
|
color: var(--muted-text);
|
|
289
289
|
background: transparent;
|
|
290
|
-
position: relative;
|
|
291
|
-
z-index: 1;
|
|
292
290
|
}
|