Skip to content

Commit

Permalink
fix(styles): wrong table stripes on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 17, 2016
1 parent ed54a36 commit edca9fc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions _app/assets/themes/curtana/_less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,41 @@ body:hover .latest {
.margin-offset(-@space-xs, -@space-xs);
margin-bottom: 1.8rem;

@media (max-width: @breakpoint-md) {
width: calc(100% + (@space-md * 2));
.margin-offset(-@space-md, -@space-md);
}

@media (max-width: @breakpoint-sm) {
width: calc(100% + (@space-sm * 2));
.margin-offset(-@space-sm, -@space-sm);
}

th,
td {
padding: .6em @space-xs;

@media (max-width: @breakpoint-md) {

&:first-child {
padding-left: @space-md;
}

&:last-child {
padding-right: @space-md;
}
}

@media (max-width: @breakpoint-sm) {

&:first-child {
padding-left: @space-sm;
}

&:last-child {
padding-right: @space-sm;
}
}
}

th {
Expand Down

0 comments on commit edca9fc

Please sign in to comment.