@mixin reset-list { margin: 0; padding: 0; list-style: none; } @mixin horizontal-list($resolution: false) { @if $resolution == false { @extend %reset-list; } @else { @extend %reset-list-#{$resolution}; } li { display: inline-block; margin: { right: -2px; left: 2em; } &:first-child { margin-left: 0; } } } %reset-list { @include reset-list; } %horizontal-list { @include horizontal-list; } <% data.layout.resolutions.each do |resolution| %> @include breakpoint($<%= resolution.target %>) { %reset-list-<%= resolution.target %> { @include reset-list; } %horizontal-list-<%= resolution.target %> { @include horizontal-list(<%= resolution.target %>); } } <% end %> %list-columns { @extend %reset-list; margin: 0 auto; @include breakpoint($tablet-large) { @extend %clear-fix-tablet-large; margin: 0 #{-$gutter-width}; > li { float: left; padding: { right: $gutter-width; left: $gutter-width; } li { float: none; width: auto; padding: { right: 0; left: 0; } } } } } .list-columns { @extend %list-columns; @include breakpoint($tablet-large) { li { width: 50%; &:nth-child(odd) { clear: both; } } } } .list-tiled { @extend %list-columns; @include breakpoint($tablet-large) { li { width: 100 / 3 * 1%; &:nth-child(3n+4) { clear: both; } } } } %description-list { @include breakpoint($mobile-large) { dd { margin-left: 0; } } @include breakpoint($tablet-small) { @extend %table-layout-tablet-small; table-layout: fixed; text-align: left; dt, dd { @extend %table-layout-cell-baseline-tablet-small; } dt { padding-right: $gutter-width / 2; } dd { padding-left: $gutter-width / 2; } } @include breakpoint($screen-small) { dt { width: 100 / 3 * 1%; } } } @include breakpoint($mobile-small) {}