diff --git a/app/web/src/nova/ed/ed-base.tsx b/app/web/src/nova/ed/ed-base.tsx index b7e61c00..5685a53a 100644 --- a/app/web/src/nova/ed/ed-base.tsx +++ b/app/web/src/nova/ed/ed-base.tsx @@ -40,7 +40,7 @@ export const EdBase = () => { } return ( -
+
@@ -66,3 +66,75 @@ export const EdBase = () => {
); }; + +const style = css` + .toolbar-box { + display: flex; + align-items: stretch; + border-left: 1px solid #ececeb; + border-right: 1px solid #ececeb; + margin: 0px 0px 0px 5px; + + .label { + display: flex; + user-select: none; + align-items: center; + font-size: 10px; + margin-top: 1px; + color: #999; + text-transform: uppercase; + } + + .items { + display: flex; + align-items: stretch; + margin-left: 5px; + color: #555; + border-left: 1px solid transparent; + + .item { + display: flex; + align-items: center; + cursor: pointer; + user-select: none; + border-right: 1px solid transparent; + padding: 5px; + border-radius: 0px; + + &:hover { + background: #ececeb; + } + + &.disabled { + color: #ccc; + cursor: default; + } + } + + .item:last-child { + border-top-right-radius: 2px; + border-bottom-right-radius: 2px; + } + } + + &.no-label { + padding-left: 0px; + margin-left: 0px; + .items { + margin-left: 0px; + } + } + + &:hover { + border: 1px solid black; + + .items { + color: #111; + border-left: 1px solid #ececeb; + .item { + border-right: 1px solid #ececeb; + } + } + } + } +`; diff --git a/app/web/src/nova/ed/ed-mid.tsx b/app/web/src/nova/ed/ed-mid.tsx index b0a946ce..50ac11a9 100644 --- a/app/web/src/nova/ed/ed-mid.tsx +++ b/app/web/src/nova/ed/ed-mid.tsx @@ -7,6 +7,7 @@ import { EdCompPicker } from "./panel/header/mid/comp-picker"; import { EdPagePicker } from "./panel/header/mid/page-picker"; import { TopBtn } from "./panel/header/top-btn"; import { useGlobal } from "web-utils"; +import { ResponsiveToggle } from "./panel/header/right/responsive-toggle"; export const EdMid: FC<{}> = () => { const ed = useGlobal(EDGlobal, "EDITORF"); @@ -32,8 +33,9 @@ export const EdMid: FC<{}> = () => {
-
-