File size: 1,479 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
pre.shiki {
position: relative;
line-height: 1.25 !important;
}
pre.shiki code * {
font-size: 0.82rem;
hyphens: none;
white-space: pre;
font-style: normal !important;
font-family: var(--font-geist-mono);
}
pre.shiki code *::selection {
background: rgb(255 255 255 / 0.2);
}
code .diff {
transition: background-color 0.5s;
margin: 0 -12px;
padding: 0 24px;
width: calc(100% + 24px);
display: inline-block;
&:before {
position: absolute;
left: 10px;
}
}
code .diff.remove {
background-color: rgba(244, 63, 94, 0.16) !important;
opacity: 0.7;
& span {
background-color: transparent !important;
}
}
code .diff.remove:before {
content: "-";
color: #f14158;
}
code .diff.add {
background-color: rgba(16, 185, 129, 0.16) !important;
& span {
background-color: transparent !important;
}
}
code .diff.add:before {
content: "+";
color: #3dd68c;
}
code .highlighted {
background-color: rgb(255 255 255 / 0.1) !important;
transition: background-color 0.5s;
margin: 0 -12px;
padding: 0 12px;
box-shadow: 2px 0 0px 0px rgb(162, 162, 162) inset;
width: calc(100% + 24px);
display: inline-block;
& span {
background-color: transparent !important;
}
}
code .highlighted-word {
background: rgba(255, 255, 255, 0.1) !important;
border-width: 1px;
border-color: #4c4c4c;
padding: 1px 2px;
margin: -1px -3px;
border-radius: 4px;
+ span {
background: transparent !important;
}
}
|