Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
c803af68
Commit
c803af68
authored
Feb 13, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CodeEditor] add vertical divider
This isn't functional yet.
parent
cfed8575
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
CodeEditor.css
dist/styles/CodeEditor.css
+7
-2
CodeEditor.sass
dist/styles/CodeEditor.sass
+6
-2
CodeEditor.purs
src/Gargantext/Components/CodeEditor.purs
+3
-1
No files found.
dist/styles/CodeEditor.css
View file @
c803af68
...
...
@@ -93,13 +93,18 @@
text-transform
:
inherit
;
}
.code-editor
.editor
.v-divider
{
align-items
:
center
;
border-left
:
1px
solid
gray
;
cursor
:
sw-resize
;
height
:
100%
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
margin-left
:
5px
;
margin-right
:
5px
;
width
:
1px
;
}
.code-editor
.editor
.v-divider
.handle
{
cursor
:
ew-resize
;
}
.code-editor
.editor
.html
{
flex-grow
:
2
;
margin-left
:
25px
;
...
...
dist/styles/CodeEditor.sass
View file @
c803af68
...
...
@@ -76,12 +76,16 @@
@include
common-overlay-props
()
@include
font-inherit
()
.v-divider
align-items
:
center
border-left
:
1px
solid
gray
cursor
:
sw-resize
height
:
100%
display
:
flex
flex-direction
:
row
justify-content
:
center
margin-left
:
5px
margin-right
:
5px
width
:
1px
.handle
cursor
:
ew-resize
.html
flex-grow
:
2
margin-left
:
25px
...
...
src/Gargantext/Components/CodeEditor.purs
View file @
c803af68
...
...
@@ -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)
, ref: controls.htmlElRef
} []
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment