Skip to content

Commit

Permalink
fix(table): table header on mobile
Browse files Browse the repository at this point in the history
Closes #787
  • Loading branch information
lubber-de authored and Sean committed Jun 6, 2019
1 parent 0bf3ddf commit e09b2ab
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/definitions/collections/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
width: 100%;
padding: 0;
}
.ui.table:not(.unstackable) > thead,
.ui.table:not(.unstackable) > thead > tr,
.ui.table:not(.unstackable) > tfoot,
.ui.table:not(.unstackable) > tfoot > tr,
.ui.table:not(.unstackable) > tbody,
.ui.table:not(.unstackable) > tr,
.ui.table:not(.unstackable) > tbody > tr,
Expand Down Expand Up @@ -196,10 +200,10 @@
box-shadow: @responsiveRowBoxShadow;
}

.ui.table:not(.unstackable) > tr > th,
.ui.table:not(.unstackable) > thead > tr > th,
.ui.table:not(.unstackable) > tbody > tr > th,
.ui.table:not(.unstackable) > tfoot > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > thead > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tbody > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tfoot > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tr > td,
.ui.ui.ui.ui.table:not(.unstackable) > tbody > tr > td {
background: none;
Expand Down Expand Up @@ -411,6 +415,10 @@
@media only screen and (max-width : @largestTabletScreen) {

.ui[class*="tablet stackable"].table,
.ui[class*="tablet stackable"].table > thead,
.ui[class*="tablet stackable"].table > thead > tr,
.ui[class*="tablet stackable"].table > tfoot,
.ui[class*="tablet stackable"].table > tfoot > tr,
.ui[class*="tablet stackable"].table > tbody,
.ui[class*="tablet stackable"].table > tbody > tr,
.ui[class*="tablet stackable"].table > tr,
Expand Down

0 comments on commit e09b2ab

Please sign in to comment.