Sha256: 5e44d7ebc7d13dd3b6dc28df3182332634b93ba26ce1eefdef43066aac941792

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

.repeater {
  position: relative;
}

.repeater-row {
  position: relative;

  &:hover {
    .repeater-row-remove {
      visibility: visible;
    }

    .repeater-row-add {
      visibility: visible;
    }

    .repeater-row-handle {
      visibility: visible;
    }
  }

  .mb-3:last-of-type {
    margin-bottom: 0 !important;
  }
}

.repeater-row-remove {
  position: absolute;
  top: calc(50% - 17px);
  right: -22px;
  z-index: 2;
  visibility: hidden;

  i.bi {
    background: white;
    border-radius: 50%;
  }
}

.repeater-row-add {
  position: absolute;
  top: calc(100% - 18px);
  right: calc(50% - 17px);
  z-index: 2;
  visibility: hidden;

  i.bi {
    background: white;
    border-radius: 50%;
  }
}

.repeater-row-handle {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  visibility: hidden;
  cursor: move;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.5.3 app/assets/stylesheets/headmin/forms/repeater.scss
headmin-0.5.2 app/assets/stylesheets/headmin/forms/repeater.scss