.problem-slider { &__cell { // margin-left: 30px; // width: calc(33.3333% - 20px); flex:1; height: 215px; display: block; &.groups { width: auto; } } &__item { border-radius: 25px; border: 1px solid #d4dce3; overflow: hidden; height: 100%; display: flex; position: relative; flex-direction: column; &:hover .problem-slider__actions { opacity: 1; visibility: visible; } &--pic { position: relative; &__content { border-radius: 25px; position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: all 0.2s linear; opacity: 0; visibility: hidden; } .problem-slider { &__pic { position: relative; height: 100%; width: 100%; transition: all 0.2s linear; &-title { background-color: rgba(255, 255, 255, 0.7); position: absolute; width: 80%; top: 15px; left: 50%; z-index: 10; transform: translateX(-50%); padding: 4px 10px; border-radius: 5px; } } } &:hover .problem-slider__pic { opacity: 0; visibility: hidden; } &:hover .problem-slider__content { opacity: 1; visibility: visible; // background: linear-gradient(0deg, #12bbe5, transparent); // .problem-slider__edit { // color:#fff; // .tavasi,.icon { // font-size: 1.2rem; // } // } } } } &__content { padding: 16px; overflow: hidden; padding-bottom: 0; flex-grow: 1; } &__title { margin-bottom: 10px; } &__detail { color: #92a2b2; } &__actions { position: absolute; left: 0; right: 0; bottom: 0; transition: all 0.2s linear; height: 7em; padding: 1em; display: flex; justify-content: flex-end; align-items: flex-end; opacity: 0; visibility: hidden; background: linear-gradient(0deg, #333, transparent); &-item { color: #fff; display: flex; padding: 0.5em; font-size: 1rem } // i { // } // &:hover { // } } .flickity-button { border: 1px solid #f1f1f1; background-color: #fff; display: flex; justify-content: center; align-items: center; color: #92a2b2; width: 35px; height: 35px; border-radius: 50%; box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); svg { width: 14px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } &.next { left: 0; transform: translateX(-50%) translateY(-50%); } &.previous { right: 0; transform: translateX(50%) translateY(-50%); } &:disabled { opacity: 0; } } }