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
9183052a
Commit
9183052a
authored
Dec 08, 2021
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
>>> continue
parent
a96dab75
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
10 deletions
+57
-10
sass.css
dist/styles/sass.css
+14
-2
sass.css.map
dist/styles/sass.css.map
+1
-1
Spinner.purs
src/Gargantext/Components/Bootstrap/Block/Spinner.purs
+5
-6
Types.purs
src/Gargantext/Components/Bootstrap/Types.purs
+16
-0
_phylo.scss
src/sass/_phylo.scss
+21
-1
No files found.
dist/styles/sass.css
View file @
9183052a
...
...
@@ -1652,16 +1652,28 @@ i.how:hover span {
font-weight
:
bold
;
}
.phylo
{
position
:
relative
;
}
.phylo__spinner
{
position
:
absolute
;
font-size
:
6px
;
height
:
100px
;
width
:
100px
;
top
:
calc
(
50%
-
50px
);
left
:
calc
(
50%
-
50px
);
}
.phylo-topbar
{
display
:
flex
;
}
.phylo-topbar__source
{
width
:
200
px
;
width
:
304
px
;
margin-right
:
8px
;
}
.phylo-topbar__autocomplete
{
display
:
flex
;
width
:
200
px
;
width
:
304
px
;
position
:
relative
;
}
.phylo-topbar__suggestion
{
...
...
dist/styles/sass.css.map
View file @
9183052a
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/Bootstrap/Block/Spinner.purs
View file @
9183052a
...
...
@@ -3,26 +3,25 @@ module Gargantext.Components.Bootstrap.Spinner(spinner) where
import Gargantext.Prelude
import Data.Foldable (intercalate)
import Gargantext.Components.Bootstrap.Types (SpinnerTheme(..))
import Gargantext.Utils.Reactix as R2
import Reactix as R
import Reactix.DOM.HTML as H
type Props = ( | Options)
type Options =
( theme
:: String
( theme
:: SpinnerTheme
, className :: String
)
options :: Record Options
options =
{ theme
: "border"
, className: ""
{ theme
: BorderTheme
, className
: ""
}
-- | Structural Component for the Bootstrap spinner
-- |
-- | * theme: `"border" (default) | "grow"`
-- |
-- | https://getbootstrap.com/docs/4.4/components/spinners/
spinner :: forall r. R2.OptLeaf Options Props r
spinner = R2.optLeaf component options
...
...
@@ -43,7 +42,7 @@ component = R.hooksComponent componentName cpt where
-- BEM classNames
, componentName
-- Bootstrap specific classNames
, bootstrapName <> "-" <> props.theme
, bootstrapName <> "-" <>
show
props.theme
]
-- Render
pure $
...
...
src/Gargantext/Components/Bootstrap/Types.purs
View file @
9183052a
module Gargantext.Components.Bootstrap.Types
( ComponentStatus(..)
, Sizing(..)
, SpinnerTheme(..)
) where
import Gargantext.Prelude
...
...
@@ -64,3 +65,18 @@ instance Show Sizing where
show SmallSize = "sm"
show MediumSize = "md"
show LargeSize = "lg"
----------------------------------------------------------------------
-- | Theme values used by Bootstrap Spinner
-- |
-- | https://getbootstrap.com/docs/4.4/components/spinners/
data SpinnerTheme =
BorderTheme
| GrowTheme
derive instance Generic SpinnerTheme _
derive instance Eq SpinnerTheme
instance Show SpinnerTheme where
show BorderTheme = "border"
show GrowTheme = "grow"
src/sass/_phylo.scss
View file @
9183052a
@use
"./abstract/_members"
as
*
;
$topbar-input-width
:
200
px
;
$topbar-input-width
:
304
px
;
/* fonts */
...
...
@@ -552,6 +552,26 @@ i.how:hover span {
////////////////////////////////////////////////////////////////
.phylo
{
position
:
relative
;
&
__spinner
{
$size
:
100px
;
$weight
:
6px
;
position
:
absolute
;
font-size
:
$weight
;
height
:
$size
;
width
:
$size
;
// (?) `centered` mixin will not work here, due to Bootstrap process
// interfering with the transform rule
top
:
calc
(
50%
-
#{
$size
/
2
}
);
left
:
calc
(
50%
-
#{
$size
/
2
}
);
}
}
////////////////////////////////////////////////////////////////
.phylo-topbar
{
display
:
flex
;
...
...
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