summaryrefslogtreecommitdiff
path: root/css/style.css
diff options
context:
space:
mode:
authorsimon <vesspa0330@gmail.com>2026-11-16 22:19:56 -0500
committersimon <vesspa0330@gmail.com>2026-11-16 22:19:56 -0500
commit2171b125bae0089f7bebde38761b7723c9103a74 (patch)
treea89acfb0d49914b7fbbaadcd5286305dc3229a60 /css/style.css
parent9b0cad9408abce4338269b696b5dc695363d2142 (diff)
bunch of SEO, performance, and accessibility updates
Diffstat (limited to 'css/style.css')
-rw-r--r--css/style.css45
1 files changed, 44 insertions, 1 deletions
diff --git a/css/style.css b/css/style.css
index f70595f..8efa243 100644
--- a/css/style.css
+++ b/css/style.css
@@ -135,8 +135,9 @@ nav {
/** BODY TAGS */
@font-face {
+ font-display: optional;
font-family: inter;
- src: url('../assets/fonts/Inter.ttf');
+ src: url('../assets/Inter.ttf');
}
body {
color: var(--white);
@@ -439,3 +440,45 @@ footer a:hover {
}
+
+
+/** HAMBURGER MENU **/
+#hamburger {
+ display: none;
+ flex-direction: column;
+ cursor: pointer;
+ background: none;
+ border: none;
+ padding: 5px;
+}
+
+#hamburger span {
+ width: 25px;
+ height: 3px;
+ background-color: var(--gold);
+ margin: 3px 0;
+ transition: 0.3s;
+ position: relative;
+}
+
+/* MOBILE RULES */
+@media screen and (max-width: 850px) {
+ /** 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;
+ }
+}