Skip to content

Commit

Permalink
style: on policy and terms and condition subpages, reduce font-size a…
Browse files Browse the repository at this point in the history
…nd line-height for legibility on smaller screens
  • Loading branch information
henrylin03 committed Sep 4, 2024
1 parent 590b668 commit d56f9dc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
16 changes: 16 additions & 0 deletions css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ footer a:hover {
/* MEDIA QUERIES */
/* mobile */
@media only screen and (max-width: 768px) {
h1 {
font-size: 2.1rem;
}

h2 {
font-size: 1.5rem;
}

h3 {
font-size: 1.2rem;
}

/* header section */
header {
Expand Down Expand Up @@ -143,6 +154,11 @@ footer a:hover {
padding: 12px;
}

main p,
main ul {
font-size: .85rem;
}

/* footer */
footer {
font-size: .5rem;
Expand Down
17 changes: 12 additions & 5 deletions css/policies.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,19 @@ main a:hover {
font-weight: 600;
}

/* SPECIAL PADDING FOR FOOTER */
footer {
padding: 24px 36px;
/* MEDIA QUERIES */
/* mobile */
@media only screen and (max-width: 768px) {
main p {
line-height: 1.5rem;
margin: .75rem 0;
}

main ul {
line-height: 1.5rem;
}

/* mobile */
@media (max-width: 768px) {
footer {
padding: 16px;
}
}

0 comments on commit d56f9dc

Please sign in to comment.