Click on the whole cell to open task
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
.table-cell
|
.table-cell
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
|
&.highlight .collapser
|
||||||
|
color: $color-primary-dark
|
||||||
|
|
||||||
&.shot-thumbnail
|
&.shot-thumbnail
|
||||||
width: $shots-list-thumbnail-width
|
width: $shots-list-thumbnail-width
|
||||||
|
|
||||||
@@ -19,6 +22,10 @@
|
|||||||
display: inline-block
|
display: inline-block
|
||||||
padding: 5px
|
padding: 5px
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
span.collapser
|
||||||
|
color: $color-primary
|
||||||
|
|
||||||
.table-body
|
.table-body
|
||||||
display: table-row-group
|
display: table-row-group
|
||||||
|
|
||||||
@@ -60,35 +67,62 @@
|
|||||||
|
|
||||||
.table-cell
|
.table-cell
|
||||||
text-align: center
|
text-align: center
|
||||||
|
border-left: thin solid transparent
|
||||||
|
border-right: thin solid transparent
|
||||||
|
|
||||||
|
&.active
|
||||||
|
background-color: $color-background
|
||||||
|
|
||||||
|
&.highlight
|
||||||
|
background-color: $color-background-light
|
||||||
|
|
||||||
&.shot-name
|
&.shot-name
|
||||||
padding: 0px 10px
|
padding: 0px 10px
|
||||||
text-align: left
|
text-align: left
|
||||||
|
position: relative
|
||||||
|
height: 100%
|
||||||
a
|
a
|
||||||
|
height: 100%
|
||||||
color: $color-text-dark-primary
|
color: $color-text-dark-primary
|
||||||
|
|
||||||
&.task-type
|
&.task-type
|
||||||
max-width: 120px
|
max-width: 120px
|
||||||
|
position: relative
|
||||||
|
height: 100%
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
a
|
a
|
||||||
display: inline-block /* Each task in a new line */
|
display: inline-block /* Each task in a new line */
|
||||||
border-radius: 50%
|
|
||||||
width: 16px
|
|
||||||
height: 16px
|
|
||||||
position: relative
|
position: relative
|
||||||
top: 2px
|
top: 2px
|
||||||
+text-overflow-ellipsis
|
height: 100%
|
||||||
+status-background-color
|
width: 100%
|
||||||
transition: all 150ms ease-in-out
|
transition: all 150ms ease-in-out
|
||||||
|
+status-background-color-before
|
||||||
|
|
||||||
|
&:before
|
||||||
|
display: block
|
||||||
|
content: ''
|
||||||
|
position: absolute
|
||||||
|
width: 16px
|
||||||
|
height: 16px
|
||||||
|
border-radius: 50%
|
||||||
|
border: 2px solid transparent
|
||||||
|
top: 50%
|
||||||
|
left: 50%
|
||||||
|
transform: translate(-50%, -50%)
|
||||||
|
|
||||||
&.active
|
&.active
|
||||||
opacity: 1
|
opacity: 1
|
||||||
border-radius: 3px
|
border-radius: 2px
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
||||||
&.task-add
|
&.task-add
|
||||||
width: auto
|
width: auto
|
||||||
border-radius: initial
|
border-radius: initial
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
vertical-align: middle
|
||||||
|
|
||||||
&:hover a.task-add
|
&:hover a.task-add
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
@@ -510,21 +510,40 @@
|
|||||||
=status-background-color
|
=status-background-color
|
||||||
&.status
|
&.status
|
||||||
&-invalid
|
&-invalid
|
||||||
background-color: hsl(hue($color-status-invalid), 100%, 75%)
|
background-color: hsl(hue($color-status-invalid), 100%, 75%)
|
||||||
&-todo
|
&-todo
|
||||||
background-color: $color-status-todo-dark
|
background-color: $color-status-todo-dark
|
||||||
&-in_progress
|
&-in_progress
|
||||||
background-color: hsl(hue($color-status-in_progress), 100%, 50%)
|
background-color: hsl(hue($color-status-in_progress), 100%, 50%)
|
||||||
&-on_hold
|
&-on_hold
|
||||||
background-color: hsl(hue($color-status-on_hold), 60%, 50%)
|
background-color: hsl(hue($color-status-on_hold), 60%, 50%)
|
||||||
&-approved
|
&-approved
|
||||||
background-color: hsl(hue($color-status-approved), 40%, 60%)
|
background-color: hsl(hue($color-status-approved), 40%, 60%)
|
||||||
&-cbb
|
&-cbb
|
||||||
background-color: $color-status-cbb
|
background-color: $color-status-cbb
|
||||||
&-final
|
&-final
|
||||||
background-color: hsl(hue($color-status-final), 100%, 40%)
|
background-color: hsl(hue($color-status-final), 100%, 40%)
|
||||||
&-review
|
&-review
|
||||||
background-color: hsl(hue($color-status-review), 100%, 75%)
|
background-color: hsl(hue($color-status-review), 100%, 75%)
|
||||||
|
|
||||||
|
=status-background-color-before
|
||||||
|
&.status
|
||||||
|
&-invalid:before
|
||||||
|
background-color: hsl(hue($color-status-invalid), 100%, 75%)
|
||||||
|
&-todo:before
|
||||||
|
background-color: $color-status-todo-dark
|
||||||
|
&-in_progress:before
|
||||||
|
background-color: hsl(hue($color-status-in_progress), 100%, 50%)
|
||||||
|
&-on_hold:before
|
||||||
|
background-color: hsl(hue($color-status-on_hold), 60%, 50%)
|
||||||
|
&-approved:before
|
||||||
|
background-color: hsl(hue($color-status-approved), 40%, 60%)
|
||||||
|
&-cbb:before
|
||||||
|
background-color: $color-status-cbb
|
||||||
|
&-final:before
|
||||||
|
background-color: hsl(hue($color-status-final), 100%, 40%)
|
||||||
|
&-review:before
|
||||||
|
background-color: hsl(hue($color-status-review), 100%, 75%)
|
||||||
|
|
||||||
=status-color
|
=status-color
|
||||||
&.status
|
&.status
|
||||||
|
@@ -71,12 +71,13 @@ script.
|
|||||||
$(function() { item_open('{{ open_shot_id }}', 'shot', false); });
|
$(function() { item_open('{{ open_shot_id }}', 'shot', false); });
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
var same_cells;
|
||||||
|
|
||||||
$('.table-head .table-cell span').on('click', function(e){
|
$('.table-head .table-cell span').on('click', function(e){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
/* We need to find every cell matching the same classes */
|
/* We need to find every cell matching the same classes */
|
||||||
var same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
||||||
$(same_cells).hide();
|
$(same_cells).hide();
|
||||||
/* Add the spacer which we later click to expand */
|
/* Add the spacer which we later click to expand */
|
||||||
$('<div class="table-cell-spacer"></div>').insertAfter(same_cells);
|
$('<div class="table-cell-spacer"></div>').insertAfter(same_cells);
|
||||||
@@ -84,9 +85,26 @@ script.
|
|||||||
|
|
||||||
$('body').on('click', '.table-cell-spacer', function(){
|
$('body').on('click', '.table-cell-spacer', function(){
|
||||||
/* We need to find every cell matching the same classes */
|
/* We need to find every cell matching the same classes */
|
||||||
var same_cells = '.' + $(this).prev().attr('class').split(' ').join('.');
|
same_cells = '.' + $(this).prev().attr('class').split(' ').join('.');
|
||||||
$(same_cells).show();
|
$(same_cells).show();
|
||||||
$(same_cells).next().remove();
|
$(same_cells).next().remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.table-body .table-cell').mouseenter(function(){
|
||||||
|
same_cells = '.' + $(this).attr('class').split(' ').join('.');
|
||||||
|
$('.table-head ' + same_cells).addClass('highlight');
|
||||||
|
}).mouseleave(function(){
|
||||||
|
same_cells = '.' + $(this).attr('class').split(' ').join('.');
|
||||||
|
$('.table-head ' + same_cells).removeClass('highlight');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('.table-head .table-cell').mouseenter(function(){
|
||||||
|
same_cells = '.' + $(this).attr('class').split(' ').join('.');
|
||||||
|
$('.table-body ' + same_cells).addClass('highlight');
|
||||||
|
}).mouseleave(function(){
|
||||||
|
same_cells = '.' + $(this).attr('class').split(' ').join('.');
|
||||||
|
$('.table-body ' + same_cells).removeClass('highlight');
|
||||||
|
});
|
||||||
|
|
||||||
| {% endblock footer_scripts %}
|
| {% endblock footer_scripts %}
|
||||||
|
Reference in New Issue
Block a user