mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add hint.less
This commit is contained in:
1 parent
c2ea7d0ce0
commit
9cb8c56e4d
6 files changed
+681
-19
No files matched your search
@@ -59,10 +59,11 @@ export function inverseClass(target, className) {
|
||||
addClass(target, className);
|
||||
}
|
||||
|
||||
export function tooltip(target, msg, pos = 'up') {
|
||||
export function tooltip(target, msg, pos = 'top') {
|
||||
if (isMobile) return;
|
||||
target.setAttribute('aria-label', msg);
|
||||
target.setAttribute('data-balloon-pos', pos);
|
||||
addClass(target, 'hint--rounded');
|
||||
addClass(target, `hint--${pos}`);
|
||||
}
|
||||
|
||||
export function isInViewport(el, offset = 0) {
|
||||
|
||||
Reference in new issue
Block a user