forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverrides.scss
134 lines (110 loc) · 2.26 KB
/
overrides.scss
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/* Override Primer styles
------------------------------------------------------------------------------*/
.markdown-body {
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-mktg;
font-weight: $font-weight-semibold;
padding-top: $spacer-3;
}
}
// NB: Note that there's also overlapping styling in "article.scss"
.markdown-body ol > li {
padding: $spacer-2 0 $spacer-2 $spacer-7;
border: 0;
&:before {
top: 2px;
font-size: $spacer-3;
width: $spacer-4;
}
p:not(:first-child) {
margin-top: 15px;
}
.extended-markdown {
margin-top: 15px;
}
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 15px;
margin-bottom: 15px;
}
// needs specificity to override
.markdown-body .lead-mktg p {
color: var(--color-auto-gray-9);
}
.extended-markdown p {
margin: 0;
}
.extended-markdown p:not(:first-child) {
margin-top: 15px;
}
.extended-markdown.note pre {
background: none;
padding: 10px 10px 10px 0;
margin-bottom: 0;
}
.extended-markdown.note pre code {
color: var(--color-text-primary);
}
.product-callout p,
.contributor-callout p {
margin: 0;
}
// Largely overwritten in tables.scss
.markdown-body table {
display: table;
table-layout: fixed;
line-height: 1.5;
}
/* Getting Started and Popular Articles sections in article layout */
.markdown-body div.featured-links {
padding-bottom: 30px;
}
.markdown-body div.featured-links-heading {
padding-top: 24px;
}
.markdown-body div.featured-links p.link-with-intro-intro {
margin-bottom: 5px;
}
.markdown-body div.featured-links h4.link-with-intro-title {
margin-top: 0;
}
/* code styles */
pre .redbox {
border: 2px solid var(--color-auto-red-5);
padding: 2px;
border-radius: 2px;
margin-right: 2px;
}
pre .greenbox {
border: 2px solid var(--color-auto-green-5);
padding: 2px;
border-radius: 2px;
margin-right: 2px;
}
pre .bluebox {
border: 2px solid var(--color-auto-blue-5);
padding: 2px;
border-radius: 2px;
margin-right: 2px;
}
/* Helpfulness survey override */
:checked + .x-radio-label {
background: var(--color-auto-blue-5);
svg {
fill: var(--color-auto-inverse);
}
}
.markdown-body li img {
max-width: calc(100% - 32px);
}
.markdown-body img {
max-height: 600px;
}