Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pico-theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
tetras-libre
pico-theme
Commits
a31fc736
Verified
Commit
a31fc736
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Fix menu responsiveness
parent
4fad0c97
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
base.twig
+9
-9
9 additions, 9 deletions
base.twig
css/style.css
+2
-6
2 additions, 6 deletions
css/style.css
with
11 additions
and
15 deletions
base.twig
+
9
−
9
View file @
a31fc736
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
<body
{%
if
config.theme_config.widescreen
%}
class=
"widescreen"
{%
endif
%}
>
<body
{%
if
config.theme_config.widescreen
%}
class=
"widescreen"
{%
endif
%}
>
<header
id=
"top"
role=
"banner"
>
<header
id=
"top"
role=
"banner"
>
<nav
class=
"navbar navbar-expand-lg navbar-light bg-light justify-content-end sticky"
>
<nav
class=
"navbar navbar-expand-lg navbar-light bg-light justify-content-end sticky
d-flex flex-row flex-wrap
"
>
<a
id=
"logo"
class=
"navbar-brand"
href=
"
{{
"index"
|
link
}}
"
>
<a
id=
"logo"
class=
"navbar-brand
flex-grow-1
"
href=
"
{{
"index"
|
link
}}
"
>
<img
style=
"height:100px;min-width:130px;"
src=
"
{{
pages
[
"_meta"
]
.
meta.logo
|
url
}}
"
alt=
"
{{
site_title
}}
"
>
<img
style=
"height:100px;min-width:130px;"
src=
"
{{
pages
[
"_meta"
]
.
meta.logo
|
url
}}
"
alt=
"
{{
site_title
}}
"
>
<span>
{{
pages
[
"_meta"
]
.
meta.tagline
|
markdown
}}
</span>
<span>
{{
pages
[
"_meta"
]
.
meta.tagline
|
markdown
}}
</span>
</a>
</a>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</button>
</button>
<div
class=
"collapse navbar-collapse flex-grow-0 ml-auto"
id=
"navbarsExample03"
>
<div
class=
"collapse navbar-collapse flex-grow-0 ml-auto"
id=
"navbarsExample03"
>
<ul
class=
"navbar-nav mr-auto"
>
<ul
class=
"navbar-nav mr-auto
flex-row flex-wrap justify-content-end
"
>
{%
set
tags
=
get_all_tags
()
%}
{%
set
tags
=
get_all_tags
()
%}
{%
for
page
in
pages
if
page.title
%}
{%
for
page
in
pages
if
page.title
%}
{%
if
parentPage
and
not
(
page.id
starts
with
parentPage
)
%}
{%
if
parentPage
and
not
(
page.id
starts
with
parentPage
)
%}
...
@@ -48,22 +48,22 @@
...
@@ -48,22 +48,22 @@
{%
set
pageDepth
=
page.id
|
split
(
'/'
)
|
length
%}
{%
set
pageDepth
=
page.id
|
split
(
'/'
)
|
length
%}
{%
if
pageDepth
==
1
%}
{%
if
pageDepth
==
1
%}
<li
class=
"
{%
if
page.id
==
current_page.id
%}
active
{%
endif
%}
nav-link"
>
<li
class=
"
{%
if
page.id
==
current_page.id
%}
active
{%
endif
%}
nav-link
mr-2 ml-2
"
>
<a
href=
"
{{
page.url
}}
"
>
{{
page.title
}}
</a>
<a
href=
"
{{
page.url
}}
"
>
{{
page.title
}}
</a>
</li>
</li>
{%
elseif
(
pageDepth
==
2
)
and
(
page.id
ends
with
"/index"
)
%}
{%
elseif
(
pageDepth
==
2
)
and
(
page.id
ends
with
"/index"
)
%}
{%
set
parentPage
=
page.id
|
slice
(
0
,
-
5
)
%}
{%
set
parentPage
=
page.id
|
slice
(
0
,
-
5
)
%}
<li
class=
"
{%
if
page.id
==
current_page.id
%}
active
{%
endif
%}
dropdown show nav-link"
>
<li
class=
"
{%
if
page.id
==
current_page.id
%}
active
{%
endif
%}
dropdown show nav-link
mr-2 ml-2
"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
{{
page.title
}}
</a>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
{{
page.title
}}
</a>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu
dropdown-menu-right
"
>
{%
if
page.title
==
'Blog'
%}
{%
if
page.title
==
'Blog'
%}
<li
class=
"nav-link
"
><a
href=
"
{{
base_url
}}
/blog"
>
Tous les articles
</a></li>
<li
class=
"nav-link
ml-1 mr-1"
><a
class=
"ml-2"
href=
"
{{
base_url
}}
/blog"
>
Tous les articles
</a></li>
{%
for
tag
in
tags
|
sort
%}
{%
for
tag
in
tags
|
sort
%}
<li
class=
"nav-link
"
><a
href=
"
{{
base_url
}}
/blog/?tag=
{{
tag
}}
"
>
{{
tag
}}
</a></li>
<li
class=
"nav-link
ml-1 mr-1"
><a
class=
"ml-2"
href=
"
{{
base_url
}}
/blog/?tag=
{{
tag
}}
"
>
{{
tag
}}
</a></li>
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
{%
elseif
(
pageDepth
==
2
)
and
parentPage
%}
{%
elseif
(
pageDepth
==
2
)
and
parentPage
%}
<li
class=
"nav-link
"
><a
href=
"
{{
page.url
}}
"
>
{{
page.title
}}
</a></li>
<li
class=
"nav-link
ml-1 mr-1"
><a
class=
"ml-2"
href=
"
{{
page.url
}}
"
>
{{
page.title
}}
</a></li>
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
</ul>
</ul>
...
...
This diff is collapsed.
Click to expand it.
css/style.css
+
2
−
6
View file @
a31fc736
...
@@ -70,10 +70,8 @@ body { display: flex; flex-direction: column; }
...
@@ -70,10 +70,8 @@ body { display: flex; flex-direction: column; }
#title
*
{
margin
:
0
;
color
:
#41B171
;
}
#title
*
{
margin
:
0
;
color
:
#41B171
;
}
#title
p
{
font-style
:
italic
;
}
#title
p
{
font-style
:
italic
;
}
#logo
img
{
float
:
left
;
}
#logo
img
{
float
:
left
;
clear
:
both
;
}
#logo
p
{
clear
:
both
;
}
#logo
+
#title
h1
{
margin
:
0.8rem
0
;
}
#logo
+
#title
.tagline
h1
{
margin
:
0
;
}
#logo
+
#title
.tagline
h1
{
margin
:
0
;
}
#top
{
#top
{
...
@@ -84,13 +82,11 @@ body { display: flex; flex-direction: column; }
...
@@ -84,13 +82,11 @@ body { display: flex; flex-direction: column; }
}
}
#top
ul
li
{
#top
ul
li
{
display
:
block
;
display
:
block
;
margin-left
:
1em
;
padding
:
0
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
#top
ul
.dropdown-menu
{
#top
ul
.dropdown-menu
{
max-width
:
50%
;
position
:
absolute
;
}
}
a
#logo
,
#top
a
,
#nav-toggle
{
color
:
#556d5f
;
}
a
#logo
,
#top
a
,
#nav-toggle
{
color
:
#556d5f
;
}
...
...
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