Use divs instead of table tags

Tables are non-responsive by design and require more overrides to be cross-browser compatible
This commit is contained in:
2016-09-22 12:31:39 +02:00
parent 7dee8f7c44
commit e3e586583f
5 changed files with 62 additions and 10 deletions

View File

@@ -115,3 +115,27 @@ select.input-transparent
color: $color-text-dark-secondary
margin-left: auto
font-size: .9em
.table
display: table
width: 100%
.table-row
display: table-row
&:hover
background-color: $color-background-light
.table-head
display: table-header-group
.table-cell
padding: 5px
font-size: .9em
color: $color-text-dark-secondary
.table-body
display: table-row-group
.table-cell
display: table-cell
border-bottom: thin solid $color-background-dark

View File

@@ -73,3 +73,5 @@ $screen-md-max: $screen-lg-min - 1
$sidebar-width: 50px
$shots-list-thumbnail-width: 100px

23
src/styles/_shots.sass Normal file
View File

@@ -0,0 +1,23 @@
.table
.table-head
.table-cell
&.shot-thumbnail
width: $shots-list-thumbnail-width
&.task-type
text-transform: capitalize
.table-body
display: table-row-group
.table-cell
&.shot-name
padding-left: 10px
&.task-name
max-width: 120px
+text-overflow-ellipsis
a
display: block

View File

@@ -4,3 +4,4 @@
@import _base
@import _tasks
@import _shots