Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
docs
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
core
docs
Commits
684a0880
Commit
684a0880
authored
1 year ago
by
Artur Sabirov
Committed by
Artur Sabirov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
header.html: delete unnecessary code
parent
30aa0fd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!335
chore: edit theme overrides
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
overrides/partials/header.html
+0
-57
0 additions, 57 deletions
overrides/partials/header.html
with
0 additions
and
57 deletions
overrides/partials/header.html
+
0
−
57
View file @
684a0880
...
...
@@ -77,37 +77,6 @@
{% if config.theme.palette %}
{% if not config.theme.palette is mapping %}
{% include "partials/palette.html" %}
<form
class=
"md-header__option"
data-md-component=
"palette"
>
{% for option in config.theme.palette %}
{% set primary = option.primary | replace(" ", "-") | lower %}
{% set accent = option.accent | replace(" ", "-") | lower %}
<input
class=
"md-option"
data-md-color-media=
"{{ option.media }}"
data-md-color-scheme=
"{{ option.scheme }}"
data-md-color-primary=
"{{ primary }}"
data-md-color-accent=
"{{ accent }}"
{%
if
option.toggle
%}
aria-label=
"{{ option.toggle.name }}"
{%
else
%}
aria-hidden=
"true"
{%
endif
%}
type=
"radio"
name=
"__palette"
id=
"__palette_{{ loop.index }}"
>
{% if option.toggle %}
<label
class=
"md-header__button md-icon"
title=
"{{ option.toggle.name }}"
for=
"__palette_{{ loop.index0 or loop.length }}"
hidden
>
{% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
</label>
{% endif %}
{% endfor %}
</form>
{% endif %}
{% endif %}
...
...
@@ -119,32 +88,6 @@
<!-- Site language selector -->
{% if config.extra.alternate %}
{% include "partials/alternate.html" %}
<div
class=
"md-header__option"
>
<div
class=
"md-select"
>
{% set icon = config.theme.icon.alternate or "material/translate" %}
<button
class=
"md-header__button md-icon"
aria-label=
"{{ lang.t('select.language.title') }}"
>
{% include ".icons/" ~ icon ~ ".svg" %}
</button>
<div
class=
"md-select__inner"
>
<ul
class=
"md-select__list"
>
{% for alt in config.extra.alternate %}
<li
class=
"md-select__item"
>
<a
href=
"{{ alt.link | url }}"
hreflang=
"{{ alt.lang }}"
class=
"md-select__link"
>
{{ alt.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
<!-- Button to open search modal -->
...
...
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