-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
37 lines (34 loc) · 1.42 KB
/
_mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@use "sass:map";
@use "./tokens";
@mixin export {
// ここのみ特殊例として許可する
/* stylelint-disable no-invalid-position-at-import-rule */
@import url("https://cdn.jsdelivr.net/npm/[email protected]/dist/css/yakuhanjp-noto.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Open+Sans:wght@400;700&display=swap");
/* stylelint-enable no-invalid-position-at-import-rule */
:root {
// フォールバックを目的に指定するfont familyの値はFlavorで指定しているためlintの対象から除外する
/* stylelint-disable font-family-no-missing-generic-family-keyword, font-family-no-duplicate-names */
font-family: #{map.get(
map.get(map.get(tokens.$tokens, typography), font-family),
sans-latin
)},
#{map.get(
map.get(map.get(tokens.$tokens, typography), font-family),
sans-japanese
)},
#{map.get(map.get(map.get(tokens.$tokens, typography), font-family), ui)},
sans-serif;
/* stylelint-enable font-family-no-missing-generic-family-keyword, font-family-no-duplicate-names */
}
}
@mixin icon-font($base-url: "@pepabo-inhouse/icon/dist") {
@font-face {
font-weight: 400;
font-family: "Inhouse Icons";
font-style: normal;
src:
url($base-url + "/inhouse-icons.woff2") format("woff2"),
url($base-url + "/inhouse-icons.woff") format("woff");
}
}