.placements-builder { padding: 35px 25px 20px 25px; } .horizontal-rows { margin: 0; } .builder-row { position: relative; z-index: 1; margin: 0 0 20px 0; &:last-child { margin-bottom: 0; } &:hover { .ct-row-actions { opacity: 1; visibility: visible; } .row-inner { border-color: transparent; box-shadow: 0px 0px 0px 2px #0e8ecc; } } } .row-inner { display: flex; position: relative; z-index: 2; border-radius: 4px; background: #f7f7f7; border: 1px dashed #ccc; box-sizing: border-box; box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0); transition: border-color 0.1s ease, box-shadow 0.1s ease; } // row actions .ct-row-actions { display: flex; align-items: center; position: absolute; z-index: 1; top: 3px; left: -2px; height: 28px; font-size: 12px; font-weight: 500; line-height: normal; color: #fff; padding: 0 10px 4px 10px; background: #0e8ecc; border-radius: 4px 4px 0 0; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: opacity 0.1s ease, visibility 0.1s ease; } .ct-builder-dragging { .ct-row-actions { display: none; } } // row settings button .row-settings { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; appearance: none; padding: 0; margin-right: 8px; border: none; cursor: pointer; color: inherit; background: transparent; &:before { font-family: dashicons; content: '\f111'; font-size: 15px; } &:focus { outline: none; } }