portails/assets/scss/components/_code.scss

38 lines
514 B
SCSS

/*
.highlight {
margin-left: -1.5rem;
margin-right: -1.5rem;
}
*/
pre,
code,
kbd,
samp {
font-family: $font-family-monospace;
font-size: $font-size-sm;
border-radius: $border-radius;
}
pre {
background: lighten($black, 15%);
color: $beige;
line-height: $line-height-lg;
margin: 2rem 0;
overflow: auto;
padding: 1.25rem 1.5rem;
tab-size: 4;
}
code {
background: $beige;
color: $black;
padding: 0.25rem 0.5rem;
}
pre code {
background: none;
font-size: inherit;
padding: 0;
}