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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
d0e45551
Commit
d0e45551
authored
Sep 14, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tree] styling fixes
parent
4aa80407
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
33 deletions
+35
-33
Tree.css
dist/styles/Tree.css
+9
-9
Tree.sass
dist/styles/Tree.sass
+25
-23
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+1
-1
No files found.
dist/styles/Tree.css
View file @
d0e45551
...
...
@@ -54,15 +54,15 @@ li .leaf:hover a.settings {
margin-right
:
19px
;
}
.tree
.lefthanded
ul
li
{
margin-right
:
1
5
px
;
margin-right
:
1
0
px
;
padding-right
:
5px
;
}
.tree
.lefthanded
ul
li
::after
{
.tree
.lefthanded
ul
li
.with-children
::after
{
background-color
:
#000
;
right
:
-10px
;
width
:
10
px
;
width
:
5
px
;
}
.tree
.lefthanded
ul
li
::before
{
.tree
.lefthanded
ul
li
.with-children
::before
{
background-color
:
#000
;
right
:
-10px
;
width
:
1px
;
...
...
@@ -74,20 +74,20 @@ li .leaf:hover a.settings {
margin-left
:
19px
;
}
.tree
.righthanded
ul
li
{
margin-left
:
1
5
px
;
margin-left
:
1
0
px
;
padding-left
:
5px
;
}
.tree
.righthanded
ul
li
::after
{
.tree
.righthanded
ul
li
.with-children
::after
{
background-color
:
#000
;
left
:
-10px
;
width
:
10
px
;
width
:
5
px
;
}
.tree
.righthanded
ul
li
::before
{
.tree
.righthanded
ul
li
.with-children
::before
{
background-color
:
#000
;
left
:
-10px
;
width
:
1px
;
}
.tree
.righthanded
ul
li
:only::before
{
.tree
.righthanded
ul
li
.with-children
:only::before
{
background-color
:
#000
;
right
:
10px
;
}
...
...
dist/styles/Tree.sass
View file @
d0e45551
...
...
@@ -48,12 +48,13 @@ li
ul
margin-right
:
19px
li
margin-right
:
1
5
px
margin-right
:
1
0
px
padding-right
:
5px
&
.with-children
&
:
:
after
background-color
:
#000
right
:
-10px
width
:
10
px
width
:
5
px
&
:
:
before
background-color
:
#000
right
:
-10px
...
...
@@ -66,12 +67,13 @@ li
ul
margin-left
:
19px
li
margin-left
:
1
5
px
margin-left
:
1
0
px
padding-left
:
5px
&
.with-children
&
:
:
after
background-color
:
#000
left
:
-10px
width
:
10
px
width
:
5
px
&
:
:
before
background-color
:
#000
left
:
-10px
...
...
src/Gargantext/Components/Forest/Tree.purs
View file @
d0e45551
...
...
@@ -199,7 +199,7 @@ toHtml p@{ asyncTasks
let withId (NTree (LNode {id: id'}) _) = id'
pure $ H.li {} $
pure $ H.li {
className: if A.null ary then "no-children" else "with-children"
} $
[ nodeMainSpan (A.null ary)
{ id
, dispatch: pAction
...
...
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