Allow larger code blocks
This commit is contained in:
parent
2fd054da05
commit
1a8b95aad4
1 changed files with 7 additions and 0 deletions
7
src/articles/static/vendor/codehilite.css
vendored
7
src/articles/static/vendor/codehilite.css
vendored
|
@ -1,3 +1,10 @@
|
||||||
|
.codehilite.large {
|
||||||
|
--larger-by: 140px;
|
||||||
|
max-width: calc(100% + var(--larger-by));
|
||||||
|
width: calc(100% + var(--larger-by));
|
||||||
|
margin-left: calc(var(--larger-by) / -2);
|
||||||
|
}
|
||||||
|
|
||||||
@media(prefers-color-scheme: light) {
|
@media(prefers-color-scheme: light) {
|
||||||
.codehilite .hll { background-color: #ffffcc }
|
.codehilite .hll { background-color: #ffffcc }
|
||||||
.codehilite { background: #ffffff; }
|
.codehilite { background: #ffffff; }
|
||||||
|
|
Reference in a new issue