Skip to content

Commit fed80ee

Browse files
author
v8tenko
committed
fix!: font from variable
1 parent ec1a536 commit fed80ee

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"prepublishOnly": "npm run lint && npm run test && npm run build"
3232
},
3333
"dependencies": {
34-
"@types/sanitize-html": "2.6.2",
3534
"chalk": "4.1.2",
3635
"get-root-node-polyfill": "1.0.0",
3736
"github-slugger": "1.4.0",
@@ -62,6 +61,7 @@
6261
"@types/markdown-it-attrs": "4.1.0",
6362
"@types/markdownlint": "0.18.0",
6463
"@types/node": "17.0.10",
64+
"@types/sanitize-html": "2.6.2",
6565
"@yandex-cloud/eslint-config": "^1.1.0",
6666
"@yandex-cloud/prettier-config": "^1.0.0",
6767
"@yandex-cloud/tsconfig": "^1.0.0",

src/scss/_common.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import 'variables';
22

33
.yfm {
4-
font-family: 'YS Text', 'Segoe UI', Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
4+
font-family: var(--yc-font-family-sans);
55
font-size: 15px;
66
line-height: 20px;
77
word-wrap: break-word;
@@ -123,7 +123,7 @@
123123
code,
124124
kbd,
125125
pre {
126-
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Ubuntu Mono', 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', 'Courier', monospace;
126+
font-family: var(--yc-font-family-sans);
127127
font-size: 1em;
128128
font-feature-settings: normal;
129129
}
@@ -352,4 +352,6 @@
352352
--yfm-color-hljs-addition: #397300;
353353
--yfm-color-hljs-meta: #1f7199;
354354
--yfm-color-hljs-meta-string: #4d99bf;
355+
--yfm-font-family-monospace: "Menlo", "Monaco", "Consolas", "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", "Courier", monospace;
356+
--yfm-font-family-sans: 'Segoe UI', Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
355357
}

0 commit comments

Comments
 (0)