Allow larger code blocks

This commit is contained in:
Gabriel Augendre 2022-03-31 21:06:32 +02:00
parent 2fd054da05
commit 1a8b95aad4

View file

@ -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; }