Commit 0a4e334c authored by Fabien Manière's avatar Fabien Manière

styles in node corpus settings - 'link to' modal

parent ebf80996
Pipeline #5242 failed with stage
in 0 seconds
...@@ -10559,6 +10559,9 @@ input[type=range]:-moz-focusring { ...@@ -10559,6 +10559,9 @@ input[type=range]:-moz-focusring {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 2px; text-underline-offset: 2px;
} }
.subtree__node--can-be-selected:hover {
font-weight: bold;
}
.subtree__node--is-selected > .subtree__node__inner { .subtree__node--is-selected > .subtree__node__inner {
text-decoration: underline; text-decoration: underline;
font-weight: bold; font-weight: bold;
......
...@@ -10364,6 +10364,9 @@ input[type=range]:-moz-focusring { ...@@ -10364,6 +10364,9 @@ input[type=range]:-moz-focusring {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 2px; text-underline-offset: 2px;
} }
.subtree__node--can-be-selected:hover {
font-weight: bold;
}
.subtree__node--is-selected > .subtree__node__inner { .subtree__node--is-selected > .subtree__node__inner {
text-decoration: underline; text-decoration: underline;
font-weight: bold; font-weight: bold;
......
...@@ -10125,6 +10125,9 @@ input[type=range]:-moz-focusring { ...@@ -10125,6 +10125,9 @@ input[type=range]:-moz-focusring {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 2px; text-underline-offset: 2px;
} }
.subtree__node--can-be-selected:hover {
font-weight: bold;
}
.subtree__node--is-selected > .subtree__node__inner { .subtree__node--is-selected > .subtree__node__inner {
text-decoration: underline; text-decoration: underline;
font-weight: bold; font-weight: bold;
......
...@@ -10373,6 +10373,9 @@ input[type=range]:-moz-focusring { ...@@ -10373,6 +10373,9 @@ input[type=range]:-moz-focusring {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 2px; text-underline-offset: 2px;
} }
.subtree__node--can-be-selected:hover {
font-weight: bold;
}
.subtree__node--is-selected > .subtree__node__inner { .subtree__node--is-selected > .subtree__node__inner {
text-decoration: underline; text-decoration: underline;
font-weight: bold; font-weight: bold;
......
...@@ -10374,6 +10374,9 @@ input[type=range]:-moz-focusring { ...@@ -10374,6 +10374,9 @@ input[type=range]:-moz-focusring {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 2px; text-underline-offset: 2px;
} }
.subtree__node--can-be-selected:hover {
font-weight: bold;
}
.subtree__node--is-selected > .subtree__node__inner { .subtree__node--is-selected > .subtree__node__inner {
text-decoration: underline; text-decoration: underline;
font-weight: bold; font-weight: bold;
......
...@@ -139,8 +139,8 @@ subTreeTreeViewCpt = here.ntComponent "subTreeTreeView" cpt where ...@@ -139,8 +139,8 @@ subTreeTreeViewCpt = here.ntComponent "subTreeTreeView" cpt where
H.div H.div
{ className: intercalate " " { className: intercalate " "
[ "subtree__node" [ "subtree__node"
, validNodeType ? "subtree__node--can-be-selected" $ "" , validNodeType ? "subtree__node--can-be-selected text-primary" $ ""
, (isSelected targetId action) ? "subtree__node--is-selected" $ "" , (isSelected targetId action) ? "subtree__node--is-selected text-primary" $ ""
] ]
} }
[ [
...@@ -157,9 +157,9 @@ subTreeTreeViewCpt = here.ntComponent "subTreeTreeView" cpt where ...@@ -157,9 +157,9 @@ subTreeTreeViewCpt = here.ntComponent "subTreeTreeView" cpt where
R2.when hasChild $ R2.when hasChild $
if isExpanded then if isExpanded then
H.span { className: "fa fa-chevron-down" } [] H.span { className: "fa fa-angle-down" } []
else else
H.span { className: "fa fa-chevron-right" } [] H.span { className: "fa fa-angle-right" } []
] ]
, ,
H.span H.span
......
...@@ -214,7 +214,7 @@ treeLoadedCpt = here.component "treeLoaded" cpt where ...@@ -214,7 +214,7 @@ treeLoadedCpt = here.component "treeLoaded" cpt where
} }
] ]
leaf = L.null ngramsChildren leaf = L.null ngramsChildren
className = "fa fa-chevron-" <> if open then "down" else "right" className = "fa fa-angle-" <> if open then "down" else "right"
style = if leaf then {color: "#adb5bd"} else {color: ""} style = if leaf then {color: "#adb5bd"} else {color: ""}
open = not leaf || false {- TODO -} open = not leaf || false {- TODO -}
--cs = ngramsTable ^.. ix ngramsDepth.ngrams <<< _NgramsRepoElement <<< _children <<< folded --cs = ngramsTable ^.. ix ngramsDepth.ngrams <<< _NgramsRepoElement <<< _children <<< folded
......
...@@ -463,6 +463,8 @@ $node-popup-width: 544px ...@@ -463,6 +463,8 @@ $node-popup-width: 544px
&--can-be-selected &--can-be-selected
text-decoration: underline text-decoration: underline
text-underline-offset: 2px // easing node reading (empirical) text-underline-offset: 2px // easing node reading (empirical)
&:hover
font-weight: bold
&--is-selected > &__inner &--is-selected > &__inner
// (only current node, not its children) // (only current node, not its children)
......
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