diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a622f42..aaff6d9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@
-
-
+
+ -
- + \ No newline at end of file diff --git a/static/css/github-style.css b/static/css/github-style.css index 2b33710..9f16abf 100644 --- a/static/css/github-style.css +++ b/static/css/github-style.css @@ -28,10 +28,6 @@ body { margin-right: 16px; } -.Header-item--full { - width: 100%; -} - .octicon { fill: currentColor; } @@ -113,4 +109,17 @@ body { -moz-user-select: none; -ms-user-select: none; user-select: none; +} + +@media (max-width: 768px) { + .mobile-none { + display: none!important; + } + .Header { + padding-left: 16px!important; + padding-right: 16px!important; + } + .Header-search { + max-width: 100%; + } } \ No newline at end of file diff --git a/static/js/github-style.js b/static/js/github-style.js index 7433931..dbd8cc1 100644 --- a/static/js/github-style.js +++ b/static/js/github-style.js @@ -322,12 +322,3 @@ function setRelativeTime() { elem.setAttribute('title', new Date(dateStr).toLocaleString()); }); } - -window.onscroll = function (e) { - const headerImg = document.querySelector('#headerImg'); - if (headerImg.getBoundingClientRect().bottom <= 0) { - document.querySelector('#headerStuck').classList.add('is-stuck'); - } else { - document.querySelector('#headerStuck').classList.remove('is-stuck'); - } -}; \ No newline at end of file