Files
attract/src/styles/_shots.sass

182 lines
3.7 KiB
Sass
Raw Normal View History

2016-10-21 14:47:55 +02:00
.table#shot-list
background-color: white
.table-row:hover
background-color: $color-background-light
.table-cell
&.shot-status
width: 5px
height: 100%
.table-head
.table-cell
2016-09-22 16:43:19 +02:00
text-align: center
2016-09-26 15:58:08 +02:00
&.highlight .collapser
color: $color-primary-dark
&.shot-thumbnail
width: $shots-list-thumbnail-width
&.task-type
text-transform: capitalize
span.collapser
cursor: pointer
2016-09-22 16:43:19 +02:00
width: 100%
display: inline-block
padding: 5px
2016-09-26 15:58:08 +02:00
&:hover
span.collapser
color: $color-primary
.table-body
display: table-row-group
.table-row
position: relative
&.active
2016-11-04 12:48:01 +01:00
background-color: $color-background-active
2016-11-04 12:48:01 +01:00
.table-cell
border-bottom-color: darken($color-background-active, 15%)
.table-cell:last-child
box-shadow: inset -5px 0 0 $color-primary
2016-11-04 11:42:34 +01:00
&.not-in-edit
2016-11-04 12:48:01 +01:00
+stripes(rgba($color-background, .1), rgba($color-background, .5), 90deg, 28px)
2016-11-04 11:42:34 +01:00
.table-cell
&.shot-name a
color: $color-text-dark-secondary
&.shot-status
opacity: .2
&.task-type .task-link
&:before
opacity: .3
background: transparent
border: 2px solid $color-text-dark-secondary
&.shot-thumbnail img
opacity: .5
2016-11-04 12:48:01 +01:00
&.active
+stripes(white, rgba($color-background-active, .8), 90deg, 28px)
2016-11-04 11:42:34 +01:00
2016-11-04 12:48:01 +01:00
&:hover, &.active
2016-11-04 11:42:34 +01:00
.table-cell
&.shot-thumbnail img
opacity: 1
&.task-type .task-link
@include status-color-property(background-color, ':before', '')
&:before
opacity: 1
border: none
2016-10-13 19:25:22 +02:00
@include status-color-property(background-color, ' .shot-status', '')
.table-cell
2016-09-22 16:43:19 +02:00
text-align: center
2016-09-26 15:58:08 +02:00
border-left: thin solid transparent
border-right: thin solid transparent
&.active
background-color: $color-background
&.highlight
background-color: $color-background-light
&.shot-name
2016-09-22 16:43:19 +02:00
text-align: left
2016-09-26 15:58:08 +02:00
position: relative
height: 100%
a
2016-10-12 16:36:08 +02:00
display: flex
padding: 5px 10px
color: $color-text-dark-primary
span
margin: auto 0
2016-11-04 11:42:34 +01:00
&.shot-thumbnail img
transition: opacity 150ms ease-in-out
&.task-type
2016-09-26 15:58:08 +02:00
position: relative
height: 100%
overflow: hidden
white-space: nowrap
a
2016-10-12 16:36:08 +02:00
display: inline-block /* Each task next to each other */
vertical-align: middle
2016-09-26 15:58:08 +02:00
height: 100%
2016-10-12 16:36:08 +02:00
min-height: 100%
padding: 15px
2016-09-22 16:43:19 +02:00
transition: all 150ms ease-in-out
2016-10-12 16:36:08 +02:00
position: relative
2016-10-12 16:36:08 +02:00
@include status-color-property(background-color, ':before', '')
2016-09-26 15:58:08 +02:00
2016-11-03 17:51:33 +01:00
&:focus
outline: none
&:before
transform: translate(-50%, -50%) scale(1.5)
2016-09-26 15:58:08 +02:00
&:before
display: block
content: ''
position: absolute
width: 16px
height: 16px
border-radius: 50%
border: 2px solid transparent
2016-10-12 16:36:08 +02:00
+position-center-translate
transition: all 150ms ease-in-out
2016-09-22 16:43:19 +02:00
2016-10-12 16:36:08 +02:00
span
display: block
+position-center-translate
z-index: 1
font:
weight: bold
size: .8em
text:
align: center
transform: capitalize
color: white
&.active
opacity: 1
&:before
2016-10-12 16:36:08 +02:00
transform: translate(-50%, -50%) scale(1.3)
2016-11-03 17:51:33 +01:00
border: 2px solid white
box-shadow: 0 0 5px 1px $color-background-dark, 1px 1px 0 rgba(black, .2)
2016-10-12 16:36:08 +02:00
&:hover
border-color: $color-primary-light
&.task-add
width: auto
border-radius: initial
2016-09-23 18:07:11 +02:00
opacity: 0
2016-09-26 15:58:08 +02:00
vertical-align: middle
padding: 5px
2016-09-29 15:35:52 +02:00
display: flex
2016-10-20 16:35:17 +02:00
justify-content: center
2016-11-03 17:51:33 +01:00
&:hover, &:focus
opacity: 1
&:hover
&:before
opacity: .8
2016-10-12 16:36:08 +02:00
transform: translate(-50%, -50%) scale(1.2)
&.active:before
transform: translate(-50%, -50%) scale(1.3)