Skip to content
Permalink
Browse files

details: Improvements to whitespace on details elements

  • Loading branch information...
Andre D
Andre D committed Dec 7, 2015
1 parent 7ac3e88 commit 95bd248f1b5380e62929fad3833cae582e037373
Showing with 10 additions and 13 deletions.
  1. +6 −13 src/base/details/_base.scss
  2. +1 −0 src/plugins/menu/_base.scss
  3. +3 −0 src/polyfills/details/_base.scss
@@ -26,24 +26,17 @@ summary {
}

details {
padding-left: $details-identation;
padding-right: $details-identation;

> {
:not(summary) {
margin-left: $details-identation;
summary {
margin-left: -$details-identation;
margin-right: -$details-identation;
}
}

&[open] {
padding-bottom: 1em;
}
}

[dir=rtl] {
details {
> {
:not(summary) {
margin-left: 0;
margin-right: $details-identation;
}
}
}
}
@@ -96,6 +96,7 @@
&,
&[open] {
border: 0;
margin-bottom: 0;

summary {
border: 0;
@@ -18,6 +18,8 @@ summary {
}

details {
margin-bottom: .25em;

summary {
border: 1px solid #ddd;
border-radius: 4px;
@@ -41,6 +43,7 @@ details {
border-bottom: 1px solid #ddd;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
margin-bottom: .25em;
}
}

0 comments on commit 95bd248

Please sign in to comment.
You can’t perform that action at this time.