Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ a:hover {
background-color: transparent;
outline: none;
transition: 0.3s ease-in-out;
text-overflow: ellipsis;
}

.gh-form-input::placeholder,
Expand Down Expand Up @@ -362,6 +363,56 @@ body[class*=" gh-font-heading"]:not(.gh-font-heading-fira-sans):not(.gh-font-hea
}
}

/* Stack the subscribe form vertically on narrow viewports so the email
placeholder doesn't get clipped behind the button (an issue that's
especially visible in verbose languages like German or Finnish). */
@media (max-width: 480px) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Rebuild the shipped stylesheet

This mobile rule is only added to assets/css/screen.css, but the theme actually preloads and serves {{asset "built/screen.css"}} in default.hbs (lines 11 and 18). I checked assets/built/screen.css and it still lacks the new @media (max-width: 480px) form overrides, so packaged/running themes will keep the old single-row subscribe form and the placeholder clipping remains unfixed until the built CSS is regenerated and committed.

Useful? React with 👍 / 👎.

.gh-form {
flex-direction: column;
align-items: stretch;
height: auto;
padding: 6px;
border-radius: 28px;
background-color: transparent;
}

.gh-form:hover {
background-color: transparent;
}

.gh-form-input {
position: static;
inset: auto;
width: 100%;
height: 52px;
padding-inline: 22px;
border-radius: 40px;
background-color: var(--color-lighter-gray);
}

.has-light-text .gh-form-input,
.gh-footer.has-accent-color .gh-form-input {
background-color: rgb(255 255 255 / 0.1);
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

.gh-form .gh-button {
position: static;
right: auto;
width: 100%;
min-width: 0;
margin-top: 10px;
height: 52px;
}

.gh-form > svg {
display: none;
}

button.gh-form-input {
padding-inline-start: 22px;
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

/* 5. Layout
/* ---------------------------------------------------------- */

Expand Down