Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
139 lines (120 loc) · 2.78 KB
/
Copy pathindex.css
File metadata and controls
139 lines (120 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
:root {
width: 100%!important;
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#root {
width: 100%;
background:#242424;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
/* 移除flex和center,避免影响应用布局 */
min-width: 320px;
min-height: 100vh;
}
/* 修复 macOS 全屏模式下标题栏高度变化问题 */
.titlebar-fix {
height: 42px !important;
min-height: 42px !important;
max-height: 42px !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}
/* 确保在 macOS 全屏切换时标题栏不受影响 */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
.titlebar-fix {
height: 42px !important;
}
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
/* 移除全局button样式,避免覆盖Tailwind */
/* button样式已由Tailwind处理 */
}
/* src/index.css 或 App.module.css */
.ink-content {
line-height: 1.6;
color: #f0f0f0;
font-size: 1rem;
}
/* 粗体 <b> / <strong> */
.ink-content b,
.ink-content strong {
font-weight: 700;
color: #ffa500; /* 橙色高亮 */
text-shadow: 0 0 2px rgba(0,0,0,0.5);
}
/* 斜体 <i> / <em> */
.ink-content i,
.ink-content em {
font-style: italic;
color: #7fffd4;
font-size: larger;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
/* 下划线 <u> */
.ink-content u {
text-decoration: underline;
text-decoration-color: #ff69b4; /* 粉色下划线 */
}
/* 引用段落 <blockquote> */
.ink-content blockquote {
margin: 1rem 0;
padding: 0.5rem 1rem;
border-left: 4px solid #8e44ad;
background: rgba(142, 68, 173, 0.1);
font-style: italic;
}
/* 小标题 <h2> / <h3> (如 Ink 中用作章节标题) */
.ink-content h2,
.ink-content h3 {
margin: 1.5rem 0 0.5rem;
color: #3498db;
font-weight: 600;
}
/* 链接 <a> */
.ink-content a {
color: #1abc9c;
text-decoration: none;
border-bottom: 1px dashed #1abc9c;
}
.ink-content a:hover {
color: #16a085;
border-bottom-style: solid;
}
/* 按钮容器 - 使用更具体的选择器避免覆盖Tailwind */
.ink-content button:not([class*="bg-"]):not([class*="text-"]) {
/* 仅当按钮没有Tailwind类时才应用 */
margin: 0.5rem 0;
padding: 0.4rem 0.8rem;
background: #2c3e50;
color: #ecf0f1;
border: 1px solid #34495e;
border-radius: 4px;
cursor: pointer;
}
.ink-content button:not([class*="bg-"]):not([class*="text-"]):hover {
background: #34495e;
}