diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 582f544..a5e5414 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -16,10 +16,14 @@ {{ with .Site.Params.description }} {{.}} {{end}}
- {{ partial "sidebar/menu.html" . }} -- {{ partial "sidebar/social.html" . }} -
+{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}. Some Rights Reserved. diff --git a/static-src/scss/hyde-hyde/_responsive.scss b/static-src/scss/hyde-hyde/_responsive.scss index b9af2a6..e9541a1 100644 --- a/static-src/scss/hyde-hyde/_responsive.scss +++ b/static-src/scss/hyde-hyde/_responsive.scss @@ -1,7 +1,11 @@ // mobile ~320..480px // 320px ~ 16rem/16px ~ 18.8235/17px ~ 17.7778/18px // 480px ~ 30rem/16px ~ 28.2353rem/17px ~ 26.6667rem/18px -@media (min-width: 320px) and (max-width: 768px) { +@media (min-width: 320px) and (max-width: 767px) { + html, + body { + font-size: $small-device-font-size; + } .sidebar { li { padding: .1rem 0; @@ -10,6 +14,57 @@ .hidden-tablet { display: none; } + .sidebar-about, + .copyright { + display: none; + } + .sidebar { + margin: 0; + padding: 0; + } + .menu-content { + padding: 0 0 0 0px; + max-height: 0; + overflow: hidden; + margin-top: 0; } + .collapsible-menu { + padding: 0px 0px; + } + .collapsible-menu ul { + list-style-type: none; + padding: 0; + } + .collapsible-menu li { + display: block; + } + .collapsible-menu a { + text-decoration: none; + cursor: pointer; } + .collapsible-menu label { + background: url(/img/menu-open.svg) no-repeat left center; + display: block; + cursor: pointer; + color: #fff; + padding: 10px 0 10px 0px; } + + input#menuToggle { + display: none; + } + input#menuToggle + label { + font-weight: bold; + } + + input#menuToggle:checked + label { + background-image: url(/img/menu-close.svg); + color: #fff; + } + + input#menuToggle:checked ~ .menu-content { + max-height: 100% !important; + } + .social { + padding: 1em 0 1em 0; + } } // tablet/medium device ~768px+ @@ -64,6 +119,10 @@ } } } + input#menuToggle, + input#menuToggle + label { + display: none; + } } // Large devices (laptops/desktops, 992px and up) diff --git a/static/img/menu-close.svg b/static/img/menu-close.svg new file mode 100644 index 0000000..70fdaee --- /dev/null +++ b/static/img/menu-close.svg @@ -0,0 +1,12 @@ + + diff --git a/static/img/menu-open.svg b/static/img/menu-open.svg new file mode 100644 index 0000000..ec5c4f8 --- /dev/null +++ b/static/img/menu-open.svg @@ -0,0 +1,12 @@ + +