2020-02-05 21:11:19 +08:00
|
|
|
@font-face {
|
|
|
|
font-family: "JetBrains Mono";
|
2020-02-13 22:12:47 +08:00
|
|
|
src: url("/font/JetBrainsMono.woff2") format("woff2"), url("/font/JetBrainsMono.woff") format("woff");
|
2020-02-05 21:11:19 +08:00
|
|
|
}
|
2020-01-27 20:30:21 +08:00
|
|
|
pre code .language-mark {
|
|
|
|
position: absolute;
|
|
|
|
top: 15px;
|
|
|
|
left: 15px;
|
|
|
|
font-weight: 900;
|
|
|
|
color: var(--secondary);
|
|
|
|
z-index: 5;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-family: Rubik, Lato, lucida grande, lucida sans unicode, Tahoma, 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;
|
|
|
|
font-size: 0.6rem;
|
|
|
|
background: rgba(16,14,23,0.36);
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 0 0.8em;
|
|
|
|
}
|
|
|
|
pre code .language-mark b {
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
.language-mark[ref="css"] {
|
|
|
|
color: #ff8a00;
|
|
|
|
}
|
|
|
|
.language-mark[ref="scss"] {
|
|
|
|
color: #ff8a00;
|
|
|
|
}
|
|
|
|
.language-mark[ref="html"] {
|
|
|
|
color: #4caf50;
|
|
|
|
}
|
|
|
|
.language-mark[ref=JSX] {
|
|
|
|
color: #03a9f4;
|
|
|
|
}
|
|
|
|
.language-mark[ref=JavaScript] {
|
|
|
|
color: #03a9f4;
|
|
|
|
color: #ff79c6;
|
|
|
|
}
|
|
|
|
.language-mark[ref=jQuery] {
|
|
|
|
color: #03a9f4;
|
|
|
|
color: #ff79c6;
|
|
|
|
}
|
|
|
|
.language-mark[ref=php] {
|
|
|
|
color: #ff79c6;
|
|
|
|
}
|
|
|
|
/* CodeMirror Dracula theme */
|
|
|
|
.CodeMirror {
|
|
|
|
height: auto !important;
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
.CodeMirror .CodeMirror-gutters,
|
|
|
|
.CodeMirror .CodeMirror-linenumber {
|
|
|
|
background: #201c29 !important;
|
2020-02-05 21:11:19 +08:00
|
|
|
padding: 0 3px 0 10px;
|
2020-01-27 20:30:21 +08:00
|
|
|
}
|
|
|
|
.CodeMirror .CodeMirror-scroll {
|
|
|
|
padding: 55px 30px 60px 10px !important;
|
|
|
|
}
|
|
|
|
.CodeMirror.cm-s-dracula {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.CodeMirror .CodeMirror-lines {
|
2020-02-05 21:11:19 +08:00
|
|
|
font-size: 0.7rem;
|
|
|
|
font-family: "JetBrains Mono", Rubik, Lato, lucida grande, lucida sans unicode, Tahoma, 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;
|
2020-01-27 20:30:21 +08:00
|
|
|
}
|