Files
Edu/apps/teacher-portal/src/app/globals.css
SpecialX 1eacd1ed87 feat(teacher-portal): 完整实现 teacher-portal 微前端
包含 settings/students/api、graphql、mocks、ui-tokens 设计令牌等
2026-07-10 19:10:20 +08:00

59 lines
1.4 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* teacher-portal 全局样式
*
* 引入 @edu/ui-tokens 三层设计令牌primitive → semantic → tailwind-theme
* 维护者ai13teacher-portal
* 关联project_rules §3.10、02-architecture-design.md §9
*
* 禁止规则ESLint + project_rules §3.10
* - 禁止 #hex 字面量(用 hsl(var(--*)) 或 Tailwind bg-* 类)
* - 禁止 'Inter'/'Fraunces'/'JetBrains Mono' 字面量(用 var(--font-family-*))
* - 禁止 font-size: Npx用 var(--font-size-*) 或 Tailwind text-* 类)
* - 禁止 Tailwind 任意值 w-[Npx](用 --space-* 或默认阶梯)
*/
@import "@edu/ui-tokens/all.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html,
body {
background: var(--bg-paper);
color: var(--color-ink);
font-family: var(--font-family-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-family-serif);
font-weight: var(--font-weight-semibold);
letter-spacing: var(--letter-spacing-tight);
}
}
@layer components {
/* 纸感分隔线 */
.rule {
border-top: 1px solid var(--color-rule);
}
.rule-thin {
border-top: 2px solid var(--color-rule);
}
/* 左侧竖线标记(节点展开样式) */
.mark-left {
border-left: 2px solid var(--color-rule);
padding-left: var(--space-md);
}
}