Sha256: dd9c6068d7a18688748565ead100527e94af91e9e6d060b74eb8c3b89d9890e8

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

.tool {
  position: relative;
}

.tool::before,
.tool::after {
  left: 50%;
  position: absolute;
  color: white;
  opacity: 0;
  z-index: -100;
  pointer-events: none;
}

//.tool::before,
//.tool::after,
.tool:hover::before,
.tool:focus::before,
.tool:hover::after,
.tool:focus::after {
  opacity: 0.8;
  z-index: 100;
}

.tool::before {
  border-style: solid;
  border-width: 4px 3px 0 3px;
  border-color: black transparent transparent transparent;
  bottom: 100%;
  content: "";
  transform: translateX(-50%);
}

.tool::after {
  background: black;
  border-radius: 5px;
  bottom: calc(100% + 4px);;
  color: white;
  content: attr(title);
  padding: 5px 10px;
  transform: translateX(-50%);
}

.tool-left::before, .tool-left::after {
  right: 100%;
  left: auto;
  bottom: 50%;
  margin-bottom: 2px;
  transform: none;
}

.tool-left::before {
  border-width: 3px 2px 3px 4px;
  border-color: transparent transparent transparent black;
  transform: translateY(50%);
}

.tool-left::after {
  white-space: nowrap;
  margin-right: 6px;
  transform: translateY(50%);
}

.tool-bottom::before, .tool-bottom::after {
  bottom: auto;
  top: 100%;
  left: 50%;
  margin-bottom: 2px;
}

.tool-bottom::before {
  border-width: 0 3px 4px 3px;
  border-color: transparent transparent black transparent;
  transform: translateX(-50%);
}

.tool-bottom::after {
  white-space: nowrap;
  margin-top: 4px;
  transform: translateX(-50%);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/assets/stylesheets/ab_admin/components/_tooltip.scss
ab_admin-0.10.0 app/assets/stylesheets/ab_admin/components/_tooltip.scss