diff --git a/themes/hugo-w2ng/assets/css/site.css b/themes/hugo-w2ng/assets/css/site.css index 8ffcecd..6fe1656 100644 --- a/themes/hugo-w2ng/assets/css/site.css +++ b/themes/hugo-w2ng/assets/css/site.css @@ -5,3 +5,15 @@ code { font-family: "Lucida Console", Monaco, monospace; font-size: 85%; } + +/* menu */ + +@media (max-width: 768px) { + nav#menu { + display: none; + } + /* Style the button when the checkbox is checked */ + #expand-toggle:checked ~ nav#menu { + display: block; + } +} diff --git a/themes/hugo-w2ng/layouts/partials/header.html b/themes/hugo-w2ng/layouts/partials/header.html index f225c54..df5391a 100644 --- a/themes/hugo-w2ng/layouts/partials/header.html +++ b/themes/hugo-w2ng/layouts/partials/header.html @@ -1,8 +1,17 @@
-

Wrong.Wang

+

Wrong.Wang

前进

-