Sha256: 4729d5449372c8e33395c8ae7a861a5e9cc49993f0163760271a486bd14d8c18
Contents?: true
Size: 1.42 KB
Versions: 2
Compression:
Stored size: 1.42 KB
Contents
// Tooltips .tooltip { position: relative; &::after { background: rgba($dark-color, .95); border-radius: $border-radius; bottom: 100%; color: $light-color; content: attr(data-tooltip); display: block; font-size: $font-size-sm; left: 50%; max-width: $control-width-sm; opacity: 0; overflow: hidden; padding: $unit-1 $unit-2; pointer-events: none; position: absolute; text-overflow: ellipsis; transform: translate(-50%, $unit-2); transition: all .2s ease; white-space: pre; z-index: $zindex-3; } &:focus, &:hover { &::after { opacity: 1; transform: translate(-50%, -$unit-1); } } &[disabled], &.disabled { pointer-events: auto; } &.tooltip-right { &::after { bottom: 50%; left: 100%; transform: translate(-$unit-1, 50%); } &:focus, &:hover { &::after { transform: translate($unit-1, 50%); } } } &.tooltip-bottom { &::after { bottom: auto; top: 100%; transform: translate(-50%, -$unit-2); } &:focus, &:hover { &::after { transform: translate(-50%, $unit-1); } } } &.tooltip-left { &::after { bottom: 50%; left: auto; right: 100%; transform: translate($unit-2, 50%); } &:focus, &:hover { &::after { transform: translate(-$unit-1, 50%); } } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectre_scss-0.5.5.0 | vendor/assets/stylesheets/spectre/_tooltips.scss |
spectre_scss-0.5.4.0 | vendor/assets/stylesheets/spectre/_tooltips.scss |