Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Fix columns first and last from removing paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
alekart committed Jan 23, 2020
1 parent 84608b2 commit 7ea7527
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions bootstrap/_table-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,15 @@ div.responsive-table {

.column {
box-sizing: border-box;

@if $grid-gutter != 0 {
@if strip-unit($grid-gutter) > 0 {
padding-right: $grid-gutter/2;
padding-left: $grid-gutter/2;
}
vertical-align: top;

&.first {
@if $grid-gutter != 0 {
padding-left: 0;
}
}
&.last {
@if $grid-gutter != 0 {
padding-right: 0;
}
}
@media (max-width: $layout-width) {
box-sizing: border-box;
@if $grid-gutter != 0 {
@if strip-unit($grid-gutter) > 0 {
padding-right: $grid-gutter/2 !important;
padding-left: $grid-gutter/2 !important;
}
Expand All @@ -54,4 +43,4 @@ div.row {
&.responsive {
display: table-row;
}
}
}

0 comments on commit 7ea7527

Please sign in to comment.