mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-09 07:12:54 -04:00
globe icon css
This commit is contained in:
parent
7586a0ce79
commit
6715821694
4 changed files with 24 additions and 9 deletions
|
@ -20,6 +20,7 @@ internal_level = "error"
|
||||||
[translations]
|
[translations]
|
||||||
language_name = "en"
|
language_name = "en"
|
||||||
language_selection = "Language"
|
language_selection = "Language"
|
||||||
|
search = "Search"
|
||||||
published = "Published on"
|
published = "Published on"
|
||||||
edited = "Last edited on"
|
edited = "Last edited on"
|
||||||
letter = "Letter booklet"
|
letter = "Letter booklet"
|
||||||
|
@ -53,6 +54,7 @@ title = "AnarSec"
|
||||||
[languages.fr.translations]
|
[languages.fr.translations]
|
||||||
language_name = "fr"
|
language_name = "fr"
|
||||||
language_selection = "Langue"
|
language_selection = "Langue"
|
||||||
|
search = "Recherche"
|
||||||
published = "Publié le"
|
published = "Publié le"
|
||||||
edited = "Modifié le"
|
edited = "Modifié le"
|
||||||
letter = "Brochure Letter"
|
letter = "Brochure Letter"
|
||||||
|
|
|
@ -529,7 +529,6 @@ section
|
||||||
max-height: calc(100vh - 48px)
|
max-height: calc(100vh - 48px)
|
||||||
overflow-y: scroll
|
overflow-y: scroll
|
||||||
|
|
||||||
|
|
||||||
div.column.is-2.is-hidden-mobile
|
div.column.is-2.is-hidden-mobile
|
||||||
padding-right: 0px !important
|
padding-right: 0px !important
|
||||||
|
|
||||||
|
@ -586,12 +585,21 @@ a
|
||||||
li.lang-switcher
|
li.lang-switcher
|
||||||
list-style: none
|
list-style: none
|
||||||
|
|
||||||
|
.lang-switcher .lang-switcher-icon
|
||||||
|
width: 1.25rem
|
||||||
|
height: 1.25rem
|
||||||
|
margin-top: 0.35rem
|
||||||
|
|
||||||
|
.dropdown .dropdown-content
|
||||||
|
padding-inline-start:.5rem
|
||||||
|
padding-inline-end:.5rem
|
||||||
|
text-align: center
|
||||||
|
left:50%
|
||||||
|
transform: translatex(-50%) !important
|
||||||
|
|
||||||
.dropdown-content
|
.dropdown-content
|
||||||
position: absolute !important
|
position: absolute !important
|
||||||
|
|
||||||
summary
|
|
||||||
list-style: none
|
|
||||||
|
|
||||||
code
|
code
|
||||||
color: #AE3B8B
|
color: #AE3B8B
|
||||||
|
|
||||||
|
@ -608,10 +616,13 @@ code
|
||||||
.icon-text
|
.icon-text
|
||||||
align-items: center
|
align-items: center
|
||||||
|
|
||||||
summary
|
summary:not(.nav)
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
margin-top: 0.5em
|
margin-top: 0.5em
|
||||||
|
|
||||||
|
summary.nav
|
||||||
|
list-style: none
|
||||||
|
|
||||||
summary > p
|
summary > p
|
||||||
display: inline
|
display: inline
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<a class="navbar-item" id="nav-search" title="Search" href="/search" target="_blank" rel="noopener noreferrer">
|
<a class="navbar-item" id="nav-search" title="{{ trans(key="search", lang=lang) }}" href="/search" target="_blank" rel="noopener noreferrer">
|
||||||
<span class="icon is-small">
|
<span class="icon is-small">
|
||||||
<img src="/images/search.png">
|
<img src="/images/search.png">
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<li class="lang-switcher">
|
<li class="lang-switcher navbar-item">
|
||||||
<details class="dropdown">
|
<details class="dropdown">
|
||||||
<summary role="button" aria-haspopup="true" title="{{ trans(key="language_selection", lang=lang) }}" aria-label="{{ trans(key="language_selection", lang=lang) }}">
|
<summary class="nav" role="button" aria-haspopup="true" title="{{ trans(key="language_selection", lang=lang) }}" aria-label="{{ trans(key="language_selection", lang=lang) }}">
|
||||||
<span class="icon is-small">
|
<span class="lang-switcher-icon icon is-small">
|
||||||
<img src="/images/globe.png">
|
<img src="/images/globe.png">
|
||||||
</span>
|
</span>
|
||||||
</summary>
|
</summary>
|
||||||
|
@ -10,6 +10,7 @@
|
||||||
{{ trans(key="language_name", lang=lang) | upper }}
|
{{ trans(key="language_name", lang=lang) | upper }}
|
||||||
{#- Loop through all the available languages in the config -#}
|
{#- Loop through all the available languages in the config -#}
|
||||||
{%- for lcode, ldetails in config.languages -%}
|
{%- for lcode, ldetails in config.languages -%}
|
||||||
|
<div>
|
||||||
{#- Skip the current language to avoid linking to the current page -#}
|
{#- Skip the current language to avoid linking to the current page -#}
|
||||||
{%- if lang == lcode -%}
|
{%- if lang == lcode -%}
|
||||||
{%- continue -%}
|
{%- continue -%}
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
{#- If it's not, replace the current language code in the URL with the new one -#}
|
{#- If it's not, replace the current language code in the URL with the new one -#}
|
||||||
<a role="menuitem" lang="{{ lcode }}" aria-label="{{ language_name }}" href="{{ current_url | replace(from='/' ~ lang ~ '/', to='/' ~ lcode ~ '/') }}">{{ lcode | upper }}</a>
|
<a role="menuitem" lang="{{ lcode }}" aria-label="{{ language_name }}" href="{{ current_url | replace(from='/' ~ lang ~ '/', to='/' ~ lcode ~ '/') }}">{{ lcode | upper }}</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
</div>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue