Skip to content

Commit

Permalink
fix: apply s2 font styles
Browse files Browse the repository at this point in the history
  • Loading branch information
fkakatie committed May 24, 2024
1 parent 4be1344 commit 7a260c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
footer {
padding: 2rem;
background-color: var(--light-color);
font-size: var(--body-font-size-s);
font-size: var(--body-font-size-xs);
}

footer .footer {
Expand Down
8 changes: 2 additions & 6 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ header nav {
max-width: 1264px;
height: var(--nav-height);
padding: 0 1rem;
font-family: var(--body-font-family);
}

header nav[aria-expanded='true'] {
Expand Down Expand Up @@ -171,19 +170,18 @@ header nav .nav-sections ul {
list-style: none;
padding-left: 0;
font-size: var(--body-font-size-s);
font-weight: 500;
}

header nav .nav-sections ul > li {
font-weight: 700;
font-weight: 500;
}

header nav .nav-sections ul > li > ul {
margin-top: 0;
}

header nav .nav-sections ul > li > ul > li {
font-weight: 500;
font-weight: 400;
}

@media (width >= 900px) {
Expand Down Expand Up @@ -227,13 +225,11 @@ header nav .nav-sections ul > li > ul > li {
display: flex;
gap: 2em;
margin: 0;
font-size: var(--body-font-size-xs);
}

header nav .nav-sections .default-content-wrapper > ul > li {
flex: 0 1 auto;
position: relative;
font-weight: 500;
}

header nav .nav-sections .default-content-wrapper > ul > li > ul {
Expand Down
23 changes: 12 additions & 11 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
}

body {
font-size: var(--body-font-size-m);
margin: 0;
font-family: var(--body-font-family);
line-height: 1.6;
font-size: var(--body-font-size-m);
line-height: 1.5;
color: var(--text-color);
background-color: var(--background-color);
display: none;
Expand All @@ -95,8 +95,8 @@ h4,
h5,
h6 {
font-family: var(--heading-font-family);
font-weight: 600;
line-height: 1.25;
font-weight: 700;
line-height: 1.3;
margin-top: 1em;
margin-bottom: 0.5em;
scroll-margin: calc(var(--nav-height) + 1em);
Expand All @@ -119,11 +119,6 @@ blockquote {
margin-bottom: 1em;
}

code,
pre {
font-size: var(--body-font-size-s);
}

code {
padding: 0.125em;
}
Expand All @@ -140,6 +135,13 @@ main pre {
white-space: pre;
}

input,
textarea,
select,
button {
font: inherit;
}

/* links */
a:any-link {
color: var(--link-color);
Expand All @@ -154,15 +156,14 @@ a:hover {
/* buttons */
a.button:any-link,
button {
font-family: var(--body-font-family);
display: inline-block;
box-sizing: border-box;
text-decoration: none;
border: 2px solid transparent;
padding: 5px 30px;
text-align: center;
font-weight: 500;
font-style: normal;
font-weight: 600;
cursor: pointer;
color: var(--background-color);
background-color: var(--link-color);
Expand Down

0 comments on commit 7a260c0

Please sign in to comment.