2017-08-30 15:58:38 +02:00
|
|
|
//
|
|
|
|
// Code (inline and block)
|
|
|
|
// --------------
|
|
|
|
// ipdb.io
|
|
|
|
//
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
pre,
|
|
|
|
samp {
|
|
|
|
font-family: $font-family-monospace;
|
2017-09-07 12:13:50 +02:00
|
|
|
font-size: $font-size-mini;
|
2017-08-30 15:58:38 +02:00
|
|
|
hyphens: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inline code
|
|
|
|
code {
|
|
|
|
color: $brand-04;
|
2017-09-07 12:13:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
2017-08-30 15:58:38 +02:00
|
|
|
}
|