This commit is contained in:
parent
cdb60e86e5
commit
ac9c9cb9e0
4 changed files with 8 additions and 1 deletions
|
@ -70,6 +70,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&--selected {
|
||||
color: var(--b3-theme-primary);
|
||||
}
|
||||
|
||||
&--current {
|
||||
background-color: var(--b3-list-hover);
|
||||
}
|
||||
|
|
|
@ -109,6 +109,7 @@
|
|||
background-color: var(--b3-theme-background);
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
min-height: 30px;
|
||||
|
||||
&__bar {
|
||||
align-items: center;
|
||||
|
|
|
@ -77,7 +77,7 @@ export class MenuItem {
|
|||
}
|
||||
this.element.classList.add("b3-menu__item");
|
||||
if (options.current) {
|
||||
this.element.classList.add("b3-menu__item--current");
|
||||
this.element.classList.add("b3-menu__item--selected");
|
||||
}
|
||||
if (options.click) {
|
||||
this.element.addEventListener(getEventName(), (event) => {
|
||||
|
|
|
@ -10,6 +10,7 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {
|
|||
protyle.contentElement.classList.add("fn__none");
|
||||
protyle.scroll?.element.classList.add("fn__none");
|
||||
protyle.breadcrumb.element.classList.add("fn__none");
|
||||
protyle.breadcrumb.element.nextElementSibling.classList.add("fn__flex-1");
|
||||
|
||||
protyle.preview.render(protyle);
|
||||
} else if (type === "wysiwyg") {
|
||||
|
@ -22,6 +23,7 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {
|
|||
protyle.contentElement.classList.remove("fn__none");
|
||||
protyle.scroll?.element.classList.remove("fn__none");
|
||||
protyle.breadcrumb.element.classList.remove("fn__none");
|
||||
protyle.breadcrumb.element.nextElementSibling.classList.remove("fn__flex-1");
|
||||
|
||||
}
|
||||
hideElements( ["gutter", "toolbar", "select", "hint", "util"], protyle);
|
||||
|
|
Loading…
Add table
Reference in a new issue