Skip to content

Commit 5dbeedc

Browse files
committed
mobile reduce fontsize
1 parent 300e76b commit 5dbeedc

4 files changed

Lines changed: 33 additions & 57 deletions

File tree

events.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@
4545
}
4646
}
4747

48+
.events-room {
49+
font-size: 0.94rem;
50+
font-style: italic;
51+
}
52+
@media (max-width: 480px) {
53+
.hero_events .h1 {
54+
font-size: min(1.7rem, 9vw);
55+
line-height: min(2.1rem, 11vw);
56+
font-weight: 700;
57+
margin-bottom: 1rem;
58+
}
59+
.events-days {
60+
display: block;
61+
line-height: 1.35rem;
62+
}
63+
.events-room {
64+
margin-left: 0rem;
65+
font-size: 0.94rem;
66+
margin-bottom: 0.4rem;
67+
display: block;
68+
}
69+
}
70+
4871
/* DISCORD BUTTON */
4972
.btn-discord {
5073
display: inline-block;

events.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ <h2 class="hero-description">
8282
</div>
8383
<div>
8484
<h3 class="h3">Every Monday and Wednesday*</h3>
85-
<span>
86-
Mon May 18 &nbsp;5:30&hairsp;-&hairsp;8pm &nbsp; <span class="strong_">Ground&nbsp;floor</span>,<br>
87-
Wed May 20 &nbsp;6&hairsp;-&hairsp;8pm &nbsp; <span class="strong_">Community&nbsp;Room</span>,<br>
88-
<span class="strong">Tue</span> May 26 &nbsp;5:30&hairsp;-&hairsp;8pm &nbsp; <span class="strong_">Ground&nbsp;floor</span>,<br>
89-
Wed May 27 &nbsp;6&hairsp;-&hairsp;8pm &nbsp; <span class="strong_">Community&nbsp;Room</span><br>
85+
<span class="events-days">
86+
Mon May 18 &nbsp;5:30&hairsp;-&hairsp;8pm, &nbsp; <span class="events-room"><span class="strong_">Ground&nbsp;floor</span><br></span>
87+
Wed May 20 &nbsp;6&hairsp;-&hairsp;8pm, &nbsp; <span class="events-room"><span class="strong_">Community&nbsp;Room</span><br></span>
88+
<span class="strong">Tue</span> May 26 &nbsp;5:30&hairsp;-&hairsp;8pm, &nbsp; <span class="events-room"><span class="strong_">Ground&nbsp;floor</span><br></span>
89+
Wed May 27 &nbsp;6&hairsp;-&hairsp;8pm, &nbsp; <span class="events-room"><span class="strong_">Community&nbsp;Room</span><br></span>
9090
</span>
9191
</div>
9292
</section>

nav.css

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ nav {
2121
}
2222
@media (max-width: 480px) {
2323
.nav-hide-mobile { display: none; }
24+
.nav-left { gap: 1.5rem; }
25+
.nav-right { gap: 1.8rem; }
2426
}
2527

2628
.nav-icon {
@@ -38,54 +40,3 @@ nav {
3840
text-decoration: none;
3941
}
4042

41-
42-
/* AI_ MOBILE MENU */
43-
.nav-mobile-btn {
44-
all:unset;
45-
display: none;
46-
cursor: pointer;
47-
color: inherit;
48-
font-weight: 700;
49-
font-size: 1.4rem;
50-
line-height: 0.7;
51-
}
52-
53-
.nav-mobile {
54-
position: fixed;
55-
top: 0;
56-
left: 0;
57-
height: 100%;
58-
width: 13rem;
59-
background: #fff;
60-
border-right: 1px solid rgba(0,0,0,0.1);
61-
padding: 3.5rem 2rem 2rem;
62-
display: flex;
63-
flex-direction: column;
64-
gap: 1.5rem;
65-
transform: translateX(-100%);
66-
transition: transform 0.22s ease;
67-
z-index: 200;
68-
}
69-
.nav-mobile.open {
70-
transform: translateX(0);
71-
}
72-
.nav-mobile a {
73-
font-size: 0.9rem;
74-
font-weight: 600;
75-
/* text-transform: uppercase; */
76-
letter-spacing: 0.5px;
77-
text-decoration: none;
78-
}
79-
.mobile-overlay {
80-
display: none;
81-
position: fixed;
82-
inset: 0;
83-
background: rgba(0,0,0,0.25);
84-
z-index: 199;
85-
}
86-
.mobile-overlay.open {
87-
display: block;
88-
}
89-
body.menu-open {
90-
overflow: hidden;
91-
}

style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ html {
88
}
99

1010
@media (max-width: 600px) {
11-
html { font-size: 17px; line-height: 26px; }
11+
html { font-size: 15px; line-height: 27px; }
1212
}
1313

1414
a { color: inherit; }
@@ -38,10 +38,12 @@ a:hover { opacity: 0.7; }
3838
font-size: 0.82rem;
3939
font-size: 0.88rem;
4040
margin-bottom: 0.1rem;
41+
padding-top: 0.25rem;
4142
font-weight: 700;
4243
text-transform: uppercase;
4344
letter-spacing: 0.5px;
4445
color: rgb(17, 17, 17);
46+
line-height: 1.4rem;
4547
}
4648

4749
.strong {

0 commit comments

Comments
 (0)