mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
f38b73b1af
commit
124b201fa7
3 changed files with 8 additions and 6 deletions
|
|
@ -11,11 +11,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--floatl,
|
||||||
|
&--floatr,
|
||||||
|
&--floatt,
|
||||||
|
&--floatb {
|
||||||
|
transition: var(--b3-width-transition);
|
||||||
|
}
|
||||||
|
|
||||||
&--float {
|
&--float {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
transition: transform .2s cubic-bezier(0, 0, .2, 1) 0ms, opacity .2s cubic-bezier(0, 0, .2, 1) 0ms;
|
transition: transform .2s cubic-bezier(0, 0, .2, 1) 0ms, opacity .3s cubic-bezier(0, 0, .2, 1) 0ms;
|
||||||
|
|
||||||
&.layout--floatl {
|
&.layout--floatl {
|
||||||
border-radius: 0 8px 8px 0;
|
border-radius: 0 8px 8px 0;
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,6 @@ export class Dock {
|
||||||
target.setAttribute("aria-label", window.siyuan.languages.unpin);
|
target.setAttribute("aria-label", window.siyuan.languages.unpin);
|
||||||
this.layout.element.style.opacity = "";
|
this.layout.element.style.opacity = "";
|
||||||
this.layout.element.style.transform = "";
|
this.layout.element.style.transform = "";
|
||||||
this.layout.element.style.transition = "var(--b3-width-transition)";
|
|
||||||
if (hasActive) {
|
if (hasActive) {
|
||||||
this.resizeElement.classList.remove("fn__none");
|
this.resizeElement.classList.remove("fn__none");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -693,9 +693,7 @@ export const addResize = (obj: Layout | Wnd) => {
|
||||||
if (range) {
|
if (range) {
|
||||||
focusByRange(range);
|
focusByRange(range);
|
||||||
}
|
}
|
||||||
nextElement.style.transition = "var(--b3-width-transition)";
|
|
||||||
nextElement.style.overflow = "";
|
nextElement.style.overflow = "";
|
||||||
previousElement.style.transition = "var(--b3-width-transition)";
|
|
||||||
previousElement.style.overflow = "";
|
previousElement.style.overflow = "";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
@ -707,8 +705,6 @@ export const addResize = (obj: Layout | Wnd) => {
|
||||||
}
|
}
|
||||||
resizeElement.classList.add("layout__resize");
|
resizeElement.classList.add("layout__resize");
|
||||||
obj.element.insertAdjacentElement("beforebegin", resizeElement);
|
obj.element.insertAdjacentElement("beforebegin", resizeElement);
|
||||||
obj.element.style.transition = "var(--b3-width-transition)";
|
|
||||||
(resizeElement.previousElementSibling as HTMLElement).style.transition = "var(--b3-width-transition)";
|
|
||||||
resizeWnd(resizeElement, obj.resize);
|
resizeWnd(resizeElement, obj.resize);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue