sass-site/source/assets/stylesheets/components/_lists.scss

71 lines
1.2 KiB
SCSS
Raw Normal View History

2013-10-09 12:30:53 +02:00
%reset-list {
margin: 0;
padding: 0;
list-style: none;
2013-02-11 00:04:29 +01:00
}
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
%horizontal-list {
@extend %reset-list;
2013-02-09 04:10:33 +01:00
2013-02-11 00:04:29 +01:00
li {
display: inline-block;
2013-10-09 12:30:53 +02:00
margin: {
right: -2px;
left: $gutter-width;
}
2013-02-11 00:04:29 +01:00
2013-10-09 12:30:53 +02:00
&:first-child { margin-left: 0; }
2013-02-09 04:10:33 +01:00
}
2013-02-11 00:04:29 +01:00
}
2013-10-09 12:30:53 +02:00
.tiled-list {
@extend %reset-list;
margin: 0 auto;
@include at-breakpoint($screen-small) {
@extend %clear-fix-screen-small;
margin: 0 #{-$gutter-width / 2};
max-width: none;
li {
float: left;
width: 100 / 3 * 1%;
padding: {
right: $gutter-width;
left: $gutter-width;
}
&:nth-child(3n+4) { clear: both; }
li {
float: none;
width: auto;
padding: {
right: 0;
left: 0;
}
}
2013-02-11 00:04:29 +01:00
}
2013-02-09 04:10:33 +01:00
}
}
2013-10-09 12:30:53 +02:00
%description-list {
@include at-breakpoint($mobile-large) { dd { margin-left: 0; } }
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
@include at-breakpoint($tablet-small) {
@extend %table-layout-tablet-small;
table-layout: fixed;
text-align: left;
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
dt,
dd { @extend %table-layout-cell-baseline-tablet-small; }
2013-02-09 04:10:33 +01:00
2013-10-09 12:30:53 +02:00
dt { padding-right: $gutter-width / 2; }
dd { padding-left: $gutter-width / 2; }
2013-02-11 00:04:29 +01:00
}
2013-10-09 12:30:53 +02:00
@include at-breakpoint($screen-small) {
dt { width: 100 / 3 * 1%; }
}
2013-02-09 04:10:33 +01:00
}