@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingwangzhe/stalux",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "A powerful, modern Astro blog theme — use as template or install as plugin",
5
5
  "keywords": [
6
6
  "astro",
@@ -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
  }