Commit c803af68 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[CodeEditor] add vertical divider

This isn't functional yet.
parent cfed8575
...@@ -93,13 +93,18 @@ ...@@ -93,13 +93,18 @@
text-transform: inherit; text-transform: inherit;
} }
.code-editor .editor .v-divider { .code-editor .editor .v-divider {
align-items: center;
border-left: 1px solid gray; border-left: 1px solid gray;
cursor: sw-resize; display: flex;
height: 100%; flex-direction: row;
justify-content: center;
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
width: 1px; width: 1px;
} }
.code-editor .editor .v-divider .handle {
cursor: ew-resize;
}
.code-editor .editor .html { .code-editor .editor .html {
flex-grow: 2; flex-grow: 2;
margin-left: 25px; margin-left: 25px;
......
...@@ -76,12 +76,16 @@ ...@@ -76,12 +76,16 @@
@include common-overlay-props() @include common-overlay-props()
@include font-inherit() @include font-inherit()
.v-divider .v-divider
align-items: center
border-left: 1px solid gray border-left: 1px solid gray
cursor: sw-resize display: flex
height: 100% flex-direction: row
justify-content: center
margin-left: 5px margin-left: 5px
margin-right: 5px margin-right: 5px
width: 1px width: 1px
.handle
cursor: ew-resize
.html .html
flex-grow: 2 flex-grow: 2
margin-left: 25px margin-left: 25px
......
...@@ -124,7 +124,9 @@ codeEditorCpt = R.hooksComponent "G.C.CE.CodeEditor" cpt ...@@ -124,7 +124,9 @@ codeEditorCpt = R.hooksComponent "G.C.CE.CodeEditor" cpt
} [] } []
] ]
] ]
, H.div { className: "v-divider " <> (dividerHidden $ fst controls.viewType) } [ H.text " " ] , H.div { className: "v-divider " <> (dividerHidden $ fst controls.viewType) } [
H.span { className: "fa fa-bars handle" } []
]
, H.div { className: "html " <> (langClass $ fst controls.codeType) <> (previewHidden $ fst controls.viewType) , H.div { className: "html " <> (langClass $ fst controls.codeType) <> (previewHidden $ fst controls.viewType)
, ref: controls.htmlElRef , ref: controls.htmlElRef
} [] } []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment