Skip to content

Commit

Permalink
Use rem units for font-sizes, address linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
huntermacd committed Jul 23, 2024
1 parent 451816f commit 8a82050
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body {

main {
font-family: 'Circular', verdana, sans-serif;
font-size: 20px;
font-size: 1.25rem;
display: flex;
flex-direction: column;
justify-content: space-between;
Expand Down Expand Up @@ -79,7 +79,7 @@ main {
div {
transform: rotate(-90deg);
font-family: verdana, sans-serif;
font-size: 1.25em;
font-size: 1.25rem;
padding: 1em;
}
}
Expand All @@ -101,7 +101,7 @@ main {
}

.chapter-item {
font-size: 1em;
font-size: 1rem;
font-weight: 400;
}

Expand Down Expand Up @@ -149,9 +149,9 @@ main {
display: flex;
align-items: center;
justify-content: center;
font-family: 'IBMPlexMono';
font-family: 'IBMPlexMono', monospace;
border-top: 1px solid $lb-gray;
font-size: 14px;
font-size: 0.875rem;
font-weight: 400;
line-height: 16px;
letter-spacing: 0.1em;
Expand Down Expand Up @@ -195,13 +195,13 @@ main {

> p {
text-transform: uppercase;
font-size: 16px;
font-size: 1rem;
color: $lb-ocean;
}


h1 {
font-size: 104px;
font-size: 6.5rem;
line-height: 112px;
font-weight: 700;
}
Expand All @@ -214,7 +214,7 @@ div.get-started {
text-decoration: none;
color: $lb-black;
text-transform: uppercase;
font-size: 14px;
font-size: 0.875rem;
font-weight: 500;
line-height: 16px;
letter-spacing: 1.4px;
Expand Down Expand Up @@ -261,18 +261,17 @@ div.get-started {
background-color: $lb-white;
color: $lb-black;
padding: 7em;
font-size: 1.25em;
font-size: 1.25rem;
}

.toc-container {
padding: 4em;
padding-top: 10em;
padding: 10em 4em 4em;
text-align: left;

> p {
text-transform: uppercase;
margin-bottom: 2em;
font-size: 16px;
font-size: 1rem;
font-weight: 500;
line-height: 24px;
letter-spacing: 0.1em;
Expand All @@ -291,7 +290,7 @@ div.get-started {
}

.chapter-item {
font-size: 1.25em;
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 2em;
color: $lb-black;
Expand Down Expand Up @@ -323,14 +322,14 @@ div.get-started {

p {
.chapter {
font-size: 1.25em;
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 2em;
color: $lb-red;
}

.title {
font-size: 2em;
font-size: 2rem;
font-weight: 700;
margin-bottom: 2em;
color: $lb-black;
Expand All @@ -355,18 +354,18 @@ p {
}

.ebook-chapter-title {
font-size: 28px;
font-size: 1.75rem;
font-weight: bold;
}
}

.ebook-copy {
.ebook-chapter-title {
font-size: 28px;
font-size: 1.75rem;
font-weight: bold;
}
.copy-paragraph {
font-size: 20px;
font-size: 1.25rem;
line-height: 2;
padding: 0;
}
Expand Down Expand Up @@ -395,11 +394,10 @@ p {

@media (width <= 768px) {
.cover {
padding: 5%;
padding-top: 7em;
padding: 7em 5% 5%;

h1 {
font-size: 2em;
font-size: 2rem;
}
}
.cover-copy {
Expand Down

0 comments on commit 8a82050

Please sign in to comment.