Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
julkiset-sivut
design-system-lib
Commits
451a55e7
Commit
451a55e7
authored
4 years ago
by
shamalainen
Browse files
Options
Downloads
Patches
Plain Diff
Update mobile menu items appearance and spacings
parent
6d3a8a48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/navigation/menu-item/menu-item.scss
+35
-29
35 additions, 29 deletions
src/components/navigation/menu-item/menu-item.scss
src/components/navigation/menu/menu.scss
+3
-1
3 additions, 1 deletion
src/components/navigation/menu/menu.scss
with
38 additions
and
30 deletions
src/components/navigation/menu-item/menu-item.scss
+
35
−
29
View file @
451a55e7
// Mobile.
// Mobile.
:host
(
.hy-menu-item--mobile
)
{
:host
(
.hy-menu-item--mobile
)
{
background-color
:
var
(
--
grayscale-white
);
border-top
:
1px
dashed
var
(
--
grayscale-medium-dark
);
display
:
flex
;
--menu-item-display
:
flex
;
--menu-item-display
:
flex
;
background
:
linear-gradient
(
270deg
,
var
(
--
grayscale-background-box
)
0%
,
var
(
--
grayscale-light
)
100%
);
display
:
flex
;
margin-left
:
12px
;
margin-right
:
12px
;
margin
:
0
12px
5px
;
@include
breakpoint
(
$narrow
)
{
margin
:
0
28px
6px
;
}
}
}
:host
(
.hy-menu-item--mobile
:first-of-type
)
{
:host
(
.hy-menu-item--mobile
:first-of-type
)
{
border-top
:
3px
solid
var
(
--
brand-main-
nearly-black
);
//
border-top: 3px solid var(--brand-main-
light
);
}
}
:host
(
.hy-menu-item--mobile.hy-menu-item--alternative
)
{
:host
(
.hy-menu-item--mobile.hy-menu-item--alternative
)
{
...
@@ -110,18 +116,24 @@ a {
...
@@ -110,18 +116,24 @@ a {
outline-offset
:
-2px
;
outline-offset
:
-2px
;
}
}
&
.is-active
,
&
.hy-menu-item--mobile
{
&
.in-active-trail
{
color
:
var
(
--
brand-main-light
);
.hy-menu-item__label
{
padding
:
12px
0
12px
20px
;
border-bottom
:
2px
solid
var
(
--
additional-orange
);
padding-bottom
:
5px
;
}
}
&
.is-active
,
&
.is-active
,
&
.is-heading
{
&
.in-active-trail
{
.hy-menu-item__label
{
color
:
var
(
--
grayscale-black
);
@include
font-weight
(
$bold
);
position
:
relative
;
&
:before
{
border-left
:
3px
solid
var
(
--
grayscale-black
);
content
:
''
;
height
:
75%
;
left
:
10px
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
}
}
}
...
@@ -261,23 +273,17 @@ a {
...
@@ -261,23 +273,17 @@ a {
.hy-menu-item__button
{
.hy-menu-item__button
{
align-items
:
center
;
align-items
:
center
;
background
:
transparent
;
background
:
transparent
;
border
:
0
none
;
border-bottom
:
0
;
border-left
:
1px
dashed
var
(
--
brand-main-light
);
border-right
:
0
;
border-top
:
0
;
cursor
:
pointer
;
cursor
:
pointer
;
display
:
var
(
--
menu-item-display
);
display
:
var
(
--
menu-item-display
);
justify-content
:
center
;
justify-content
:
center
;
width
:
70px
;
padding
:
0
;
width
:
50px
;
&
:focus
{
outline
:
solid
2px
var
(
--
additional-yellow
);
outline-offset
:
2px
;
}
&
::before
{
svg
{
border-left
:
1px
dashed
var
(
--
brand-main-nearly-black
);
fill
:
var
(
--
brand-main-light
);
content
:
''
;
display
:
block
;
height
:
16px
;
margin-right
:
16px
;
width
:
1px
;
}
}
}
}
This diff is collapsed.
Click to expand it.
src/components/navigation/menu/menu.scss
+
3
−
1
View file @
451a55e7
...
@@ -35,11 +35,13 @@
...
@@ -35,11 +35,13 @@
.hy-menu
{
.hy-menu
{
&
--mobile
{
&
--mobile
{
-webkit-overflow-scrolling
:
touch
;
flex-flow
:
column
;
flex-flow
:
column
;
min-height
:
calc
(
100vh
-
60px
);
min-height
:
calc
(
100vh
-
60px
);
-webkit-overflow-scrolling
:
touch
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
overflow-y
:
visible
;
overflow-y
:
visible
;
padding-left
:
12px
;
padding-right
:
12px
;
transform
:
translateX
(
100%
);
transform
:
translateX
(
100%
);
transition
:
0
.45s
;
transition
:
0
.45s
;
width
:
100%
;
width
:
100%
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment