Sha256: 290e9841f34300c96c1ebf2e1752cb72f320e88a457b5ece0f2e0d14efbe0d09

Contents?: true

Size: 1.67 KB

Versions: 54

Compression:

Stored size: 1.67 KB

Contents

@import "mixins/settings.global";

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

  &:before,
  &:after {
    visibility: hidden;
    z-index: $z-over-page;
  }

  &:before {
    position: absolute;
    border: $tooltip-arrow-width solid transparent;
    content: "";
  }

  &:after {
    position: absolute;
    padding: .25em .5em;
    border: $tooltip-body-border-width $tooltip-body-border-style $tooltip-body-border-color;
    border-radius: $border-radius;
    background-color: $tooltip-body-background-color;
    color: $tooltip-body-color;
    line-height: $tooltip-line-height;
    white-space: nowrap;
    content: attr(aria-label);
    visibility: hidden;
  }

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

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

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

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

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

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

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

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

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

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
activeadmin_blaze_theme-1.1.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-1.0.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.7.10 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.7.8 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.7.6 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.7.4 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.16 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.14 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
iatelier-0.5.2 src/sass/blaze/components.tooltips.scss
iatelier-0.5.1 src/sass/blaze/components.tooltips.scss
iatelier-0.5.0 src/sass/blaze/components.tooltips.scss
ilog-0.4.1 node_modules/blaze/scss/src/components.tooltips.scss
ilog-0.4.0 node_modules/blaze/scss/src/components.tooltips.scss
iatelier-0.4.4 src/sass/blaze/components.tooltips.scss
iatelier-0.4.3 src/sass/blaze/components.tooltips.scss
ilog-0.3.3 node_modules/blaze/scss/src/components.tooltips.scss
iatelier-0.4.2 src/sass/blaze/components.tooltips.scss
iatelier-0.4.1 src/sass/blaze/components.tooltips.scss
iatelier-0.4.0 src/sass/blaze/components.tooltips.scss
iatelier-0.3.2 src/sass/blaze/components.tooltips.scss