8000 add support for task list, more deeply nested lists and more · qasim/github-markdown-css@92f2c02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92f2c02

Browse files
committed
add support for task list, more deeply nested lists and more
1 parent 51eeecc commit 92f2c02

File tree

1 file changed

+65
-3
lines changed

1 file changed

+65
-3
lines changed

github-markdown.css

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
font-family: sans-serif;
33
-ms-text-size-adjust: 100%;
44
-webkit-text-size-adjust: 100%;
5-
font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
6-
line-height: 1.4;
75
color: #333333;
86
overflow: hidden;
97
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
@@ -45,11 +43,31 @@
4543
}
4644

4745
.markdown-body code,
46+
.markdown-body kbd,
4847
.markdown-body pre {
4948
font-family: monospace, monospace;
5049
font-size: 1em;
5150
}
5251

52+
.markdown-body input {
53+
color: inherit;
54+
font: inherit;
55+
margin: 0;
56+
}
57+
58+
.markdown-body html input[disabled] {
59+
cursor: default;
60+
}
61+
62+
.markdown-body input {
63+
line-height: normal;
64+
}
65+
66+
.markdown-body input[type="checkbox"] {
67+
box-sizing: border-box;
68+
padding: 0;
69+
}
70+
5371
.markdown-body table {
5472
border-collapse: collapse;
5573
border-spacing: 0;
@@ -65,6 +83,12 @@
6583
box-sizing: border-box;
6684
}
6785

86+
.markdown-body,
87+
.markdown-body input {
88+
font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
89+
line-height: 1.4;
90+
}
91+
6892
.markdown-body a {
6993
color: #4183c4;
7094
text-decoration: none;
@@ -141,10 +165,18 @@
141165
margin-bottom: 0;
142166
}
143167

144-
.markdown-body ol ol {
168+
.markdown-body ol ol,
169+
.markdown-body ul ol {
145170
list-style-type: lower-roman;
146171
}
147172

173+
.markdown-body ul ul ol,
174+
.markdown-body ul ol ol,
175+
.markdown-body ol ul ol,
176+
.markdown-body ol ol ol {
177+
list-style-type: lower-alpha;
178+
}
179+
148180
.markdown-body dd {
149181
margin-left: 0;
150182
}
@@ -160,6 +192,21 @@
160192
margin-bottom: 0;
161193
}
162194

195+
.markdown-body kbd {
196+
background-color: #e7e7e7;
197+
background-image: -moz-linear-gradient(#fefefe, #e7e7e7);
198+
background-image: -webkit-linear-gradient(#fefefe, #e7e7e7);
199+
background-image: linear-gradient(#fefefe, #e7e7e7);
200+
background-repeat: repeat-x;
201+
border-radius: 2px;
202+
border: 1px solid #cfcfcf;
203+
color: #000;
204+
padding: 3px 5px;
205+
line-height: 10px;
206+
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
207+
display: inline-block;
208+
}
209+
163210
.markdown-body>*:first-child {
164211
margin-top: 0 !important;
165212
}
@@ -252,6 +299,8 @@
252299
padding-left: 2em;
253300
}
254301

302+
.markdown-body ul ul,
303+
.markdown-body ul ol,
255304
.markdown-body ol ol,
256305
.markdown-body ol ul {
257306
margin-top: 0;
@@ -660,3 +709,16 @@
660709
color: #999;
661710
background-color: #EAF2F5;
662711
}
712+
713+
.markdown-body .task-list-item {
714+
list-style-type: none;
715+
}
716+
717+
.markdown-body .task-list-item+.task-list-item {
718+
margin-top: 3px;
719+
}
720+
721+
.markdown-body .task-list-item-checkbox {
722+
margin: 0 4px 0.25em -20px;
723+
vertical-align: middle;
724+
}

0 commit comments

Comments
 (0)
0