Commit 3aec5caa authored by Randall Leeds's avatar Randall Leeds

use sibling selectors for internal padding/borders

This addresses some of #370
parent 6b12541b
...@@ -21,13 +21,12 @@ body { ...@@ -21,13 +21,12 @@ body {
} }
p { p {
margin: 0 0 2em 0;
-webkit-hyphens: auto; -webkit-hyphens: auto;
-moz-hyphens: auto; -moz-hyphens: auto;
hyphens: auto; hyphens: auto;
&:last-child { & + p {
margin-bottom: 0; margin: 2em 0 0;
} }
} }
...@@ -312,9 +311,9 @@ blockquote { ...@@ -312,9 +311,9 @@ blockquote {
.dropdown-menu { .dropdown-menu {
@include rotateX(90deg); @include rotateX(90deg);
background: $white; background: $white;
border: solid 1px $grayLighter;
left: 0; left: 0;
top: 2em; top: 2em;
border: solid .1em $grayLighter;
float: left; float: left;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
...@@ -332,13 +331,12 @@ blockquote { ...@@ -332,13 +331,12 @@ blockquote {
} }
li { li {
cursor: pointer;
line-height: 1; line-height: 1;
text-align: left; text-align: left;
margin: .4em .5em 0; padding: .5em;
padding-bottom: .5em;
border-bottom: dotted 1px $grayLighter;
white-space: nowrap; white-space: nowrap;
cursor: pointer;
&:hover { &:hover {
color: black; color: black;
} }
...@@ -362,8 +360,9 @@ blockquote { ...@@ -362,8 +360,9 @@ blockquote {
cursor: default; cursor: default;
} }
} }
&:last-child {
border-bottom: 0; & + li {
border-top: dotted 1px $grayLighter;
} }
} }
...@@ -525,11 +524,6 @@ blockquote { ...@@ -525,11 +524,6 @@ blockquote {
@include force-wrap; @include force-wrap;
clear: both; clear: both;
margin: .25em 0; margin: .25em 0;
p:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
} }
} }
...@@ -580,7 +574,9 @@ blockquote { ...@@ -580,7 +574,9 @@ blockquote {
border-left: 1px dotted $grayLight; border-left: 1px dotted $grayLight;
position: relative; position: relative;
&:first-child { margin-top: .5em; } &:first-child {
margin-top: .5em;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment