mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-07 06:56:18 +08:00
Merge pull request #5399 from aignatov-bio/ai-sci-8170-switch-font-to-inter
Switch to inter font [SCI-8170]
This commit is contained in:
commit
19956eb145
12 changed files with 5 additions and 17 deletions
|
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
|
||||
body {
|
||||
font-family: Lato, "Open Sans", Arial, Helvetica, sans-serif;
|
||||
font-family: Inter, "Open Sans", Arial, Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@
|
|||
|
||||
.sketch-name {
|
||||
color: $brand-primary;
|
||||
font-family: Lato;
|
||||
font-size: 16px;
|
||||
line-height: 18px;
|
||||
margin: 10px auto;
|
||||
|
|
|
|||
|
|
@ -556,7 +556,6 @@ li.module-hover {
|
|||
width: 568px;
|
||||
height: 30px;
|
||||
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
// scss-lint:disable ImportantRule
|
||||
|
||||
$font-family-lato: Lato, "Open Sans", Arial, Helvetica, sans-serif;
|
||||
$font-family-inter: Inter;
|
||||
$font-family-sans-serif: "Open Sans", Arial, Helvetica, sans-serif;
|
||||
$font-family-serif: Georgia, "Times New Roman", Times, serif;
|
||||
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
$font-family-base: $font-family-lato;
|
||||
$font-family-base: $font-family-inter;
|
||||
$font-family-icons: "Font Awesome 5 Free";
|
||||
$font-size-base: 16px;
|
||||
$headings-font-weight: bold;
|
||||
|
|
|
|||
|
|
@ -154,7 +154,6 @@
|
|||
bottom: 17px;
|
||||
width: 356px;
|
||||
height: 15px;
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 10px;
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
require('typeface-lato');
|
||||
2
app/javascript/packs/tiny_mce.js
vendored
2
app/javascript/packs/tiny_mce.js
vendored
|
|
@ -40,7 +40,7 @@ import contentCss from '!!raw-loader!tinymce/skins/content/default/content.min.c
|
|||
import contentUiCss from '!!raw-loader!tinymce/skins/ui/tinymce-5/content.min.css';
|
||||
|
||||
const contentPStyle = `p { margin: 0; padding: 0;}`;
|
||||
const contentBodyStyle = `body { font-family: Lato, "Open Sans", Arial, Helvetica, sans-serif }`;
|
||||
const contentBodyStyle = `body { font-family: Inter, "Open Sans", Arial, Helvetica, sans-serif }`;
|
||||
const contentStyle = [contentCss, contentUiCss, contentBodyStyle, contentPStyle].map((s) => s.toString()).join('\n');
|
||||
|
||||
// Optional pre-initialization method
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
<%= favicon_link_tag "favicon-16.png", type: "image/png", size: "16x16" %>
|
||||
<%= favicon_link_tag "favicon-32.png", type: "image/png", size: "32x32" %>
|
||||
<%= favicon_link_tag "favicon-48.png", type: "image/png", size: "48x48" %>
|
||||
<%= stylesheet_link_tag 'fonts', id: 'font-css-pack' %>
|
||||
<%= stylesheet_link_tag 'fontawesome' %>
|
||||
|
||||
<%= stylesheet_link_tag 'prism' %>
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ class Constants
|
|||
COLOR_BLACK = '#231f20'.freeze # $color-black
|
||||
|
||||
# Fonts
|
||||
FONT_FAMILY_BASE = 'Lato,"Open Sans",Arial,Helvetica,sans-serif;'.freeze # $font-family-base
|
||||
FONT_FAMILY_BASE = 'Inter,"Open Sans",Arial,Helvetica,sans-serif;'.freeze # $font-family-base
|
||||
|
||||
#=============================================================================
|
||||
# External URLs
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ const mode = process.env.NODE_ENV === 'development' ? 'development' : 'productio
|
|||
const entryList = {
|
||||
application_pack: './app/javascript/packs/application.js',
|
||||
emoji_button: './app/javascript/packs/emoji_button.js',
|
||||
fonts: './app/javascript/packs/fonts.js',
|
||||
fontawesome: './app/javascript/packs/fontawesome.scss',
|
||||
prism: './app/javascript/packs/prism.js',
|
||||
tiny_mce: './app/javascript/packs/tiny_mce.js',
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@
|
|||
"tui-color-picker": "^2.2.0",
|
||||
"tui-image-editor": "github:biosistemika/tui.image-editor#3_15_2_updated",
|
||||
"twemoji": "^12.1.4",
|
||||
"typeface-lato": "^0.0.75",
|
||||
"vue": "^2.6.11",
|
||||
"vue-loader": "^15.9.1",
|
||||
"vue-template-compiler": "^2.6.12",
|
||||
|
|
|
|||
|
|
@ -6821,11 +6821,6 @@ typed-array-length@^1.0.4:
|
|||
for-each "^0.3.3"
|
||||
is-typed-array "^1.1.9"
|
||||
|
||||
typeface-lato@^0.0.75:
|
||||
version "0.0.75"
|
||||
resolved "https://registry.yarnpkg.com/typeface-lato/-/typeface-lato-0.0.75.tgz#8aa11c5611dc38416837c089b265a2abd1f7dd31"
|
||||
integrity sha512-iA5uJD4PSTyIE4BDiSOexQeXkDkiJuX4Hu3wh3saJ06EB2TvJayab1Lbbmqq2je/LQv7KCQZHZmC0k4hedd8sw==
|
||||
|
||||
typescript-compiler@^1.4.1-2:
|
||||
version "1.4.1-2"
|
||||
resolved "https://registry.yarnpkg.com/typescript-compiler/-/typescript-compiler-1.4.1-2.tgz#ba4f7db22d91534a1929d90009dce161eb72fd3f"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue