Skip to content

Commit

Permalink
use horizontal padding atoms in base
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Harvey committed Apr 11, 2019
1 parent b5825cb commit 1cbea07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
10 changes: 3 additions & 7 deletions css/src/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import (reference) url('./_h-FontSize.less');
@import (reference) url('./_-mb.less');
@import (reference) url('./_-pt.less');
@import (reference) url('./_-pl.less');


@p-line-height: 1.5; // equivalent to custom prop `--line-height` // COMBAK{FALLBACK} for custom property
Expand Down Expand Up @@ -225,16 +226,11 @@ hr {
}
ol,
ul {
padding: 0 0 0 4rem; // COMBAK{FALLBACK}
padding: logical 0 4rem 0 0; // NB <https://github.com/w3c/csswg-drafts/issues/1282>
.-pl-4;
li > &,
dt > &,
dd > & {
padding-left: 2rem; // COMBAK{FALLBACK}
@supports (padding-inline-start: 1rem) {
padding-left: unset;
padding-inline-start: 2rem;
}
.-pl-2;
}
}
ol {
Expand Down
5 changes: 2 additions & 3 deletions css/src/_o-List.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*################################*\
xmeter | _o-List.less
\*################################*/
@import (reference) url('./_-pl.less');


// The List Object
Expand Down Expand Up @@ -30,9 +31,7 @@
//
// Styleguide Objects.List
.o-List {
padding-left: 0; // COMBAK{FALLBACK}
padding-left: initial; // COMBAK{FALLBACK}
padding-left: unset;
.-pl-0;
list-style: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/src/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fieldset {
margin: initial; /* COMBAK{FALLBACK} */
margin: unset;
}
ol, ul,
ol, ul, dl,
th, td,
legend {
padding: 0; /* COMBAK{FALLBACK} */
Expand Down

0 comments on commit 1cbea07

Please sign in to comment.