Skip to content

Commit

Permalink
Better responsive .table
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Dec 11, 2014
1 parent e1b503f commit 447e01b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions bemo/blocks/_table.sass
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
.table
width: 100%
table-layout: fixed
border: 1px solid $border-color
background-color: white

thead
background-color: $light-bg-color
border: 1px solid $border-color

td, th
text-align: left
+padding(1)

th
+heading-font-family
font-variant: small-caps
text-transform: uppercase
border-bottom: 1px solid $border-color

tr:nth-child(2n)
background-color: $light-bg-color

Expand All @@ -33,16 +34,23 @@
left: -9999px

tr
border-width: 0
display: block
border: 1px solid $border-color
+margin-bottom(1)

td
border-bottom: 1px solid $border-color
white-space: normal
text-align: left

&:last-child
border-bottom-width: 0

&:before
color: $light-body-color
+font-size(milli)
content: attr(data-title)
font-variant: small-caps
text-transform: uppercase
display: block

0 comments on commit 447e01b

Please sign in to comment.