You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
435 B
CSS

pre[class*='language-'] {
position: relative;
}
pre[class*='language-'] > code[data-language] {
overflow: scroll;
max-height: 28em;
display: block;
}
pre[class*='language-'] > code[data-language]::before {
content: attr(data-language);
color: black;
background-color: #CFCFCF;
display: inline-block;
position: absolute;
top: 0;
right: 0;
font-size: 0.9em;
border-radius: 0 0 0 5px;
padding: 0 0.5em;
text-shadow: none;
}