add a gradiant background to buttons while hovering

pull/10221/head
bsatarnejad 3 years ago committed by Oliver Günther
parent 578552af8a
commit e25c270fe9
  1. 17
      frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass

@ -14,23 +14,31 @@
font-size: var(--card-font-size) font-size: var(--card-font-size)
&:hover &:hover
.op-wp-single-card--content-project-name_hideable
opacity: 0.25
.op-wp-single-card--inline-buttons .op-wp-single-card--inline-buttons
opacity: 1 opacity: 1
z-index: 1
:not(&_closed):not(&_checked)
&:hover
.op-wp-single-card--card-actions
background-image: linear-gradient(to left, rgba(white,1), rgba(white,0))
&_new &_new
padding-right: 25px padding-right: 25px
&_checked &_checked
background-color: var(--table-row-highlighting-color) background-color: var(--table-row-highlighting-color)
&:hover
.op-wp-single-card--inline-buttons
background-image: linear-gradient(to left, rgba(var(--table-row-highlighting-color),1), rgba(var(--table-row-highlighting-color),0))
&_disabled &_disabled
opacity: 0.6 opacity: 0.6
&_closed:not(&_checked) &_closed:not(&_checked)
background-color: #F3F3F3 background-color: #F3F3F3
&:hover
.op-wp-single-card--inline-buttons
background-image: linear-gradient(to left, rgba(#F3F3F3,1), rgba(#F3F3F3,0))
&_horizontal &_horizontal
height: 100% height: 100%
@ -134,7 +142,6 @@
right: 0 right: 0
&--card-action &--card-action
background: white
z-index: 2 z-index: 2
.op-wp-single-card_checked & .op-wp-single-card_checked &
@ -142,7 +149,7 @@
&--inline-buttons &--inline-buttons
opacity: 0 opacity: 0
background: white padding-left: 40px
&.-show &.-show
opacity: 1 opacity: 1

Loading…
Cancel
Save