Sha256: 3e65599d764c31207987cd1d78a7f6bda745a252c6ab4ca98f7f00a3f3edeeec

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

// Popovers
.popover {
  display: inline-block;
  position: relative;

  .popover-container {
    left: 50%;
    opacity: 0;
    padding: $layout-spacing;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .2s ease;
    width: $control-width-sm;
    z-index: $zindex-4;
  }

  *:focus + .popover-container,
  &:hover .popover-container,
  .popover-container:hover {
    display: block;
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }

  &.popover-right {
    .popover-container {
      left: 100%;
      top: 50%;
    }

    :focus + .popover-container,
    &:hover .popover-container,
    .popover-container:hover {
      transform: translate(0, -50%) scale(1);
    }
  }

  &.popover-bottom {
    .popover-container {
      left: 50%;
      top: 100%;
    }

    :focus + .popover-container,
    &:hover .popover-container,
    .popover-container:hover {
      transform: translate(-50%, 0) scale(1);
    }
  }

  &.popover-left {
    .popover-container {
      left: 0;
      top: 50%;
    }

    :focus + .popover-container,
    &:hover .popover-container,
    .popover-container:hover {
      transform: translate(-100%, -50%) scale(1);
    }
  }

  .card {
    @include shadow-variant(.2rem);
    border: 0;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spectre_scss-0.5.0.0 vendor/assets/stylesheets/spectre/_popovers.scss
spectre_scss-0.4.7.0 vendor/assets/stylesheets/spectre/_popovers.scss
spectre_scss-0.4.6.0 vendor/assets/stylesheets/spectre/_popovers.scss