Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Community Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Bio-IT
Community Documentation
Commits
52bcb26d
Commit
52bcb26d
authored
5 years ago
by
Silvio Giebl
Browse files
Options
Downloads
Patches
Plain Diff
Display nav-list-expander on the right side
(cherry picked from commit 2d6e97e0cbfb8bdcf87a2e5ad19bd59fc8f5405d)
parent
e13a62b7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_sass/navigation.scss
+32
-4
32 additions, 4 deletions
_sass/navigation.scss
_sass/support/_variables.scss
+1
-0
1 addition, 0 deletions
_sass/support/_variables.scss
with
33 additions
and
4 deletions
_sass/navigation.scss
+
32
−
4
View file @
52bcb26d
...
...
@@ -22,14 +22,25 @@
min-height
:
$nav-list-item-height-sm
;
line-height
:
#{
$nav-list-item-height-sm
-
2
*
$sp-1
}
;
padding-top
:
$sp-1
;
padding-right
:
$gutter-spacing-sm
;
padding-bottom
:
$sp-1
;
padding-left
:
$nav-list-item-height-sm
;
@if
$nav-list-expander-right
{
padding-right
:
$nav-list-item-height-sm
;
padding-left
:
$gutter-spacing-sm
;
}
@else
{
padding-right
:
$gutter-spacing-sm
;
padding-left
:
$nav-list-item-height-sm
;
}
@include
mq
(
md
)
{
min-height
:
$nav-list-item-height
;
line-height
:
#{
$nav-list-item-height
-
2
*
$sp-1
}
;
padding-left
:
$nav-list-item-height
;
@if
$nav-list-expander-right
{
padding-right
:
$nav-list-item-height
;
padding-left
:
$gutter-spacing
;
}
@else
{
padding-right
:
$gutter-spacing
;
padding-left
:
$nav-list-item-height
;
}
}
&
.active
{
...
...
@@ -45,6 +56,9 @@
.nav-list-expander
{
position
:
absolute
;
@if
$nav-list-expander-right
{
right
:
0
;
}
width
:
$nav-list-item-height-sm
;
height
:
$nav-list-item-height-sm
;
padding-top
:
#{
$nav-list-item-height-sm
/
4
}
;
...
...
@@ -65,6 +79,12 @@
&
:hover
{
background-color
:
$feedback-color
;
}
@if
$nav-list-expander-right
{
svg
{
transform
:
rotate
(
90deg
);
}
}
}
>
.nav-list
{
...
...
@@ -78,12 +98,20 @@
.nav-list-link
{
color
:
$nav-child-link-color
;
}
.nav-list-expander
{
fill
:
$nav-child-link-color
;
}
}
}
&
.active
{
>
.nav-list-expander
svg
{
transform
:
rotate
(
90deg
);
@if
$nav-list-expander-right
{
transform
:
rotate
(
-90deg
);
}
@else
{
transform
:
rotate
(
90deg
);
}
}
>
.nav-list
{
...
...
This diff is collapsed.
Click to expand it.
_sass/support/_variables.scss
+
1
−
0
View file @
52bcb26d
...
...
@@ -115,6 +115,7 @@ $nav-width: 264px !default;
$nav-width-md
:
248px
!
default
;
$nav-list-item-height
:
$sp-6
!
default
;
$nav-list-item-height-sm
:
$sp-8
!
default
;
$nav-list-expander-right
:
true
;
$content-width
:
800px
!
default
;
$header-height
:
60px
!
default
;
$search-results-width
:
500px
!
default
;
...
...
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