mirror of
https://github.com/primer/css.git
synced 2024-12-04 14:59:16 +03:00
Move @font-face declarations from vars to type
This commit is contained in:
parent
d0c569c53e
commit
13c49b6c52
@ -1,30 +1,5 @@
|
||||
$marketing-font-path: "/fonts/" !default;
|
||||
|
||||
// Type
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-normal;
|
||||
src: local("Inter"), local("Inter-Regular"), url("#{$marketing-font-path}Inter-Regular.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-semibold;
|
||||
src: local("Inter Medium"), local("Inter-Medium"), url("#{$marketing-font-path}Inter-Medium.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-bold;
|
||||
src: local("Inter Bold"), local("Inter-Bold"), url("#{$marketing-font-path}Inter-Bold.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
$font-mktg: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
|
||||
|
||||
// Builds upon @primer/css/support/variables/typography.scss
|
||||
|
@ -1,5 +1,29 @@
|
||||
// Headings
|
||||
// Type
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-normal;
|
||||
src: local("Inter"), local("Inter-Regular"), url("#{$marketing-font-path}Inter-Regular.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-semibold;
|
||||
src: local("Inter Medium"), local("Inter-Medium"), url("#{$marketing-font-path}Inter-Medium.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
font-style: normal;
|
||||
font-weight: $font-weight-bold;
|
||||
src: local("Inter Bold"), local("Inter-Bold"), url("#{$marketing-font-path}Inter-Bold.woff") format("woff");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// Headings
|
||||
.h000-mktg,
|
||||
.h00-mktg,
|
||||
.h0-mktg,
|
||||
|
Loading…
Reference in New Issue
Block a user