-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reCAPTCHA: Eligibility index page - Align page and refactor #2570
Changes from all commits
0ed1e18
a10e1ac
eb69d78
d844dec
e945960
1342b24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,6 @@ h4 { | |
@media (min-width: 992px) { | ||
:root { | ||
--h1-font-size: var(--font-size-35px); | ||
--h1-text-align: center; | ||
--h1-letter-spacing-percent: var(--letter-spacing-5); | ||
--font-size-35px: 2.1875rem; | ||
} | ||
|
@@ -154,7 +153,6 @@ h4 { | |
h1, | ||
.h1 { | ||
font-size: var(--h1-font-size); | ||
text-align: var(--h1-text-align); | ||
padding-top: calc(70rem / 16); | ||
line-height: var(--heading-line-height); | ||
letter-spacing: calc(var(--h1-font-size) * var(--h1-letter-spacing-percent)); | ||
|
@@ -558,27 +556,12 @@ footer .footer-links li a.footer-link:visited { | |
:root { | ||
--radio-button-size: calc(24rem / 16); | ||
--radio-input-color: var(--standout-color); | ||
--radio-input-gap: calc(24rem / 16); | ||
} | ||
|
||
@media (min-width: 992px) { | ||
:root { | ||
--radio-input-gap: calc(15rem / 16); | ||
} | ||
} | ||
|
||
.radio-label { | ||
cursor: pointer; | ||
} | ||
|
||
.radio-input-group { | ||
gap: var(--radio-input-gap); | ||
} | ||
Comment on lines
-561
to
-576
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a refactor that I made by:
Now all the radio button CSS styles are around who the element looks, and all the positioning (margin, padding) are done with classes on the page the elements are on. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bullet points make sense 👍 Not sure I'm following this part:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how the element looks, rather than how the elements as a whole are positioned onto the page. sorry typo! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, got it |
||
|
||
.radio-input-group:not(:first-child) { | ||
padding-top: calc(24rem / 16); | ||
} | ||
|
||
.radio-input { | ||
cursor: pointer; | ||
-webkit-appearance: none; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see the
radio-container
class name used in any CSS or JS, so I deleted it. I can't remember why I made this class name, perhaps purely for naming/reading purposes(!?!)