1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 17:40:03 +01:00
website/_src/_assets/scss/_code.scss

49 lines
922 B
SCSS

//
// Code (inline and block)
// --------------
// ipdb.io
//
code,
kbd,
pre,
samp {
font-family: $font-family-monospace;
font-size: $font-size-mini;
hyphens: none;
}
// Inline code
code {
color: $brand-04;
}
// Blocks of code
pre {
display: block;
padding: $spacer;
line-height: 1.5;
word-break: break-all;
word-wrap: break-word;
background-color: rgba($brand-05, .6);
border-radius: $border-radius;
// make 'em scrollable
overflow: scroll;
-webkit-overflow-scrolling: touch;
max-height: 20rem;
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre;
overflow-wrap: normal;
word-wrap: normal;
word-break: normal;
overflow: auto;
background-color: transparent;
border-radius: 0;
}
}