-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.less
82 lines (77 loc) · 1.38 KB
/
common.less
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Base typography and aesthetics
body {
font-family: @interface-font;
}
h1, h2, h3, h4, h5 {
font-weight: 300;
}
p, ul, ol {
font-family: @content-font;
}
ol {
list-style-type: none;
padding: 0 0 0 1em;
line-height: 1.4;
li {
counter-increment: step-counter;
&::before {
content: counter(step-counter) + '.';
margin-right: 5px;
font-size: 80%;
font-weight: bold;
}
}
}
a {
color: #006EFF;
text-decoration: none;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
hr {
border: 0;
border-bottom: 1px solid #ddd;
}
// Inline code
code {
font-family: @code-font;
padding: 2px 4px;
font-size: 90%;
color: #333;
background-color: #f5f5f5;
border-radius: 2px;
}
// Blocks of code
pre {
font-family: @code-font;
display: block;
padding: 2px 6px;
font-size: 90%;
word-break: break-all;
word-wrap: break-word;
color: #333;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 3px;
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre;
overflow-x: scroll;
background-color: transparent;
border-radius: 0;
}
}
// Blockquotes
blockquote {
border-left: 8px solid #ccc;
margin-left: 0;
padding-left: 1em;
padding-top: 0.25em;
padding-bottom: 0.25em;
color: #333;
}