Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Update Inter font
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Feb 6, 2019
1 parent 8d86361 commit 32409a7
Show file tree
Hide file tree
Showing 60 changed files with 80 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This theme is pretty basic and covers all of the essentials. All you have to do
## Features

- **dark/light mode**, depending on your preferences (dark is default, but you can change it)
- great reading experience thanks to [**Inter UI font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)
- great reading experience thanks to [**Inter font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)
- nice code highlighting thanks to [**PrismJS**](https://prismjs.com)
- fully responsive

Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/greater-icon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" class="greater-icon" width="44" height="44" viewBox="0 0 44 44">
<polyline fill="none" stroke="#000" stroke-width="2" points="15 8 29.729 22.382 15 35.367"/>
</svg>
2 changes: 1 addition & 1 deletion layouts/partials/logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ if $.Site.Params.Logo.path }}
<img src="{{ $.Site.Params.Logo.path }}" alt="{{ $.Site.Params.Logo.alt }}" />
{{ else }}
<span class="logo__mark">></span>
<span class="logo__mark">{{ partial "greater-icon.html" . }}</span>
<span class="logo__text">{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span>
<span class="logo__cursor"></span>
{{ end }}
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
{{ end }}
{{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
<ul class="menu__sub-inner">
<li class="menu__sub-inner-more-trigger">{{ $.Site.Params.MenuMore | default "Show more" }} <span class="menu__sub-inner-more-trigger-icon">></span></li>
<li class="menu__sub-inner-more-trigger">
{{ $.Site.Params.MenuMore | default "Show more" }}
<span class="menu__sub-inner-more-trigger-icon">{{ partial "greater-icon.html" . }}</span>
</li>

<ul class="menu__sub-inner-more hidden">
{{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }}
Expand Down
44 changes: 44 additions & 0 deletions source/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: url("../fonts/Inter-Regular.woff2") format("woff2"),
url("../fonts/Inter-Regular.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
src: url("../fonts/Inter-Italic.woff2") format("woff2"),
url("../fonts/Inter-Italic.woff") format("woff");
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
src: url("../fonts/Inter-Medium.woff2") format("woff2"),
url("../fonts/Inter-Medium.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 600;
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2"),
url("../fonts/Inter-MediumItalic.woff") format("woff");
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 800;
src: url("../fonts/Inter-Bold.woff2") format("woff2"),
url("../fonts/Inter-Bold.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 800;
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2"),
url("../fonts/Inter-BoldItalic.woff") format("woff");
}
44 changes: 0 additions & 44 deletions source/css/inter-ui.css

This file was deleted.

4 changes: 4 additions & 0 deletions source/css/logo.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
}

&__mark {
display: inline-flex;
align-items: center;
margin-right: 5px;

@mixin greater-icon 8px;
}

&__text {
Expand Down
3 changes: 2 additions & 1 deletion source/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ html {
body {
margin: 0;
padding: 0;
font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 1rem;
font-weight: 600;
line-height: 1.54;
Expand Down Expand Up @@ -140,6 +140,7 @@ code {
margin: 0 2px;
border-radius: 5px;
font-size: .9rem;
font-weight: normal;

.dark-theme & {
background: var(--dark-background-secondary);
Expand Down
8 changes: 7 additions & 1 deletion source/css/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,19 @@
left: 0;

&-trigger {
display: inline-flex;
align-items: center;
user-select: none;
cursor: pointer;

&-icon {
display: inline-block;
display: inline-flex;
align-items: center;
margin-left: 3px;
transform: rotate(90deg);
line-height: 1;

@mixin greater-icon 5px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/css/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'variables';
@import 'inter-ui';
@import 'fonts';
@import 'buttons';

@import 'header';
Expand Down
12 changes: 12 additions & 0 deletions source/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
@custom-media --phone (width < 684px);
@custom-media --tablet (width < 900px);

@define-mixin greater-icon $stroke-width: 3px, $width: .95rem, $height: 100% {
.greater-icon {
width: $width;
height: $height;

polyline {
stroke: currentColor;
stroke-width: $stroke-width;
}
}
}

/* HOW TO USE */

/*@media (--phone) {*/
Expand Down
Binary file added source/fonts/Inter-Bold.woff
Binary file not shown.
Binary file added source/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file added source/fonts/Inter-BoldItalic.woff
Binary file not shown.
Binary file added source/fonts/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added source/fonts/Inter-Italic.woff
Binary file not shown.
Binary file added source/fonts/Inter-Italic.woff2
Binary file not shown.
Binary file added source/fonts/Inter-Medium.woff
Binary file not shown.
Binary file added source/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file added source/fonts/Inter-MediumItalic.woff
Binary file not shown.
Binary file added source/fonts/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added source/fonts/Inter-Regular.woff
Binary file not shown.
Binary file added source/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Bold.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Bold.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-BoldItalic.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-BoldItalic.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Italic.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Italic.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Medium.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Medium.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-MediumItalic.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-MediumItalic.woff2
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Regular.woff
Binary file not shown.
Binary file removed source/fonts/Inter-UI-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/assets/48dfecfe37de0ef8f0e2c2d2e6992e9c.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/assets/76677d9e1ccc0e1f33fa6b044a743768.woff2
Binary file not shown.
Binary file not shown.
Binary file removed static/assets/9d05a4aa5504157c765f62d534e78889.woff2
Binary file not shown.
Binary file removed static/assets/a616c9fa6fe80626bac7991f8502295a.woff2
Binary file not shown.
Binary file removed static/assets/a6f5c416c63aad400a2df45ae2154c1e.woff2
Binary file not shown.
Binary file removed static/assets/a9eddc92c84c5f78fba1cb7d7833d31c.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/assets/b6f1695769d6d6b5f20d1c6492914189.woff2
Binary file not shown.
Binary file removed static/assets/bcf654c7bea165e9dae257206c5521ad.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/assets/dbe4ec1d26d41331c91550939a7fd27f.woff
Binary file not shown.
Binary file removed static/assets/e0012ba74a933d326e8a466003fc3507.woff2
Binary file not shown.
Binary file removed static/assets/e2158f600a4b0175b73dfefb0d2fe8f8.woff
Binary file not shown.
Binary file removed static/assets/ecf7c639683dfcb4868861e0c613c455.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion static/assets/style.css

Large diffs are not rendered by default.

0 comments on commit 32409a7

Please sign in to comment.