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
5ef89cff
Commit
5ef89cff
authored
Dec 06, 2021
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
>>> continue
parent
98026839
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
236 additions
and
197 deletions
+236
-197
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+7
-0
bootstrap-default.css
dist/styles/bootstrap-default.css
+7
-0
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+7
-0
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+7
-0
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+7
-0
sass.css
dist/styles/sass.css
+6
-1
sass.css.map
dist/styles/sass.css.map
+1
-1
Draw.js
src/Gargantext/Components/PhyloExplorer/Draw.js
+160
-159
Draw.purs
src/Gargantext/Components/PhyloExplorer/Draw.purs
+0
-30
TopBar.purs
src/Gargantext/Components/PhyloExplorer/TopBar.purs
+9
-4
_phylo.scss
src/sass/_phylo.scss
+12
-2
_common.scss
src/sass/bootstrap/_common.scss
+13
-0
No files found.
dist/styles/bootstrap-darkster.css
View file @
5ef89cff
...
@@ -9993,6 +9993,13 @@ h3 {
...
@@ -9993,6 +9993,13 @@ h3 {
border-color
:
rgba
(
255
,
255
,
255
,
0.3
);
border-color
:
rgba
(
255
,
255
,
255
,
0.3
);
}
}
}
}
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
#000000
;
color
:
#6c757d
;
border-style
:
dashed
;
}
.with-icon-font
{
.with-icon-font
{
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
}
...
...
dist/styles/bootstrap-default.css
View file @
5ef89cff
...
@@ -9945,6 +9945,13 @@ h3 {
...
@@ -9945,6 +9945,13 @@ h3 {
border-color
:
#dee2e6
;
border-color
:
#dee2e6
;
}
}
}
}
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
#fff
;
color
:
#6c757d
;
border-style
:
dashed
;
}
.with-icon-font
{
.with-icon-font
{
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
}
...
...
dist/styles/bootstrap-greyson.css
View file @
5ef89cff
...
@@ -9701,6 +9701,13 @@ h3 {
...
@@ -9701,6 +9701,13 @@ h3 {
border-color
:
#dee2e6
;
border-color
:
#dee2e6
;
}
}
}
}
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
#fff
;
color
:
#6c757d
;
border-style
:
dashed
;
}
.with-icon-font
{
.with-icon-font
{
font-family
:
ForkAwesome
,
Muli
;
font-family
:
ForkAwesome
,
Muli
;
}
}
...
...
dist/styles/bootstrap-herbie.css
View file @
5ef89cff
...
@@ -9933,6 +9933,13 @@ h3 {
...
@@ -9933,6 +9933,13 @@ h3 {
border-color
:
#dee2e6
;
border-color
:
#dee2e6
;
}
}
}
}
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
#fff
;
color
:
#6c757d
;
border-style
:
dashed
;
}
.with-icon-font
{
.with-icon-font
{
font-family
:
ForkAwesome
,
Nunito
;
font-family
:
ForkAwesome
,
Nunito
;
}
}
...
...
dist/styles/bootstrap-monotony.css
View file @
5ef89cff
...
@@ -9950,6 +9950,13 @@ h3 {
...
@@ -9950,6 +9950,13 @@ h3 {
border-color
:
#dee2e6
;
border-color
:
#dee2e6
;
}
}
}
}
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
#fff
;
color
:
#6c757d
;
border-style
:
dashed
;
}
.with-icon-font
{
.with-icon-font
{
font-family
:
ForkAwesome
,
Montserrat
;
font-family
:
ForkAwesome
,
Montserrat
;
}
}
...
...
dist/styles/sass.css
View file @
5ef89cff
...
@@ -1666,7 +1666,9 @@ i.how:hover span {
...
@@ -1666,7 +1666,9 @@ i.how:hover span {
}
}
.phylo-topbar__suggestion
{
.phylo-topbar__suggestion
{
pointer-events
:
none
;
pointer-events
:
none
;
color
:
silver
;
}
.phylo-topbar__suggestion.form-control
{
border-color
:
transparent
;
}
}
.phylo-topbar__search
{
.phylo-topbar__search
{
z-index
:
1
;
z-index
:
1
;
...
@@ -1675,5 +1677,8 @@ i.how:hover span {
...
@@ -1675,5 +1677,8 @@ i.how:hover span {
.phylo-topbar__search.form-control
{
.phylo-topbar__search.form-control
{
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.phylo-topbar__submit
{
display
:
none
;
}
/*# sourceMappingURL=sass.css.map */
/*# sourceMappingURL=sass.css.map */
dist/styles/sass.css.map
View file @
5ef89cff
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/PhyloExplorer/Draw.js
View file @
5ef89cff
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/PhyloExplorer/Draw.purs
View file @
5ef89cff
...
@@ -249,27 +249,6 @@ highlightSource window value =
...
@@ -249,27 +249,6 @@ highlightSource window value =
>>= D3S.classed "peak-focus-source" true
>>= D3S.classed "peak-focus-source" true
-- autocompleteSearch :: Document -> Array GlobalTerm -> String -> Effect Unit
-- autocompleteSearch d terms query =
-- let
-- hasMinLen = String.length >>> (_ > 0)
-- in do
-- mEl <- querySelector d "#search-autocomplete"
-- term <- pure
-- if hasMinLen query
-- then findGlobalTermByPrefix terms query
-- else Nothing
-- case term of
-- Nothing -> pure unit
-- Just (GlobalTerm { label }) -> case mEl of
-- Nothing -> pure unit
-- Just el -> (void <<< pure <<< setProperty "value" el) label
autocompleteSearch ::
autocompleteSearch ::
Array GlobalTerm
Array GlobalTerm
-> String
-> String
...
@@ -284,15 +263,6 @@ autocompleteSearch terms query =
...
@@ -284,15 +263,6 @@ autocompleteSearch terms query =
then findGlobalTermByPrefix terms query
then findGlobalTermByPrefix terms query
else Nothing
else Nothing
-- autocompleteSubmit :: Array GlobalTerm -> String -> Effect Unit
-- autocompleteSubmit terms query = do
-- term <- pure $ findGlobalTermByPrefix terms query
-- case term of
-- Nothing -> pure unit
-- Just (GlobalTerm { label, fdt }) -> do
autocompleteSubmit :: Maybe (GlobalTerm) -> Effect Unit
autocompleteSubmit :: Maybe (GlobalTerm) -> Effect Unit
autocompleteSubmit = case _ of
autocompleteSubmit = case _ of
...
...
src/Gargantext/Components/PhyloExplorer/TopBar.purs
View file @
5ef89cff
...
@@ -4,7 +4,6 @@ module Gargantext.Components.PhyloExplorer.TopBar
...
@@ -4,7 +4,6 @@ module Gargantext.Components.PhyloExplorer.TopBar
import Gargantext.Prelude
import Gargantext.Prelude
import DOM.Simple.Console (log)
import Data.Maybe (Maybe(..))
import Data.Maybe (Maybe(..))
import Data.Tuple.Nested ((/\))
import Data.Tuple.Nested ((/\))
import Effect (Effect)
import Effect (Effect)
...
@@ -93,13 +92,12 @@ topBarCpt = here.component "main" cpt where
...
@@ -93,13 +92,12 @@ topBarCpt = here.component "main" cpt where
,
,
-- Search
-- Search
H.form
H.form
{ on: { submit: onAutocompleteSubmit }
{ className: "phylo-topbar__autocomplete"
, className: "phylo-topbar__autocomplete"
}
}
[
[
B.formInput
B.formInput
{ className: "phylo-topbar__suggestion"
{ className: "phylo-topbar__suggestion"
-- , status: Disab
led
, status: Id
led
, value: case result of
, value: case result of
Nothing -> ""
Nothing -> ""
Just (GlobalTerm { label }) -> label
Just (GlobalTerm { label }) -> label
...
@@ -113,5 +111,12 @@ topBarCpt = here.component "main" cpt where
...
@@ -113,5 +111,12 @@ topBarCpt = here.component "main" cpt where
, value: search
, value: search
, placeholder: "Find a term"
, placeholder: "Find a term"
}
}
,
B.button
{ callback: onAutocompleteSubmit
, type: "submit"
, className: "phylo-topbar__submit"
}
[ H.text "" ]
]
]
]
]
src/sass/_phylo.scss
View file @
5ef89cff
...
@@ -567,16 +567,26 @@ i.how:hover span {
...
@@ -567,16 +567,26 @@ i.how:hover span {
}
}
&
__suggestion
{
&
__suggestion
{
// as the input is above the "search" one, and is used only as an
// autocompletion term, we remove every interaction on it...
pointer-events
:
none
;
pointer-events
:
none
;
color
:
silver
;
// ...overriding Bootstrap native rules to just display its text node to
// the user
&
.form-control
{
border-color
:
transparent
;
}
}
}
&
__search
{
&
__search
{
z-index
:
1
;
z-index
:
1
;
position
:
absolute
;
position
:
absolute
;
//
overriding Bootstrap native bgcolor
//
(see above comment about "suggestion")
&
.form-control
{
&
.form-control
{
background-color
:
transparent
;
background-color
:
transparent
;
}
}
}
}
&
__submit
{
display
:
none
;
}
}
}
src/sass/bootstrap/_common.scss
View file @
5ef89cff
...
@@ -26,6 +26,19 @@
...
@@ -26,6 +26,19 @@
/// BASE
/// BASE
/// ############################################################################
/// ############################################################################
/// Bootstrap customisation
///-----------------------------------------------------------------------------
// Rectify readonly UI
.custom-select
:disabled
[
readonly
],
.form-control
[
readonly
]
{
background-color
:
$input-bg
;
// (opinionated rules)
color
:
$input-placeholder-color
;
border-style
:
dashed
;
}
/// Misc
/// Misc
///-----------------------------------------------------------------------------
///-----------------------------------------------------------------------------
...
...
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