Sha256: e4fb22d7a8b15fce194e546eee3c5352975ed931eed41c8e89ff6305f59f13bf
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 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: opacity .2s, transform .2s; 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
5 entries across 5 versions & 1 rubygems