Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Binary file added app/assets/fonts/inter/inter-latin-ext.woff2
Binary file not shown.
Binary file added app/assets/fonts/inter/inter-latin.woff2
Binary file not shown.
18 changes: 18 additions & 0 deletions app/assets/stylesheets/vendor/inter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* latin-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url("/inter/inter-latin-ext.woff2") format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url("/inter/inter-latin.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
2 changes: 1 addition & 1 deletion app/views/layouts/display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<%# Be sure to add your own custom favicons %>
<%= render "shared/favicons" %>

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap">
<%= stylesheet_link_tag "vendor/inter", media: "all" %>

<%= yield :head %>
</head>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/errors.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<%# Be sure to add your own custom favicons %>
<%= render "shared/favicons" %>

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap">
<%= stylesheet_link_tag "vendor/inter", media: "all" %>

<%= yield :head %>
</head>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/minimal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<%# Be sure to add your own custom favicons %>
<%= render "shared/favicons" %>

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap">
<%= stylesheet_link_tag "vendor/inter", media: "all" %>

<%= yield :head %>
</head>
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
Rails.application.configure do
config.content_security_policy do |policy|
policy.default_src :self
policy.font_src :self, "https://fonts.gstatic.com"
policy.font_src :self
policy.img_src :self, :data
policy.object_src :none
policy.script_src :self
policy.style_src :self, :unsafe_inline, "https://fonts.googleapis.com"
policy.style_src :self, :unsafe_inline
policy.connect_src :self
policy.frame_src :self
policy.base_uri :self
Expand Down
Loading