diff options
| author | simon-ec <simon@eustaceconsulting.com> | 2026-04-15 16:25:09 -0400 |
|---|---|---|
| committer | simon-ec <simon@eustaceconsulting.com> | 2026-04-15 16:25:09 -0400 |
| commit | 912a83581eaa21da3549926174fa76788a02df75 (patch) | |
| tree | 7790ff8a477caa66578cc285fbea72622170a754 /css/hamburger.css | |
first init
Diffstat (limited to 'css/hamburger.css')
| -rw-r--r-- | css/hamburger.css | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/css/hamburger.css b/css/hamburger.css new file mode 100644 index 0000000..146b2bc --- /dev/null +++ b/css/hamburger.css @@ -0,0 +1,40 @@ +#hamburger { + display: none; + flex-direction: column; + cursor: pointer; + background: none; + border: none; + padding: 5px; +} + +#hamburger span { + width: 25px; + height: 3px; + background-color: var(--fg-green); + margin: 3px 0; + transition: 0.3s; + position: relative; +} + +/* MOBILE RULES */ +/* @media screen and (max-width: 850px) { */ +@media screen and (max-width: 650px) { + /** hamburger animation */ + #hamburger { + display: flex; + } + + #hamburger.active span:nth-child(1) { + transform: rotate(-45deg) translateY(10px) translateX(-3px); + width: 24px; + height: 4px; + } + #hamburger.active span:nth-child(2) { + opacity: 0; + } + #hamburger.active span:nth-child(3) { + transform: rotate(45deg) translateY(-10px) translateX(-3px); + width: 24px; + height: 4px; + } +} |
