1
0
mirror of synced 2025-12-09 15:24:28 +08:00

chore: small changes

This commit is contained in:
redhoodsu
2022-12-11 14:05:19 +08:00
parent 08ed039023
commit b0ebd37c2b
4 changed files with 6 additions and 4 deletions

View File

@@ -122,7 +122,7 @@
&:last-child {
border-right: none;
}
transition: background $anim-duration, color $anim-duration;
transition: background-color $anim-duration, color $anim-duration;
&:active {
color: var(--select-foreground);
background: var(--highlight);

View File

@@ -43,7 +43,7 @@ export default class DevTools extends Emitter {
this._resizeStartY = 0
this._resizeStartSize = 0
this._appendTpl()
this._initTpl()
this._initTab()
this._initNotification()
this._initModal()
@@ -228,7 +228,7 @@ export default class DevTools extends Emitter {
this._$el.css({ height: height + '%' })
}
_appendTpl() {
_initTpl() {
const $container = this.$container
$container.append(

View File

@@ -21,6 +21,7 @@
top: 14px;
color: var(--primary);
cursor: pointer;
transition: color $anim-duration;
&:active {
color: var(--accent);
}

View File

@@ -103,7 +103,7 @@ export default {
this._entryBtn.destroy()
delete this._entryBtn
this._unregisterListener()
this._$el.remove()
$(this._container).remove()
evalCss.clear()
this._isInit = false
},
@@ -156,6 +156,7 @@ export default {
el.id = 'eruda'
el.style.all = 'initial'
this._container = el
let shadowRoot
if (useShadowDom) {