Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
9efaeba3
Commit
9efaeba3
authored
5 years ago
by
Gaël Poupard
Committed by
XhmikosR
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
docs(sidenav): use class selector for active item
parent
c0aa3a1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
site/assets/scss/_sidebar.scss
+2
-2
site/assets/scss/_sidebar.scss
site/layouts/partials/docs-sidebar.html
+2
-2
site/layouts/partials/docs-sidebar.html
with
4 additions
and
4 deletions
+4
-4
site/assets/scss/_sidebar.scss
+
2
-
2
View file @
9efaeba3
...
...
@@ -55,7 +55,7 @@
flex-flow
:
column
nowrap
;
padding-left
:
1
.25rem
;
>
li
>
a
{
a
{
display
:
inline-block
;
padding
:
.25rem
.5rem
;
@include
font-size
(
.875rem
);
...
...
@@ -70,7 +70,7 @@
}
}
[
aria-current
=
"page"
]
{
.active
{
font-weight
:
600
;
color
:
rgba
(
$black
,
.85
);
}
...
...
This diff is collapsed.
Click to expand it.
site/layouts/partials/docs-sidebar.html
+
2
-
2
View file @
9efaeba3
...
...
@@ -25,8 +25,8 @@
<ul
class=
"nav bd-sidenav mb-2 collapse{{ if $active_group }} show{{ end }}"
id=
"{{ $group_slug }}-collapse"
>
{{- range $doc := $group.pages -}}
{{- $doc_slug := $doc.title | urlize }}
<li
{{
if
and
$
active_group
(
eq
$
page_slug
$
doc_slug
)
}}
class=
"
active
bd-sidenav-active"
{{
end
}}
>
<a
href=
"/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ $doc_slug }}/"
{{
if
and
$
active_group
(
eq
$
page_slug
$
doc_slug
)
}}
aria-current=
"page"
{{
end
}}
>
<li
{{
if
and
$
active_group
(
eq
$
page_slug
$
doc_slug
)
}}
class=
"bd-sidenav-active"
{{
end
}}
>
<a
href=
"/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ $doc_slug }}/"
{{
if
and
$
active_group
(
eq
$
page_slug
$
doc_slug
)
}}
class=
"active"
aria-current=
"page"
{{
end
}}
>
{{- $doc.title -}}
</a>
</li>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment