summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-03-28 15:05:22 +0800
committerBigCoke233 <hi@guhub.cn>2020-03-28 15:05:22 +0800
commit7f28079d5aff966a202fbcbb1af21d7ee88c9f5e (patch)
treee866d2bd9828a02ba8dc11cc16b71df2ca939ebf /assets
parent19082e4759c53b07bb3196c1a22243aa0413dab0 (diff)
💻 Fix: 代码块样式问题
Diffstat (limited to 'assets')
-rw-r--r--assets/css/codestyle.css15
-rw-r--r--assets/css/main/post.css2
2 files changed, 14 insertions, 3 deletions
diff --git a/assets/css/codestyle.css b/assets/css/codestyle.css
index 24e59bf..e16a1db 100644
--- a/assets/css/codestyle.css
+++ b/assets/css/codestyle.css
@@ -9,7 +9,9 @@ edited by Eltrac */
font-size: .8em!important;
padding: 0!important;
margin: 0!important;
- max-height: 90vh
+ max-height: 90vh;
+ position: relative;
+ background: rgb(63,63,63)!important
}
.hljs::before {
@@ -20,6 +22,11 @@ edited by Eltrac */
border-top-right-radius: 5px;
background: url('./main/mac_button.png') no-repeat;
background-color: rgb(63,63,63);
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ width: 100%
}
.hljs::-webkit-scrollbar-corner {
@@ -29,7 +36,7 @@ edited by Eltrac */
.hljs table,.hljs td,.hljs th {
border: none!important;
background: #2d2d2d;
- line-height: 1.5
+ line-height: 1.5;
}
.hljs tr:first-child hljs-line {
@@ -40,6 +47,10 @@ edited by Eltrac */
padding-bottom: 10px
}
+.hljs-ln {
+ margin-top: 27px
+}
+
.hljs-ln-numbers {
background: #414141!important;
padding: 0!important;
diff --git a/assets/css/main/post.css b/assets/css/main/post.css
index 51f0a75..fecd7d7 100644
--- a/assets/css/main/post.css
+++ b/assets/css/main/post.css
@@ -154,7 +154,7 @@
margin: 0 1px;
}
.post-content pre>code {
- background: #282c34!important;
+ background: rgb(63,63,63)!important;
color: #fff!important;
text-indent: 0!important;
border-radius: 4px