zola/sass/assets/tale/_code.scss
2022-10-31 11:39:53 +01:00

58 lines
1.0 KiB
SCSS

pre,
code {
background: $grey-3 !important;
color: $code-color !important;
font-family: $monospaced;
}
code {
border-radius: 6px;
font-size: 95%;
padding: 0em .20em .10em .20em;
border-width: 1px;
border-style: solid;
border-color: $shadow-color;
}
pre {
font-size: 95%;
margin: 0 0 1rem;
padding-left: 1rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
border-left: 0.4rem solid $grey-1;
}
pre code {
font-size: 95%;
padding: 0;
border-style: none !important;
}
pre span {
background-color: transparent !important;
}
.highlight {
//background-color: $grey-3;
border-radius: 3px;
line-height: 1.4;
margin: 0 0 1rem;
padding: 1rem;
pre {
margin-bottom: 0;
overflow-x: auto;
}
// .lineno {
// color: $default-tint;
// display: inline-block; // Ensures the null space also isn't selectable
// padding: 0 .75rem 0 .25rem;
// // Make sure numbers aren't selectable
// -webkit-user-select: none;
// -moz-user-select: none;
// user-select: none;
// }
}