add terrible hack to prism.css
This commit is contained in:
parent
7ba471998d
commit
1232f38ee4
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ pre[class*=language-] {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
background: #0e0f0f;
|
background: #0e0f0f;
|
||||||
text-shadow: 0 1px rgba(0, 0, 0, .3);
|
text-shadow: 0 1px rgba(0, 0, 0, .3);
|
||||||
font-family: 'FiraCode', 'Nimbus Mono PS', 'Liberation Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', 'Lucida Console', monospace;
|
font-family: 'FiraCode Nerd Font', 'FiraCode', 'Nimbus Mono PS', 'Liberation Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', 'Lucida Console', monospace;
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
|
@ -126,11 +126,12 @@ pre[class*=language-].line-numbers>code {
|
||||||
white-space: inherit
|
white-space: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this font-size is just a terrible approximation buuuut it works unless you get really really long code blocks */
|
||||||
.line-numbers .line-numbers-rows {
|
.line-numbers .line-numbers-rows {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
top: 0;
|
top: 0;
|
||||||
font-size: 100%;
|
font-size: 105.34%;
|
||||||
left: -3.8em;
|
left: -3.8em;
|
||||||
width: 3em;
|
width: 3em;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
|
|
Loading…
Reference in a new issue