Skip to content
Browse files

Fix to CSS for top margin bug when rendering nested lists.

  • Loading branch information...
1 parent a69fdef commit d9a83f4e7a47432baff86e1e7946d9e066cf3d1b @johnyanarella johnyanarella committed Mar 30, 2012
Showing with 29 additions and 6 deletions.
  1. +13 −3 CSS/Solarized (Dark).css
  2. +13 −3 CSS/Solarized (Light).css
  3. +3 −0 Source/Less/Solarized.less
View
16 CSS/Solarized (Dark).css
@@ -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;
}
@@ -93,7 +100,8 @@ p img {
pre {
margin-bottom: 20px;
}
-pre, code {
+pre,
+code {
font-family: monospace;
}
pre {
@@ -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 {
View
16 CSS/Solarized (Light).css
@@ -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;
}
@@ -93,7 +100,8 @@ p img {
pre {
margin-bottom: 20px;
}
-pre, code {
+pre,
+code {
font-family: monospace;
}
pre {
@@ -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 {
View
3 Source/Less/Solarized.less
@@ -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;
}

0 comments on commit d9a83f4

Please sign in to comment.
Something went wrong with that request. Please try again.