update
This commit is contained in:
parent
4c2cc9f3b4
commit
804159352f
4 changed files with 77 additions and 97 deletions
|
@ -21,6 +21,9 @@
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
color: var(--vriish-gradient-text);
|
color: var(--vriish-gradient-text);
|
||||||
mask: var(--vriish-waves);
|
mask: var(--vriish-waves);
|
||||||
|
@media (max-width: 1040px) {
|
||||||
|
height: 90vh;
|
||||||
|
}
|
||||||
h1 {
|
h1 {
|
||||||
letter-spacing: 0.5rem;
|
letter-spacing: 0.5rem;
|
||||||
font-size: 7rem;
|
font-size: 7rem;
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
background: var(--sidebar-background);
|
background: var(--sidebar-background);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
height: calc(100vh - 1rem);
|
height: calc(100vh - 1rem);
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
|
@ -23,11 +24,13 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-radius: 2rem 2rem 0 0;
|
border-radius: 2rem 2rem 0 0;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
width: calc(100vw - 1rem);
|
width: 100vw;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
margin: 0 0.5rem;
|
margin: 0;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
|
border: 1px solid var(--sidebar-border);
|
||||||
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
header {
|
header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -56,10 +59,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5rem;
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
letter-spacing: .025em;
|
letter-spacing: .025rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
aspect-ratio: 1 / 1;
|
aspect-ratio: 1 / 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -71,8 +74,7 @@
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: .25em .5em;
|
padding: 0.25em 0.5em;
|
||||||
line-height: 4rem;
|
|
||||||
}
|
}
|
||||||
&::after {
|
&::after {
|
||||||
background-color: var(--sidebar-accent-1);
|
background-color: var(--sidebar-accent-1);
|
||||||
|
@ -86,7 +88,11 @@
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: left 0.5s ease-out, opacity 0.5s ease-out, background-color 0.2s linear;
|
transition: left 0.5s ease-out, opacity 0.5s ease-out, background-color 0.2s linear, top 0.5s ease-out;
|
||||||
|
@media (max-width: 1040px) {
|
||||||
|
left: 0;
|
||||||
|
top: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.active {
|
&.active {
|
||||||
background-color: var(--sidebar-accent-1);
|
background-color: var(--sidebar-accent-1);
|
||||||
|
@ -101,6 +107,9 @@
|
||||||
&::after {
|
&::after {
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@media (max-width: 1040px) {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:active {
|
&:active {
|
||||||
|
@ -113,83 +122,51 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#social-links {
|
aside {
|
||||||
text-align: center;
|
@media (max-width: 1040px) {
|
||||||
margin-top: auto;
|
display: flex;
|
||||||
ul {
|
flex-direction: row;
|
||||||
list-style: none;
|
align-items: center;
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
.icon {
|
#social-links {
|
||||||
height: 2em;
|
text-align: center;
|
||||||
transition: color 0.2s linear;
|
align-items: center;
|
||||||
&.mastodon-icon {
|
display: flex;
|
||||||
color: hsl(239.6, 100%, 69.4%);
|
justify-content: center;
|
||||||
&:hover {
|
ul {
|
||||||
color: hsl(251.5, 58.9%, 51.4%);
|
list-style: none;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#localization {
|
|
||||||
bottom: 0.5em;
|
|
||||||
text-align: center;
|
|
||||||
@media (max-width: 920px) {
|
|
||||||
position: initial;
|
|
||||||
}
|
|
||||||
#language-select {
|
|
||||||
position: relative;
|
|
||||||
pointer-events: none;
|
|
||||||
&:hover {
|
|
||||||
#languages {
|
|
||||||
bottom: 2em;
|
|
||||||
opacity: 100%;
|
|
||||||
pointer-events: all;
|
|
||||||
* {
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#language-icon {
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 1em;
|
|
||||||
margin: -1em;
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
|
||||||
#languages {
|
|
||||||
background-color: var(--background);
|
|
||||||
border-radius: .5em;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
user-select: none;
|
}
|
||||||
position: absolute;
|
.icon {
|
||||||
bottom: 1em;
|
height: 2em;
|
||||||
opacity: 0%;
|
transition: color 0.2s ease-in-out;
|
||||||
transition: bottom .5s, opacity .5s;
|
&.mastodon-icon {
|
||||||
li {
|
color: hsl(239.6, 100%, 69.4%);
|
||||||
list-style: none;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: .25em .5em;
|
|
||||||
position: relative;
|
|
||||||
transition: background .5s;
|
|
||||||
border-radius: .5em;
|
|
||||||
margin: .2em;
|
|
||||||
&:not(:last-of-type) {
|
|
||||||
margin-bottom: .5em;
|
|
||||||
}
|
|
||||||
&.active {
|
|
||||||
background: var(--vriish-gradient);
|
|
||||||
}
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--vriish-gradient);
|
color: hsl(251.5, 58.9%, 51.4%);
|
||||||
}
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#languages {
|
||||||
|
text-align: center;
|
||||||
|
transition: background-color 0.2s ease-in-out;
|
||||||
|
border-radius: 0.5rem 0.5rem 1.85rem 0.5rem;
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--sidebar-accent-1);
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
background-color: var(--sidebar-accent-2);
|
||||||
|
}
|
||||||
|
#language {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,10 @@
|
||||||
de:
|
de:
|
||||||
languageName: Deutsch
|
languageName: Deutsch
|
||||||
|
params:
|
||||||
|
languageFlag: 🇩🇪
|
||||||
weight: 1
|
weight: 1
|
||||||
en:
|
en:
|
||||||
languageName: English
|
languageName: English
|
||||||
|
params:
|
||||||
|
languageFlag: 🇬🇧
|
||||||
weight: 2
|
weight: 2
|
|
@ -19,32 +19,28 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section id="social-links">
|
<aside>
|
||||||
<ul>
|
<section id="social-links">
|
||||||
<li><a rel="me" href="https://social.anoxinon.de/@vri">{{ partial "helpers/icons" "mastodon" }}</a></li>
|
<ul>
|
||||||
</ul>
|
<li><a rel="me" href="https://social.anoxinon.de/@vri">{{ partial "helpers/icons" "mastodon" }}</a></li>
|
||||||
</section>
|
</ul>
|
||||||
<section id="localization">
|
</section>
|
||||||
{{- if .Site.IsMultiLingual }}
|
<section id="languages">
|
||||||
{{ $siteLanguages := .Site.Languages }}
|
{{- if .Site.IsMultiLingual }}
|
||||||
{{ $pageLanguage := .Page.Lang }}
|
{{ $siteLanguages := .Site.Languages }}
|
||||||
<div id="language-select">
|
{{ $pageLanguage := .Page.Lang }}
|
||||||
<span id="language-icon" href="#" data-page-lang="{{ .Page.Lang }}">🌐</span>
|
|
||||||
<ul id="languages">
|
|
||||||
{{ range .Page.AllTranslations }}
|
{{ range .Page.AllTranslations }}
|
||||||
{{ $translation := . }}
|
{{ $translation := . }}
|
||||||
{{ range $siteLanguages }}
|
{{ range $siteLanguages }}
|
||||||
{{ if eq $translation.Lang .Lang }}
|
{{ if eq $translation.Lang .Lang }}
|
||||||
{{ if eq $pageLanguage .Lang }}
|
{{ if ne $pageLanguage .Lang }}
|
||||||
<li class="active"><a href="{{ $translation.Permalink }}">{{ .LanguageName }}</a></li>
|
<a id="language" href="{{ $translation.Permalink }}">{{ .Params.languageFlag }}</a>
|
||||||
{{ else }}
|
|
||||||
<li><a href="{{ $translation.Permalink }}">{{ .LanguageName }}</a></li>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
{{- end }}
|
||||||
</div>
|
</section>
|
||||||
{{- end }}
|
</aside>
|
||||||
</section>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue