summaryrefslogtreecommitdiffstats
path: root/assets/css/codestyle.css
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/css/codestyle.css
parent19082e4759c53b07bb3196c1a22243aa0413dab0 (diff)
💻 Fix: 代码块样式问题
Diffstat (limited to 'assets/css/codestyle.css')
-rw-r--r--assets/css/codestyle.css15
1 files changed, 13 insertions, 2 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;