Skip to content

Commit bb174ba

Browse files
Improved email input mobile styles
1 parent 3cf33c7 commit bb174ba

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ a:hover {
231231
align-items: center;
232232
position: relative;
233233
overflow: hidden;
234-
max-width: 640px;
234+
max-width: 560px;
235235
width: 100%;
236236
height: 56px;
237237
font-size: 1.7rem;
@@ -352,6 +352,28 @@ button.gh-form-input {
352352
display: block;
353353
}
354354

355+
@media (max-width: 576px) {
356+
.gh-form {
357+
font-size: 1.6rem;
358+
}
359+
360+
.gh-form .gh-button {
361+
padding-inline: 12px;
362+
}
363+
364+
.gh-form .gh-button span span {
365+
display: none;
366+
}
367+
368+
.gh-form .gh-button span svg {
369+
display: inline;
370+
position: static;
371+
margin-top: 2px;
372+
width: 20px;
373+
height: 20px;
374+
}
375+
}
376+
355377
/* 5. Layout
356378
/* ---------------------------------------------------------- */
357379

@@ -1403,7 +1425,7 @@ Search LOGO Login Subscribe
14031425
flex-direction: column;
14041426
align-items: center;
14051427
gap: 36px;
1406-
padding: 80px 64px 72px;
1428+
padding: clamp(48px, 3.64vw + 33.45px, 80px) clamp(40px, 2.73vw + 29.09px, 64px) clamp(40px, 3.64vw + 25.45px, 72px);
14071429
text-align: center;
14081430
background-color: var(--color-lighter-gray);
14091431
}
@@ -1426,10 +1448,6 @@ Search LOGO Login Subscribe
14261448
letter-spacing: -0.015em;
14271449
}
14281450

1429-
.gh-cta .gh-form {
1430-
max-width: 560px;
1431-
}
1432-
14331451
/* 10. Featured posts
14341452
/* ---------------------------------------------------------- */
14351453

@@ -2665,16 +2683,8 @@ figcaption a {
26652683

26662684
.gh-footer-signup .gh-form {
26672685
margin-top: 40px;
2668-
max-width: 560px;
26692686
}
26702687

2671-
/* .gh-footer-signup .gh-button {
2672-
margin-top: 32px;
2673-
padding: 16px 32px;
2674-
font-size: 1.9rem;
2675-
letter-spacing: -0.01em;
2676-
} */
2677-
26782688
@media (max-width: 991px) {
26792689
.gh-footer-bar {
26802690
display: flex;

partials/email-subscription.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<form class="gh-form" data-members-form>
22
<input class="gh-form-input" type="email" placeholder="[email protected]" required data-members-email>
33
<button class="gh-button" type="submit">
4-
<span>Subscribe</span>
4+
<span><span>Subscribe</span> {{> "icons/arrow"}}</span>
55
{{> "icons/loader"}}
66
{{> "icons/checkmark"}}
77
</button>

0 commit comments

Comments
 (0)