Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/knadh/hugo-ink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKailash Nadh <kailash@nadh.in>2021-01-10 12:12:49 +0300
committerKailash Nadh <kailash@nadh.in>2021-01-10 12:12:49 +0300
commit3a50589e7a54f4c06e3381340e9681a5de887a81 (patch)
tree0fadc53b9639b275636b81039257968030ea696b
parentdb138cdc1d4677dbc2f2895c00f20d1daf939774 (diff)
Fix broken icon navv1.0.0
-rw-r--r--layouts/partials/head.html6
-rw-r--r--static/css/main.css15
2 files changed, 17 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 06697eb..717b5c4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,11 +16,11 @@
{{- range $index, $key := .Site.Params.Social -}}
<li><a href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a></li>
{{- end -}}
+ {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
+ <li><a href="#" class="scheme-toggle" id="scheme-toggle"></a></li>
+ {{- end -}}
</ul>
</nav>
- {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
- <span class="scheme-toggle"><a href="#" id="scheme-toggle"></a>
- {{- end -}}
</div>
<nav class="nav">
diff --git a/static/css/main.css b/static/css/main.css
index 21b29ce..84d0df6 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -458,7 +458,7 @@ ul {
}
.header .nav li {
margin: 0 10px 0 0;
- font-size: 14px;
+ font-size: 0.875em;
}
table {
@@ -469,3 +469,16 @@ ul {
width: 100%;
}
}
+
+@media (max-width: 400px) {
+ .header .nav.social {
+ min-width: auto;
+ margin: 0;
+ }
+ .header .site-description {
+ font-size: 1em;
+ margin-top: 10px;
+ font-size: 0.875em;
+ line-height: 1.4em;
+ }
+} \ No newline at end of file