-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add basic typography styles for common elements #49
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -5,3 +5,65 @@ | |
--font-family-serif: "Source Serif 4", serif; | ||
--bs-font-sans-serif: "Source Sans 3", "Source Sans Pro"; | ||
} | ||
|
||
h1, .h1 { | ||
font-size: 2.25rem; | ||
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. I think we are supposed to keep the responsive text size for screens below 1200px, but I am not 100% sure about this. 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 – so all of this (except the parts that say "xs" and "xl", maybe?) would be for <= 1200px only? 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. I think we are supposed to do both, i.e.
But honestly this ticket was kind of confusing to me. I think @jcoyne has a better handle than I do. 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. Yes, it was my understanding that we would continue to have responsive text sizes. 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. Are the responsive sizes defined somewhere else? Do I just need to put most of these changes behind a breakpoint? |
||
line-height: 2.375rem; | ||
font-weight: 600; | ||
} | ||
|
||
h2, .h2 { | ||
font-size: 1.75rem; | ||
line-height: 2rem; | ||
font-weight: 600; | ||
} | ||
|
||
h3, .h3 { | ||
font-size: 1.5rem; | ||
font-weight: 600; | ||
} | ||
|
||
h4, .h4 { | ||
font-size: 1.25rem; | ||
font-weight: 600; | ||
} | ||
|
||
h5, .h5 { | ||
font-size: 1rem; | ||
font-weight: 600; | ||
} | ||
|
||
h6, .h6 { | ||
font-size: 0.9rem; | ||
font-weight: 600; | ||
text-transform: uppercase; | ||
} | ||
|
||
dt { | ||
font-size: 1rem; | ||
font-weight: 600; | ||
} | ||
|
||
dd { | ||
font-size: 1rem; | ||
font-weight: 400; | ||
} | ||
|
||
p { | ||
font-size: 1rem; | ||
font-weight: 400; | ||
} | ||
|
||
/* xs */ | ||
@media (width < 576px) { | ||
p { | ||
font-size: 0.9rem; | ||
} | ||
} | ||
|
||
/* xl */ | ||
@media (width >= 1200px) { | ||
p { | ||
font-size: 1.25rem; | ||
} | ||
} |
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.
no longer needed since it's the default