UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Apps
AFEIT
Commits
b0ae80c5
Commit
b0ae80c5
authored
Apr 15, 2021
by
Anne Demey
Browse files
Bringing back styleguide page but moving it
Adjusting megamenu columns
parent
6e0581d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
src/components/mega-menu/MegaMenu.js
src/components/mega-menu/MegaMenu.js
+2
-2
src/components/style-guide/style-guide.js
src/components/style-guide/style-guide.js
+31
-0
No files found.
src/components/mega-menu/MegaMenu.js
View file @
b0ae80c5
...
@@ -83,7 +83,7 @@ const MegaMenu = ({ sticky }) => {
...
@@ -83,7 +83,7 @@ const MegaMenu = ({ sticky }) => {
<
Box
<
Box
{...{
border
:
!
isVert
&&
{
side
:
'
right
'
}
}}
{...{
border
:
!
isVert
&&
{
side
:
'
right
'
}
}}
{...(
isVert
&&
{
flex
:
{
shrink
:
0
}
})}
{...(
isVert
&&
{
flex
:
{
shrink
:
0
}
})}
basis
=
{
isVert
?
'
auto
'
:
'
4
5%
'
}
basis
=
{
isVert
?
'
auto
'
:
'
5
5%
'
}
>
>
<
GroupHeader
<
GroupHeader
label
=
"
Networking & Connectivity
"
label
=
"
Networking & Connectivity
"
...
@@ -115,7 +115,7 @@ const MegaMenu = ({ sticky }) => {
...
@@ -115,7 +115,7 @@ const MegaMenu = ({ sticky }) => {
{
isVert
&&
<
Divider
flex
=
{{
grow
:
0
}}
/>
}
{
isVert
&&
<
Divider
flex
=
{{
grow
:
0
}}
/>
}
<
Box
<
Box
direction
=
"
row
"
direction
=
"
row
"
basis
=
{
isVert
?
'
auto
'
:
'
5
5%
'
}
basis
=
{
isVert
?
'
auto
'
:
'
4
5%
'
}
gap
=
"
large
"
gap
=
"
large
"
{...(
isVert
&&
{
flex
:
{
shrink
:
0
}
})}
{...(
isVert
&&
{
flex
:
{
shrink
:
0
}
})}
>
>
...
...
src/components/style-guide/style-guide.js
0 → 100644
View file @
b0ae80c5
import
React
from
'
react
'
;
import
{
Heading
}
from
'
grommet
'
;
import
{
AppLayout
,
SEO
}
from
'
../components/app
'
;
import
{
Container
,
Column
}
from
'
../components/layout
'
;
import
{
Colors
,
GridColumns
,
Typography
,
Icons
,
}
from
'
../components/style-guide
'
;
/**
* Page for displaying basic styling settings for the website. Move this file to the `src/pages`
* directory to view. It has been moved so it does not get published.
*/
const
StyleGuide
=
()
=>
(
<
AppLayout
>
<
SEO
title
=
"
Style Guide
"
/>
<
Container
>
<
Column
>
<
Heading
>
Style
Guide
<
/Heading
>
<
Colors
/>
<
GridColumns
/>
<
Typography
/>
<
Icons
/>
<
/Column
>
<
/Container
>
<
/AppLayout
>
);
export
default
StyleGuide
;
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