@zjpcy/simple-design 1.5.3 → 1.5.4
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/dist/cjs/index.css +37 -0
- package/dist/cjs/index.js +1 -1
- package/dist/es/Layout/index.js +1 -1
- package/dist/es/Layout/styles.js +1 -1
- package/dist/es/index.css +37 -0
- package/dist/variables.css +14 -0
- package/package.json +1 -1
package/dist/cjs/index.css
CHANGED
|
@@ -9812,6 +9812,43 @@ html {
|
|
|
9812
9812
|
IDP Layout Component - Modern Design System
|
|
9813
9813
|
============================================ */
|
|
9814
9814
|
|
|
9815
|
+
/* ============================================
|
|
9816
|
+
ANTI-FOUC: 防止 SSR 闪烁的关键样式
|
|
9817
|
+
这些样式在 CSS 文件最前面,确保最先加载
|
|
9818
|
+
============================================ */
|
|
9819
|
+
|
|
9820
|
+
/**
|
|
9821
|
+
* FOUC 问题背景:
|
|
9822
|
+
* 在 Next.js SSR 环境下,styled-components 的样式在客户端水合后才注入,
|
|
9823
|
+
* 导致组件在 SSR 期间显示浏览器默认样式或黑色背景。
|
|
9824
|
+
*
|
|
9825
|
+
* 解决方案:
|
|
9826
|
+
* 使用 CSS 变量作为默认值,styled-components 可以通过内联样式覆盖
|
|
9827
|
+
*/
|
|
9828
|
+
|
|
9829
|
+
/* 核心防护:确保所有 Layout 元素默认使用亮色背景 */
|
|
9830
|
+
/* 注意:不使用 !important,以便 styled-components 可以覆盖 */
|
|
9831
|
+
.layout-wrapper,
|
|
9832
|
+
.layout-header,
|
|
9833
|
+
.layout-sider,
|
|
9834
|
+
.layout-content,
|
|
9835
|
+
.layout-footer {
|
|
9836
|
+
/* 默认亮色背景,防止黑色闪烁 */
|
|
9837
|
+
background-color: var(--layout-default-bg, #ffffff);
|
|
9838
|
+
color: var(--layout-default-color, rgba(0, 0, 0, 0.85));
|
|
9839
|
+
}
|
|
9840
|
+
|
|
9841
|
+
/* SSR 安全:确保 HTML 和 body 有默认亮色背景 */
|
|
9842
|
+
html, body {
|
|
9843
|
+
background-color: #ffffff;
|
|
9844
|
+
margin: 0;
|
|
9845
|
+
padding: 0;
|
|
9846
|
+
}
|
|
9847
|
+
|
|
9848
|
+
/* ============================================
|
|
9849
|
+
CSS 变量定义
|
|
9850
|
+
============================================ */
|
|
9851
|
+
|
|
9815
9852
|
:root {
|
|
9816
9853
|
/* ============================================
|
|
9817
9854
|
Layout 基础配置
|