update all
This commit is contained in:
27
assets/css/code.css
Normal file
27
assets/css/code.css
Normal file
@@ -0,0 +1,27 @@
|
||||
/* 代码块样式 */
|
||||
.prose pre {
|
||||
position: relative !important;
|
||||
padding: 0.5rem 0.75rem !important;
|
||||
margin: 0.5rem 0 !important;
|
||||
border-radius: 0.375rem !important;
|
||||
background-color: #1f2937 !important;
|
||||
overflow-x: auto !important;
|
||||
}
|
||||
|
||||
.prose pre code {
|
||||
display: block !important;
|
||||
padding: 0 !important;
|
||||
padding-right: 2.5rem !important;
|
||||
margin: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
background: none !important;
|
||||
color: #e5e7eb !important;
|
||||
font-size: 0.875rem !important;
|
||||
line-height: 1.25 !important;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
|
||||
}
|
||||
|
||||
/* 代码块语言标签 */
|
||||
.prose pre::before {
|
||||
display: none; /* 隐藏语言标签 */
|
||||
}
|
Reference in New Issue
Block a user