Improve display of source blocks

This commit is contained in:
2020-11-26 15:58:26 +01:00
parent 602309beae
commit bed29b6ab4
2 changed files with 27 additions and 3 deletions

View File

@@ -17,12 +17,28 @@
overflow: visible;
margin-top: 1em;
// Caption
label {
text-align: center;
cursor: text;
.listing-number {
font-weight: bold;
color: #343131;
}
}
// Copy Button
div.src-copy {
@include src-box;
line-height:1.5;
right: 10px;
cursor: pointer;
// When button is clicked
&.src-copied {
background-color: #d6e9ff;
}
}
// Code Block
@@ -54,6 +70,7 @@
&.src-python:before { content: 'Python'; }
&.src-latex:before { content: 'LaTeX'; }
&.src-matlab:before { content: 'Matlab'; }
&.src-bibtex:before { content: 'BibTeX'; }
}
}