mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(saas): renamed scss partial files to have underscore before
This commit is contained in:
52
public/less/base/_code.scss
Normal file
52
public/less/base/_code.scss
Normal file
@@ -0,0 +1,52 @@
|
||||
//
|
||||
// Code (inline and blocK)
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
// Inline and block code styles
|
||||
code,
|
||||
pre {
|
||||
@include font-family-monospace();
|
||||
font-size: $baseFontSize - 2;
|
||||
background-color: $codeTagBackground;
|
||||
color: $textColor;
|
||||
border: 1px solid darken($codeTagBackground, 15%);
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
// Inline code
|
||||
code {
|
||||
color: #d14;
|
||||
background-color: #f7f7f9;
|
||||
border: 1px solid #e1e1e8;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Blocks of code
|
||||
pre {
|
||||
display: block;
|
||||
margin: 0 0 $baseLineHeight / 2;
|
||||
font-size: $baseFontSize - 1; // 14px to 13px
|
||||
line-height: $baseLineHeight;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
white-space: pre;
|
||||
white-space: pre-wrap;
|
||||
background-color: #f5f5f5;
|
||||
|
||||
// Make prettyprint styles more spaced out for readability
|
||||
&.prettyprint {
|
||||
margin-bottom: $baseLineHeight;
|
||||
}
|
||||
|
||||
// Account for some code outputs that place code tags in pre tags
|
||||
code {
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
white-space: pre;
|
||||
white-space: pre-wrap;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user