Skip to content

Commit

Permalink
Fix to CSS for top margin bug when rendering nested lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Yanarella committed Mar 30, 2012
1 parent a69fdef commit d9a83f4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
16 changes: 13 additions & 3 deletions CSS/Solarized (Dark).css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ p {
strong {
font-weight: bold;
}
ol, ul {
ol,
ul {
margin-left: 2em;
margin-bottom: 20px;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin-top: 10px;
}
li {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -93,7 +100,8 @@ p img {
pre {
margin-bottom: 20px;
}
pre, code {
pre,
code {
font-family: monospace;
}
pre {
Expand Down Expand Up @@ -131,7 +139,9 @@ html h6 {
color: #93a1a1;
border-color: #839496;
}
html a, html a:active, html a:visited {
html a,
html a:active,
html a:visited {
color: #93a1a1;
}
html a:hover {
Expand Down
16 changes: 13 additions & 3 deletions CSS/Solarized (Light).css
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ p {
strong {
font-weight: bold;
}
ol, ul {
ol,
ul {
margin-left: 2em;
margin-bottom: 20px;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin-top: 10px;
}
li {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -93,7 +100,8 @@ p img {
pre {
margin-bottom: 20px;
}
pre, code {
pre,
code {
font-family: monospace;
}
pre {
Expand Down Expand Up @@ -131,7 +139,9 @@ html h6 {
color: #586e75;
border-color: #657b83;
}
html a, html a:active, html a:visited {
html a,
html a:active,
html a:visited {
color: #586e75;
}
html a:hover {
Expand Down
3 changes: 3 additions & 0 deletions Source/Less/Solarized.less
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ ol,ul {
margin-left: 2em;
margin-bottom: @vmargin;
}
ul ul, ol ol, ul ol, ol ul {
margin-top: 10px;
}
li {
margin-bottom: @vmargin / 2;
}
Expand Down

0 comments on commit d9a83f4

Please sign in to comment.