fix color overflow
All checks were successful
/ test (push) Successful in 4s

This commit is contained in:
violette 2024-05-21 13:25:48 -04:00
parent d31161087e
commit 012aac1464
2 changed files with 77 additions and 86 deletions

View file

@ -44,12 +44,14 @@
color:var(--text); color:var(--text);
height: 100%; height: 100%;
width: 100%; width: 100%;
scrollbar-color: var(--bg);
} }
.margin { .margin {
min-height: 100vh; min-height: 100vh;
padding-left: 20px; padding-left: 5%;
padding-right: 20px; padding-right: 5%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -66,7 +68,7 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow-y:scroll;
} }
header { header {
@ -123,19 +125,27 @@ footer {
.nav { .nav {
list-style-type: none; list-style-type: none;
margin: 5pt; margin: 5pt;
display: inline-flex; display: flex;
padding-left: 5pt;
align-items: center; padding-right: 5pt;
} }
.nav-right { .nav-right {
list-style-type: none; list-style-type: none;
width: 100%;
display: flex; display: flex;
width: 50%;
justify-content: flex-end; justify-content: flex-end;
} }
.nav-left {
list-style-type: none;
display: flex;
width: 50%;
justify-content: flex-start;
}
@media only screen and (max-width: 300pt) { @media only screen and (max-width: 300pt) {
.nav { .nav {
flex-direction: column; flex-direction: column;
@ -147,46 +157,27 @@ footer {
display: flex; display: flex;
} }
.nav-left {
flex-direction: column;
}
} }
li { li {
padding-left: 5pt; padding-left: 5pt;
padding-right: 5pt; padding-right: 5pt;
} }
ul {
padding-right: 5pt;
padding-left: 5pt;
margin-left: 5pt;
width: 100%;
}
a, label { a, label {
color: var(--text-mauve); color: var(--text-mauve);
text-decoration: none; text-decoration: none;
} }
.toggle-dark {
width: auto;
padding-right: 20pt;
}
.toggle-dark label {
width: 100%;
display: block;
}
/* resize image that are in main, and center them */ /* resize image that are in main, and center them */
main img { main img {
max-width: 70%; max-width: 70%;
min-width: 0; min-width: 0;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
display: flex; display: flex;
float:none; float:none;
} }

View file

@ -19,6 +19,7 @@ Renders a menu for the given menu ID.
{{- end }} {{- end }}
{{- define "partials/inline/menu/walk.html" }} {{- define "partials/inline/menu/walk.html" }}
<span class="nav-left">
{{- $page := .page }} {{- $page := .page }}
{{- range .menuEntries }} {{- range .menuEntries }}
{{- $href := relLangURL .URL }} {{- $href := relLangURL .URL }}
@ -34,7 +35,7 @@ Renders a menu for the given menu ID.
{{- $name = . }} {{- $name = . }}
{{- end }} {{- end }}
{{- end }} {{- end }}
<li class="nav-left"> <li>
<a <a
{{- range $k, $v := $attrs }} {{- range $k, $v := $attrs }}
{{- with $v }} {{- with $v }}
@ -42,22 +43,21 @@ Renders a menu for the given menu ID.
{{- end }} {{- end }}
{{- end -}} {{- end -}}
>{{ $name }}</a> >{{ $name }}</a>
{{- with .Children }}
<ul>
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
</ul>
{{- end }}
</li> </li>
{{- end }} {{- end }}
<li class="nav-right"> </span>
<span class="nav-right">
<li>
<span class="toggle-dark"> <span class="toggle-dark">
<label for="color-mode"> {{ i18n "dark-mode" }}</label> <label for="color-mode"> {{ i18n "dark-mode" }}</label>
</span> </span>
</li>
<li>
<span class="toggle-language"> <span class="toggle-language">
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}</a> <a href={{ i18n "language-switch" }}> {{ i18n "language" }}</a>
</span> </span>
<span class="empty-space-menu"></span>
</li> </li>
</span>
{{- end }} {{- end }}