snappymail/vendors/bootstrap/less/code.less

43 lines
801 B
Text
Raw Normal View History

//
// Code (inline and blocK)
// --------------------------------------------------
// Inline and block code styles
code,
kbd,
samp,
pre {
padding: 0 3px 2px;
font-family: var(--fontMono);
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
font-size: @baseFontSize - 2;
border-radius: 3px;
}
// Inline code
code {
padding: 2px 4px;
border: 1px solid #e1e1e8;
}
// Blocks of code
pre {
display: block;
2021-11-15 19:16:02 +08:00
padding: (@baseLineHeight / 2);
margin: 0 0 (@baseLineHeight / 2);
font-size: @baseFontSize - 1; // 14px to 13px
line-height: @baseLineHeight;
white-space: pre-wrap;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
border: 0;
}
}