Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
57dbedc
1
Parent(s):
3f2303a
fix: 修复代码块超出和颜色错误
Browse files- assets/custom.css +13 -2
assets/custom.css
CHANGED
|
@@ -416,14 +416,16 @@ thead th {
|
|
| 416 |
}
|
| 417 |
/* 代码块 */
|
| 418 |
.message pre,
|
| 419 |
-
.message pre[class
|
| 420 |
color: #fff;
|
|
|
|
| 421 |
margin: .8em 1em 1em 0em !important;
|
| 422 |
padding: var(--spacing-xl) 1.2em !important;
|
| 423 |
border-radius: var(--radius-lg) !important;
|
| 424 |
}
|
| 425 |
.message pre code,
|
| 426 |
-
.message pre code[class
|
|
|
|
| 427 |
text-shadow: none;
|
| 428 |
font-family: var(--font-mono);
|
| 429 |
}
|
|
@@ -438,4 +440,13 @@ pre button[title="copy"]:hover {
|
|
| 438 |
pre button .check {
|
| 439 |
color: #fff !important;
|
| 440 |
background: var(--neutral-950) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 441 |
}
|
|
|
|
| 416 |
}
|
| 417 |
/* 代码块 */
|
| 418 |
.message pre,
|
| 419 |
+
.message pre[class*=language-] {
|
| 420 |
color: #fff;
|
| 421 |
+
overflow: auto;
|
| 422 |
margin: .8em 1em 1em 0em !important;
|
| 423 |
padding: var(--spacing-xl) 1.2em !important;
|
| 424 |
border-radius: var(--radius-lg) !important;
|
| 425 |
}
|
| 426 |
.message pre code,
|
| 427 |
+
.message pre code[class*=language-] {
|
| 428 |
+
color: #fff;
|
| 429 |
text-shadow: none;
|
| 430 |
font-family: var(--font-mono);
|
| 431 |
}
|
|
|
|
| 440 |
pre button .check {
|
| 441 |
color: #fff !important;
|
| 442 |
background: var(--neutral-950) !important;
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
/* 覆盖prism.css */
|
| 446 |
+
.language-css .token.string,
|
| 447 |
+
.style .token.string,
|
| 448 |
+
.token.entity,
|
| 449 |
+
.token.operator,
|
| 450 |
+
.token.url {
|
| 451 |
+
background: none !important;
|
| 452 |
}
|