deps(core): 更新tippyjs (version: 6.3.7)

This commit is contained in:
王立帮
2025-05-18 00:08:27 +08:00
parent e1204b3e57
commit fb687bed1f
6 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1 @@
.tippy-box[data-animation=shift-toward-extreme][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-extreme][data-state=hidden][data-placement^=top]{transform:translateY(-20px)}.tippy-box[data-animation=shift-toward-extreme][data-state=hidden][data-placement^=bottom]{transform:translateY(20px)}.tippy-box[data-animation=shift-toward-extreme][data-state=hidden][data-placement^=left]{transform:translateX(-20px)}.tippy-box[data-animation=shift-toward-extreme][data-state=hidden][data-placement^=right]{transform:translateX(20px)}

View File

@@ -0,0 +1,74 @@
html[data-bs-theme=light] .tippy-box {
background-color: #fff;
background-clip: padding-box;
border: 1px solid #bebebe;
color: #000;
border-radius: 0.25rem;
box-shadow: 0 2px 5px rgb(0 0 0 / 50%);
}
html[data-bs-theme=light] .tippy-arrow {
color: rgba(255,255,255,.85);
}
html[data-bs-theme=dark] .tippy-box {
background-color: #252525;
background-clip: padding-box;
border: 1px solid #454545;
box-shadow: 0 2px 5px rgb(0 0 0 / 50%);
color: #fff;
border-radius: 0.25rem;
}
html[data-bs-theme=dark] .tippy-box .layui-layer-title {
background-color: #252525;
}
html[data-bs-theme=dark] .tippy-arrow {
color: #252525;
}
.tippy-content {
padding: 0;
margin: 0.3em;
}
.tippy-content .m-btn {
font-size: 12px;
line-height: 12px;
border-radius: 5px;
box-sizing: content-box;
padding: 4px 10px !important;
margin: 2px 0px;
border-radius: 5px;
min-width: unset;
cursor: pointer;
}
.tippy-content .m-btn:hover {
color: #fff !important;
}
html[data-bs-theme=light] .tippy-content .m-btn {
color: #000;
}
html[data-bs-theme=light] .tippy-content .m-btn:hover {
background-color: var(--app-light-color);
}
html[data-bs-theme=light] .tippy-content .m-btn.selected {
background-color: rgb(0 150 136 / 60%);
}
html[data-bs-theme=dark] .tippy-content .m-btn {
color: #fff;
}
html[data-bs-theme=dark] .tippy-content .m-btn:hover {
background-color: #2980b9;
}
html[data-bs-theme=dark] .tippy-content .m-btn.selected {
background-color: rgb(41 128 185 / 60%);
}

1
common/css/tippy/tippy.min.css vendored Normal file
View File

@@ -0,0 +1 @@
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}