mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 11:01:34 +08:00
46 lines
940 B
Text
46 lines
940 B
Text
//
|
|
// Code (inline and blocK)
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Inline and block code styles
|
|
code,
|
|
pre {
|
|
padding: 0 3px 2px;
|
|
font-family: @monoFontFamily;
|
|
font-size: @baseFontSize;
|
|
font-weight: normal;
|
|
line-height: @baseLineHeight;
|
|
font-size: @baseFontSize - 2;
|
|
color: @grayDark;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
// Inline code
|
|
code {
|
|
padding: 2px 4px;
|
|
color: #d14;
|
|
background-color: #f7f7f9;
|
|
border: 1px solid #e1e1e8;
|
|
}
|
|
|
|
// Blocks of code
|
|
pre {
|
|
display: block;
|
|
padding: (@baseLineHeight - 1) / 2;
|
|
margin: 0 0 @baseLineHeight / 2;
|
|
font-size: @baseFontSize - 1; // 14px to 13px
|
|
line-height: @baseLineHeight;
|
|
white-space: pre-wrap;
|
|
background-color: #f5f5f5;
|
|
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;
|
|
color: inherit;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
}
|