💄: 调整 document 的 style 样式

This commit is contained in:
就眠儀式
2022-05-11 09:07:04 +08:00
parent 763b5cc97a
commit 385573cf5d
4 changed files with 4 additions and 65 deletions

View File

@@ -3,7 +3,6 @@ code {
border-radius: 3px;
padding: 0.25rem 0.5rem;
font-size: 0.85em;
color: var(--c-text-light);
background-color: rgba(27, 31, 35, 0.05);
}
@@ -11,10 +10,6 @@ code .token.deleted {
color: #ec5975;
}
code .token.inserted {
color: var(--c-brand);
}
div[class*='language-'] {
position: relative;
margin: 1rem -1.5rem;
@@ -83,54 +78,6 @@ li > div[class*='language-'] {
background-color: #fafafa;
}
/* Line highlighting */
.highlight-lines {
position: absolute;
top: 0;
bottom: 0;
left: 0;
padding: 1.25rem 0;
width: 100%;
line-height: 24px;
font-size: 14px;
user-select: none;
overflow: hidden;
}
.highlight-lines .highlighted {
background-color: rgba(0, 0, 0, 0.66);
}
/* Line numbers mode */
div[class*='language-'].line-numbers-mode {
padding-left: 3.5rem;
}
.line-numbers-wrapper {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 3;
border-right: 1px solid rgba(0, 0, 0, 0.5);
padding: 1.25rem 0;
width: 3.5rem;
text-align: center;
line-height: 24px;
font-size: 14px;
color: #888;
}
/* Language marker */
[class*='language-']:before {
position: absolute;
top: 0.6em;
right: 1em;
z-index: 2;
font-size: 0.8rem;
color: #888;
}
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML.
* Based on https://github.com/chriskempson/tomorrow-theme