Skip to content

Commit

Permalink
Add Degular font (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalFish authored Nov 2, 2023
1 parent 9c2e835 commit e5dfc5d
Show file tree
Hide file tree
Showing 31 changed files with 14 additions and 6 deletions.
Binary file added docs/assets/fonts/degular/Degular-Black.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Black.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Bold.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Bold.woff2
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-BoldItalic.woff
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Italic.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Italic.woff2
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Light.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Medium.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Medium.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Regular.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Semibold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Thin.woff
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-Thin.woff2
Binary file not shown.
Binary file added docs/assets/fonts/degular/Degular-ThinItalic.woff
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions docs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,39 @@
.md-typeset h1 {
color: var(--md-default-fg-color);
font-size: 2rem;
font-family: "degular";
font-family: "Degular", sans-serif;
line-height: 2.5rem;
font-weight: 600;
letter-spacing: 0;
margin-bottom: 0.5em;
}
.md-typeset h2 {
font-size: 1.5rem;
font-family: "degular";
font-family: "Degular", sans-serif;
line-height: 2rem;
font-weight: 600;
letter-spacing: 0;
}
.md-typeset h3 {
font-size: 1.2rem;
font-family: "degular";
font-family: "Degular", sans-serif;
line-height: 1.5rem;
font-weight: 600;
letter-spacing: 0;
}
@media (min-width: 768px) {
.md-typeset h1 {
font-family: "degular";
font-family: "Degular", sans-serif;
font-size: 3.2rem;
line-height: 4rem;
}
.md-typeset h2 {
font-family: "degular";
font-family: "Degular", sans-serif;
font-size: 2rem;
line-height: 2.5rem;
}
.md-typeset h3 {
font-family: "degular";
font-family: "Degular", sans-serif;
font-size: 1.5rem;
line-height: 2rem;
}
Expand Down
7 changes: 7 additions & 0 deletions docs/assets/stylesheets/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@font-face {
font-family: Degular;
src: url("../fonts/degular/Degular-Semibold.woff2") format("woff2");
src: url("../fonts/degular/Degular-Semibold.woff") format("woff");
font-weight: 600;
font-style: normal;
}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ theme:
icon:
repo: fontawesome/brands/github
extra_css:
- assets/stylesheets/fonts.css
- assets/stylesheets/extra.css

# Set in docs/assets/overrides/partials/copyright.html
Expand Down

0 comments on commit e5dfc5d

Please sign in to comment.