.affiliate-block-sections{ position: relative; button.affiliate-block-refresh{ position: absolute; top: -41px; right: 20px; z-index: 2; border: none; padding: 0; cursor: pointer; background: transparent; height: 24px; width: 24px; text-align: center; line-height: 24px; &:focus{ outline: none; } &.affiliate-is-loading{ animation: affiliateSync 1s linear infinite; } &.affiliate-done { color: #00cf00; span.fas::before{ content: "\f00c"; } } } } @keyframes affiliateSync { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } } .affiliate-block-section{ position: relative; margin-bottom: 10px; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); overflow: hidden; background: #dddddd; img{ display: block; } .affiliate-block-section-btns{ position: absolute; width: 100%; height: 100%; left: 0; top: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; background: rgba(33, 132, 249, 0.8); transition: 300ms; button{ font-size: 12px; line-height: 28px; height: 28px; padding: 0 24px; background: #ffffff; border-radius: 30px; color: #565D66; display: block; border: none; font-weight: 500; cursor: pointer; transition: 300ms; &:hover{ color: #2184F9; box-shadow: 0 8px 10px -3px rgba(0,0,0,.3); } } } &:hover{ .affiliate-block-section-btns{ opacity: 1; visibility: visible; } } }