hugo-theme-terminal/static/assets/languageSelector.js
YoungTaek df1fcb5b4e Trim visual align by adding a margin into menu section
- add a 1 pixel left and right margin to .menu selector in header.css file
2022-01-15 14:49:39 +09:00

1 line
467 B
JavaScript

!function(){var e=getComputedStyle(document.body).getPropertyValue("--phoneWidth"),t=function(){return window.matchMedia(e).matches},n=document.querySelector(".language-selector-current"),o=document.querySelector(".language-selector__more");document.body.addEventListener("click",(function(){t()||!o||o.classList.contains("hidden")||o.classList.add("hidden")})),n&&n.addEventListener("click",(function(e){t()||(e.stopPropagation(),o.classList.toggle("hidden"))}))}();