forked from designmodo/Flat-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.less
More file actions
49 lines (43 loc) · 981 Bytes
/
code.less
File metadata and controls
49 lines (43 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Code (inline and blocK)
// --------------------------------------------------
// Inline and block code styles
code,
kbd,
pre,
samp {
font-family: @font-family-monospace;
}
// Inline code
code {
padding: 2px 6px;
font-size: 85%;
color: @code-color;
background-color: @code-bg;
border-radius: @border-radius-base;
}
// User input typically entered via keyboard
kbd {
padding: 2px 6px;
font-size: 85%;
color: @kbd-color;
background-color: @kbd-bg;
border-radius: @border-radius-base;
box-shadow: none;
}
// Blocks of code
pre {
padding: ((@line-height-computed - 6) / 3);
margin: 0 0 (@line-height-computed / 2);
font-size: (@font-size-base - 5); // 18px to 13px
line-height: @line-height-base;
color: @pre-color;
background-color: @pre-bg;
border: 2px solid @pre-border-color;
border-radius: @pre-border-radius;
white-space: pre;
}
// Enable scrollable blocks of code
.pre-scrollable {
max-height: @pre-scrollable-max-height;
}