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
iatelier-0.3.1 src/sass/blaze/components.tooltips.scss
iatelier-0.3.0 src/sass/blaze/components.tooltips.scss
iatelier-0.1.8 lib/iatelier/assets/sass/blaze/components.tooltips.scss
iatelier-0.1.7 lib/iatelier/assets/sass/blaze/components.tooltips.scss
iatelier-0.1.5 lib/iatelier/assets/sass/blaze/components.tooltips.scss
iatelier-0.1.4 lib/iatelier/assets/sass/blaze/components.tooltips.scss
iatelier-0.1.3 lib/iatelier/assets/sass/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.12 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.10 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.9 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.8 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.6 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.4 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.5.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.9 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.8 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.7 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.6 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.5 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss
activeadmin_blaze_theme-0.4.4 app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss