Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/markdown-language-features/media/markdown.css
3291 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
html, body {
7
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", system-ui, "Ubuntu", "Droid Sans", sans-serif);
8
font-size: var(--markdown-font-size, 14px);
9
padding: 0 26px;
10
line-height: var(--markdown-line-height, 22px);
11
word-wrap: break-word;
12
}
13
14
body {
15
padding-top: 1em;
16
}
17
18
/* Reset margin top for elements */
19
h1, h2, h3, h4, h5, h6,
20
p, ol, ul, pre {
21
margin-top: 0;
22
}
23
24
h1, h2, h3, h4, h5, h6 {
25
font-weight: 600;
26
margin-top: 24px;
27
margin-bottom: 16px;
28
line-height: 1.25;
29
}
30
31
#code-csp-warning {
32
position: fixed;
33
top: 0;
34
right: 0;
35
color: white;
36
margin: 16px;
37
text-align: center;
38
font-size: 12px;
39
font-family: sans-serif;
40
background-color:#444444;
41
cursor: pointer;
42
padding: 6px;
43
box-shadow: 1px 1px 1px rgba(0,0,0,.25);
44
}
45
46
#code-csp-warning:hover {
47
text-decoration: none;
48
background-color:#007acc;
49
box-shadow: 2px 2px 2px rgba(0,0,0,.25);
50
}
51
52
body.scrollBeyondLastLine {
53
margin-bottom: calc(100vh - 22px);
54
}
55
56
body.showEditorSelection .code-line {
57
position: relative;
58
}
59
60
body.showEditorSelection :not(tr,ul,ol).code-active-line:before,
61
body.showEditorSelection :not(tr,ul,ol).code-line:hover:before {
62
content: "";
63
display: block;
64
position: absolute;
65
top: 0;
66
left: -12px;
67
height: 100%;
68
}
69
70
.vscode-high-contrast.showEditorSelection :not(tr,ul,ol).code-line .code-line:hover:before {
71
border-left: none;
72
}
73
74
body.showEditorSelection li.code-active-line:before,
75
body.showEditorSelection li.code-line:hover:before {
76
left: -30px;
77
}
78
79
.vscode-light.showEditorSelection .code-active-line:before {
80
border-left: 3px solid rgba(0, 0, 0, 0.15);
81
}
82
83
.vscode-light.showEditorSelection .code-line:hover:before {
84
border-left: 3px solid rgba(0, 0, 0, 0.40);
85
}
86
87
.vscode-dark.showEditorSelection .code-active-line:before {
88
border-left: 3px solid rgba(255, 255, 255, 0.4);
89
}
90
91
.vscode-dark.showEditorSelection .code-line:hover:before {
92
border-left: 3px solid rgba(255, 255, 255, 0.60);
93
}
94
95
.vscode-high-contrast.showEditorSelection .code-active-line:before {
96
border-left: 3px solid rgba(255, 160, 0, 0.7);
97
}
98
99
.vscode-high-contrast.showEditorSelection .code-line:hover:before {
100
border-left: 3px solid rgba(255, 160, 0, 1);
101
}
102
103
/* Prevent `sub` and `sup` elements from affecting line height */
104
sub,
105
sup {
106
line-height: 0;
107
}
108
109
ul ul:first-child,
110
ul ol:first-child,
111
ol ul:first-child,
112
ol ol:first-child {
113
margin-bottom: 0;
114
}
115
116
img, video {
117
max-width: 100%;
118
max-height: 100%;
119
}
120
121
a {
122
text-decoration: none;
123
}
124
125
a:hover {
126
text-decoration: underline;
127
}
128
129
a:focus,
130
input:focus,
131
select:focus,
132
textarea:focus {
133
outline: 1px solid -webkit-focus-ring-color;
134
outline-offset: -1px;
135
}
136
137
p {
138
margin-bottom: 16px;
139
}
140
141
li p {
142
margin-bottom: 0.7em;
143
}
144
145
ul,
146
ol {
147
margin-bottom: 0.7em;
148
}
149
150
hr {
151
border: 0;
152
height: 1px;
153
border-bottom: 1px solid;
154
}
155
156
h1 {
157
font-size: 2em;
158
margin-top: 0;
159
padding-bottom: 0.3em;
160
border-bottom-width: 1px;
161
border-bottom-style: solid;
162
}
163
164
h2 {
165
font-size: 1.5em;
166
padding-bottom: 0.3em;
167
border-bottom-width: 1px;
168
border-bottom-style: solid;
169
}
170
171
h3 {
172
font-size: 1.25em;
173
}
174
175
h4 {
176
font-size: 1em;
177
}
178
179
h5 {
180
font-size: 0.875em;
181
}
182
183
h6 {
184
font-size: 0.85em;
185
}
186
187
table {
188
border-collapse: collapse;
189
margin-bottom: 0.7em;
190
}
191
192
th {
193
text-align: left;
194
border-bottom: 1px solid;
195
}
196
197
th,
198
td {
199
padding: 5px 10px;
200
}
201
202
table > tbody > tr + tr > td {
203
border-top: 1px solid;
204
}
205
206
blockquote {
207
margin: 0;
208
padding: 0px 16px 0 10px;
209
border-left-width: 5px;
210
border-left-style: solid;
211
border-radius: 2px;
212
}
213
214
code {
215
font-family: var(--vscode-editor-font-family, "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace);
216
font-size: 1em;
217
line-height: 1.357em;
218
}
219
220
body.wordWrap pre {
221
white-space: pre-wrap;
222
}
223
224
pre:not(.hljs),
225
pre.hljs code > div {
226
padding: 16px;
227
border-radius: 3px;
228
overflow: auto;
229
}
230
231
pre code {
232
display: inline-block;
233
color: var(--vscode-editor-foreground);
234
tab-size: 4;
235
background: none;
236
}
237
238
/** Theming */
239
240
pre {
241
background-color: var(--vscode-textCodeBlock-background);
242
border: 1px solid var(--vscode-widget-border);
243
}
244
245
.vscode-high-contrast h1 {
246
border-color: rgb(0, 0, 0);
247
}
248
249
.vscode-light th {
250
border-color: rgba(0, 0, 0, 0.69);
251
}
252
253
.vscode-dark th {
254
border-color: rgba(255, 255, 255, 0.69);
255
}
256
257
.vscode-light h1,
258
.vscode-light h2,
259
.vscode-light hr,
260
.vscode-light td {
261
border-color: rgba(0, 0, 0, 0.18);
262
}
263
264
.vscode-dark h1,
265
.vscode-dark h2,
266
.vscode-dark hr,
267
.vscode-dark td {
268
border-color: rgba(255, 255, 255, 0.18);
269
}
270
271