Skip to content
Merged
Changes from all commits
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
26 changes: 11 additions & 15 deletions src/app/pages/home/sections/contact/contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@
}

.contact-field {
--contact-field-error-line: 17px;

display: grid;
gap: 8px;
padding: 16px 24px;
grid-template-rows: auto 8px 22px var(--contact-field-error-line);
padding: 16px 24px 0;
Comment on lines 13 to +15
border-bottom: 1px solid var(--color-secondary);
}

.contact-field label {
grid-row: 1;
font-size: 24px;
font-weight: 500;
line-height: 1.2;
transition: color 180ms ease-out;
}

.contact-field :is(input, textarea) {
grid-row: 3;
width: 100%;
height: 22px;
margin: 0;
Expand Down Expand Up @@ -56,25 +60,13 @@
}

.contact-field__error {
grid-row: 4;
margin: 0;
color: var(--color-error);
font-size: 14px;
line-height: 1.2;
}

.contact-field--invalid:has(:placeholder-shown) :is(input, textarea) {
grid-area: 2 / 1;
z-index: 1;
}

.contact-field--invalid:has(:placeholder-shown) .contact-field__error {
grid-area: 2 / 1;
}

.contact-field--invalid:has(:placeholder-shown) ::placeholder {
color: transparent;
}

.contact-consent {
position: relative;
min-height: 112px;
Expand Down Expand Up @@ -218,6 +210,10 @@
width: 280px;
}

.contact-field {
--contact-field-error-line: 22px;
}

.contact-field__error {
font-size: 18px;
}
Expand Down