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:
@@ -115,3 +115,27 @@ select.input-transparent
|
|||||||
color: $color-text-dark-secondary
|
color: $color-text-dark-secondary
|
||||||
margin-left: auto
|
margin-left: auto
|
||||||
font-size: .9em
|
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
|
||||||
|
@@ -73,3 +73,5 @@ $screen-md-max: $screen-lg-min - 1
|
|||||||
|
|
||||||
|
|
||||||
$sidebar-width: 50px
|
$sidebar-width: 50px
|
||||||
|
|
||||||
|
$shots-list-thumbnail-width: 100px
|
||||||
|
23
src/styles/_shots.sass
Normal file
23
src/styles/_shots.sass
Normal 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
|
||||||
|
|
||||||
|
|
@@ -4,3 +4,4 @@
|
|||||||
|
|
||||||
@import _base
|
@import _base
|
||||||
@import _tasks
|
@import _tasks
|
||||||
|
@import _shots
|
||||||
|
@@ -8,25 +8,27 @@
|
|||||||
|
|
||||||
a#task-add(href="javascript:task_create('{{ project.url }}');") + Create Shot
|
a#task-add(href="javascript:task_create('{{ project.url }}');") + Create Shot
|
||||||
|
|
||||||
table.table
|
.table
|
||||||
thead
|
.table-head
|
||||||
tr
|
.table-row
|
||||||
td Name
|
.table-cell.shot-thumbnail Thumbnail
|
||||||
|
.table-cell.shot-name Name
|
||||||
| {% for task_type in task_types %}
|
| {% for task_type in task_types %}
|
||||||
td.text-capitalize {{ task_type or 'other' }}
|
.table-cell.task-type {{ task_type or 'other' }}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
tbody
|
.table-body
|
||||||
| {% for shot in shots %}
|
| {% for shot in shots %}
|
||||||
tr
|
.table-row
|
||||||
td {{ shot.name }}
|
.table-cell
|
||||||
|
img(src="http://placehold.it/100x60")
|
||||||
|
.table-cell.shot-name {{ shot.name }}
|
||||||
| {% for task_type in task_types %}
|
| {% for task_type in task_types %}
|
||||||
td
|
.table-cell.task-name
|
||||||
| {% for task in tasks_for_shots[shot._id][task_type] %}
|
| {% for task in tasks_for_shots[shot._id][task_type] %}
|
||||||
a(
|
a(
|
||||||
href="javascript:task_open('{{ task._id }}', '{{ project.url }}');",
|
href="javascript:task_open('{{ task._id }}', '{{ project.url }}');",
|
||||||
class="status-{{ task.properties.status }}")
|
class="status-{{ task.properties.status }}")
|
||||||
span(class="task-name-{{ task._id }}") {{ task.name }}
|
span(class="task-name-{{ task._id }}") {{ task.name }}
|
||||||
br
|
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
| {% if not tasks_for_shots[shot._id][task_type] %}
|
| {% if not tasks_for_shots[shot._id][task_type] %}
|
||||||
a(
|
a(
|
||||||
|
Reference in New Issue
Block a user