qdy 1 mese fa
commit
74ca45e516
2 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 4
    4
      web/src/app/pages/home/home.component.scss
  2. 3
    3
      web/src/styles.scss

+ 4
- 4
web/src/app/pages/home/home.component.scss Vedi File

128
     
128
     
129
     /* 确保prism代码块正常显示 */
129
     /* 确保prism代码块正常显示 */
130
     &.prism-code {
130
     &.prism-code {
131
-      background-color: #1f2937;
132
-      color: #f3f4f6;
131
+      background-color: #f3f4f6; /* 浅灰色背景 */
132
+      color: #374151; /* 深灰色文字 */
133
       padding: 1.25rem;
133
       padding: 1.25rem;
134
       font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
134
       font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
135
       font-size: 0.875rem;
135
       font-size: 0.875rem;
248
     }
248
     }
249
     
249
     
250
     .prism-code {
250
     .prism-code {
251
-      background-color: #f8f9fa !important;
252
-      color: #212529 !important;
251
+      background-color: #f3f4f6 !important;
252
+      color: #374151 !important;
253
     }
253
     }
254
   }
254
   }
255
 
255
 

+ 3
- 3
web/src/styles.scss Vedi File

34
   padding: 1.25rem;
34
   padding: 1.25rem;
35
   border-radius: 0.5rem;
35
   border-radius: 0.5rem;
36
   overflow-x: auto;
36
   overflow-x: auto;
37
-  background-color: #1f2937; /* 深色背景 */
38
-  color: #f3f4f6; /* 浅色文字 */
37
+  background-color: #f3f4f6; /* 浅灰色背景 */
38
+  color: #374151; /* 深灰色文字 */
39
 }
39
 }
40
 
40
 
41
 .prism-code .token.comment,
41
 .prism-code .token.comment,
46
 }
46
 }
47
 
47
 
48
 .prism-code .token.punctuation {
48
 .prism-code .token.punctuation {
49
-  color: #d1d5db; /* 浅灰色 */
49
+  color: #9ca3af; /* 中等灰色,在浅色背景下可见 */
50
 }
50
 }
51
 
51
 
52
 .prism-code .token.property,
52
 .prism-code .token.property,

Loading…
Annulla
Salva