Translation, images, slight tweaks to animations.

This commit is contained in:
Ad5001 2021-06-11 00:20:10 +02:00
parent d839b56dd3
commit 9c4d84b35b
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
6 changed files with 22 additions and 9 deletions

View File

@ -1,12 +1,18 @@
{ {
"worksOn": { "worksOn": {
"other": "Works on:" "other": "Works on: "
},
"status": {
"other": "Status: "
}, },
"learnMore": { "learnMore": {
"other": "Learn more" "other": "Learn more"
}, },
"language": { "language": {
"other": "Language" "other": "Language"
},
"translated": {
"other": "Translated in: "
} }
} }

View File

@ -1,12 +1,18 @@
{ {
"worksOn": { "worksOn": {
"other": "Marche sur: " "other": "Marche sur : "
},
"status": {
"other": "Status : "
}, },
"learnMore": { "learnMore": {
"other": "En savoir +" "other": "En savoir +"
}, },
"language": { "language": {
"other": "Langue" "other": "Langue"
},
"translated": {
"other": "Traduit en : "
} }
} }

View File

@ -14,7 +14,7 @@
<div class="navbar-menu"> <div class="navbar-menu">
<ul class="navbar-list"> <ul class="navbar-list">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main.ByWeight }}
{{ if .HasChildren }} {{ if .HasChildren }}
<div class="menu-with-sub"> <div class="menu-with-sub">
<a href="#" role="button"> <a href="#" role="button">
@ -48,7 +48,7 @@
<a href="#" role="button"> <a href="#" role="button">
<li> <li>
<img src="/icons/lang.svg" class="icon-as-text"/> <img src="/icons/lang.svg" class="icon-as-text"/>
<span>{{ i18n "language" }}</span> <span>{{ i18n "language" 1 }}</span>
</li> </li>
</a> </a>
<ul class="sub-menu"> <ul class="sub-menu">

View File

@ -8,12 +8,12 @@
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.block-preview:hover { .block-preview:hover, .block-preview.toggled {
box-shadow: 0px 0px 4px 0px #000000; box-shadow: 0px 0px 4px 0px #000000;
} }
.block-preview .label { .block-preview .label {
transition: max-height 0.2s ease-in; transition: max-height 0.15s ease-in;
max-height: 20%; max-height: 20%;
overflow: hidden; overflow: hidden;
bottom: 0; bottom: 0;
@ -22,19 +22,20 @@
bottom: 0; bottom: 0;
} }
.block-preview:hover .label { .block-preview:hover .label, .block-preview.toggled .label {
max-height: 100%; max-height: 100%;
height: calc(100% - 1em);
} }
.block-preview .label .show-on-hover { .block-preview .label .show-on-hover {
display: none; display: none;
transition: opacity 0.2s; transition: opacity 0.15s;
opacity: 0; opacity: 0;
max-height: 0; max-height: 0;
background: none; background: none;
} }
.block-preview:hover .label .show-on-hover { .block-preview:hover .label .show-on-hover, .block-preview.toggled .label .show-on-hover {
display: block; display: block;
opacity: 1; opacity: 1;
max-height: 100%; max-height: 100%;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 66 KiB