Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troca da fonte Roboto pela fonte Inter #322

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions static/css/application.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@import url('https://brasil.io/static/css/inter/inter.css');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opa, acho que aqui a URL poderia ser relativa ao endereço do CSS, não?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No caso, um /inter/inter.css apenas?

html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; }
}

html {
height: 100%;
box-sizing: border-box;
Expand All @@ -13,8 +19,8 @@ body {
position: relative;
margin: 0;
min-height: 100%;
font-family: Roboto, sans-serif;
font-weight: 300;
font-family: 'Inter var', sans-serif;
font-weight: 400;
}

.divider-new:before {
Expand Down Expand Up @@ -69,7 +75,7 @@ body {

.card .card-title {
font-size: 1.5em;
font-weight: 300;
font-weight: 700;
}

.card .card-content.card-body {
Expand Down
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions static/css/inter/inter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* -------------------------------------------------------
Variable font.
Usage:

html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; }
}
*/
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
font-style: normal;
font-named-instance: 'Regular';
font-display: swap;
src: url("font-files/Inter-roman.var.woff2") format("woff2");
}
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
font-style: italic;
font-named-instance: 'Italic';
font-display: swap;
src: url("font-files/Inter-italic.var.woff2") format("woff2");
}
2 changes: 1 addition & 1 deletion static/css/materialize.min.css

Large diffs are not rendered by default.