Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 45 lines (41 sloc) 1.021 kb
31af9b8 @mikevalstar Added twitter bootstrap css to project.
authored
1 // Code.less
2 // Code typography styles for the <code> and <pre> elements
3 // --------------------------------------------------------
4
5 // Inline and block code styles
6 code,
7 pre {
8 padding: 0 3px 2px;
9 #font > #family > .monospace;
10 font-size: @baseFontSize - 1;
11 color: @grayDark;
12 .border-radius(3px);
13 }
14 code {
15 padding: 3px 4px;
16 color: #d14;
17 background-color: #f7f7f9;
18 border: 1px solid #e1e1e8;
19 }
20 pre {
21 display: block;
22 padding: (@baseLineHeight - 1) / 2;
23 margin: 0 0 @baseLineHeight / 2;
24 font-size: 12px;
25 line-height: @baseLineHeight;
26 background-color: #f5f5f5;
27 border: 1px solid #ccc; // fallback for IE7-8
28 border: 1px solid rgba(0,0,0,.15);
29 .border-radius(4px);
30 white-space: pre;
31 white-space: pre-wrap;
32 word-break: break-all;
33
34 // Make prettyprint styles more spaced out for readability
35 &.prettyprint {
36 margin-bottom: @baseLineHeight;
37 }
38
39 // Account for some code outputs that place code tags in pre tags
40 code {
41 padding: 0;
42 background-color: transparent;
43 }
44 }
Something went wrong with that request. Please try again.