Sha256: e542483d455eb9caeaec5d4b7fd0609c38636386ad5a9b8f2615ca9425e78ee9

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

.c-tooltip {
  position: relative;
  overflow: visible;

  &::before,
  &::after {
    z-index: var(--z-over-page);
    visibility: hidden;
  }

  &::before {
    position: absolute;
    border: 0.6em solid transparent;
    content: '';
  }

  &::after {
    position: absolute;
    padding: 0.25em 0.5em;
    color: #fff;
    line-height: 1.45;
    white-space: nowrap;
    background-color: #000;
    border: 1px solid #000;
    border-radius: var(--border-radius);
    visibility: hidden;
    content: attr(aria-label);
  }

  &:hover::before,
  &:hover::after {
    visibility: visible;
  }
}

.c-tooltip--top {
  &::before {
    top: 0%;
    left: 50%;
    border-top-color: #000;
    transform: translate(-50%, -1em);
  }

  &::after {
    top: 0%;
    left: 50%;
    transform: translate(-50%, -3em);
  }
}

.c-tooltip--right {
  &::before {
    top: 50%;
    left: 100%;
    border-right-color: #000;
    transform: translate(0, -50%);
  }

  &::after {
    top: 50%;
    left: 100%;
    transform: translate(1em, -50%);
  }
}

.c-tooltip--bottom {
  &::before {
    bottom: 0;
    left: 50%;
    border-bottom-color: #000;
    transform: translate(-50%, 1em);
  }

  &::after {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 3em);
  }
}

.c-tooltip--left {
  &::before {
    top: 50%;
    right: 100%;
    border-left-color: #000;
    transform: translate(0, -50%);
  }

  &::after {
    top: 50%;
    right: 100%;
    transform: translate(-1em, -50%);
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_blaze_theme-0.7.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tooltips.scss
activeadmin_blaze_theme-0.6.2 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tooltips.scss
activeadmin_blaze_theme-0.6.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tooltips.scss