Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
8c95968f
T
Tabler
项目概览
Dashboards
/
Tabler
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8c95968f
编写于
1月 29, 2022
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
autoloading webfonts #1004
上级
1d6368a1
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
68 addition
and
13 deletion
+68
-13
gulpfile.js
gulpfile.js
+11
-1
src/fonts/inter-v7-latin-ext_latin-300.woff
src/fonts/inter-v7-latin-ext_latin-300.woff
+0
-0
src/fonts/inter-v7-latin-ext_latin-300.woff2
src/fonts/inter-v7-latin-ext_latin-300.woff2
+0
-0
src/fonts/inter-v7-latin-ext_latin-500.woff
src/fonts/inter-v7-latin-ext_latin-500.woff
+0
-0
src/fonts/inter-v7-latin-ext_latin-500.woff2
src/fonts/inter-v7-latin-ext_latin-500.woff2
+0
-0
src/fonts/inter-v7-latin-ext_latin-600.woff
src/fonts/inter-v7-latin-ext_latin-600.woff
+0
-0
src/fonts/inter-v7-latin-ext_latin-600.woff2
src/fonts/inter-v7-latin-ext_latin-600.woff2
+0
-0
src/fonts/inter-v7-latin-ext_latin-700.woff
src/fonts/inter-v7-latin-ext_latin-700.woff
+0
-0
src/fonts/inter-v7-latin-ext_latin-700.woff2
src/fonts/inter-v7-latin-ext_latin-700.woff2
+0
-0
src/fonts/inter-v7-latin-ext_latin-regular.woff
src/fonts/inter-v7-latin-ext_latin-regular.woff
+0
-0
src/fonts/inter-v7-latin-ext_latin-regular.woff2
src/fonts/inter-v7-latin-ext_latin-regular.woff2
+0
-0
src/scss/_variables.scss
src/scss/_variables.scss
+6
-6
src/scss/fonts/_webfonts.scss
src/scss/fonts/_webfonts.scss
+51
-6
未找到文件。
gulpfile.js
浏览文件 @
8c95968f
...
...
@@ -439,6 +439,7 @@ gulp.task('browser-sync', () => {
'
/dist/css
'
:
`
${
distDir
}
/css`
,
'
/dist/js
'
:
`
${
distDir
}
/js`
,
'
/dist/img
'
:
`
${
srcDir
}
/img`
,
'
/dist/fonts
'
:
`
${
srcDir
}
/fonts`
,
'
/static
'
:
`
${
srcDir
}
/static`
,
},
},
...
...
@@ -498,6 +499,15 @@ gulp.task('copy-static', () => {
.
pipe
(
gulp
.
dest
(
`
${
demoDir
}
/static`
))
})
/**
* Copy fonts
*/
gulp
.
task
(
'
copy-fonts
'
,
()
=>
{
return
gulp
.
src
(
`
${
srcDir
}
/fonts/**/*`
)
.
pipe
(
gulp
.
dest
(
`
${
distDir
}
/fonts`
))
})
/**
* Copy Tabler dist files to demo directory
*/
...
...
@@ -520,6 +530,6 @@ gulp.task('clean', gulp.series('clean-dirs', 'clean-jekyll'))
gulp
.
task
(
'
start
'
,
gulp
.
series
(
'
clean
'
,
'
sass
'
,
'
js
'
,
'
js-demo
'
,
'
mjs
'
,
'
build-jekyll
'
,
gulp
.
parallel
(
'
watch-jekyll
'
,
'
watch
'
,
'
browser-sync
'
)))
gulp
.
task
(
'
build-core
'
,
gulp
.
series
(
'
build-on
'
,
'
clean
'
,
'
sass
'
,
'
css-minify
'
,
'
js
'
,
'
js-demo
'
,
'
mjs
'
,
'
copy-images
'
,
'
copy-libs
'
,
'
add-banner
'
))
gulp
.
task
(
'
build-core
'
,
gulp
.
series
(
'
build-on
'
,
'
clean
'
,
'
sass
'
,
'
css-minify
'
,
'
js
'
,
'
js-demo
'
,
'
mjs
'
,
'
copy-images
'
,
'
copy-
fonts
'
,
'
copy-
libs
'
,
'
add-banner
'
))
gulp
.
task
(
'
build-demo
'
,
gulp
.
series
(
'
build-on
'
,
'
build-jekyll
'
,
'
copy-static
'
,
'
copy-dist
'
,
'
build-cleanup
'
,
'
build-purgecss
'
/*, 'build-critical'*/
))
gulp
.
task
(
'
build
'
,
gulp
.
series
(
'
build-core
'
,
'
build-demo
'
))
src/fonts/inter-v7-latin-ext_latin-300.woff
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-300.woff2
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-500.woff
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-500.woff2
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-600.woff
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-600.woff2
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-700.woff
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-700.woff2
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-regular.woff
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/fonts/inter-v7-latin-ext_latin-regular.woff2
0 → 100644
浏览文件 @
8c95968f
文件已添加
src/scss/_variables.scss
浏览文件 @
8c95968f
...
...
@@ -13,15 +13,15 @@ $enable-rfs: false !default;
$assets-base
:
".."
!
default
;
// FONTS
$google-font
:
'Inter'
!
default
;
$google-font-monospaced
:
false
!
default
;
$font-google
:
null
!
default
;
$font-google-monospaced
:
null
!
default
;
$font-local
:
'Inter'
!
default
;
$font-icons
:
()
!
default
;
$font-family-sans-serif
:
$google-font
,
-
apple-system
,
BlinkMacSystemFont
,
San
Francisco
,
Segoe
UI
,
Roboto
,
Helvetica
Neue
,
sans-serif
!
default
;
$font-family-monospace
:
$google-font-monospaced
,
Menlo
,
Monaco
,
Consolas
,
Liberation
Mono
,
Courier
New
,
monospace
;
$font-family-sans-serif
:
unquote
(
"
#{
if
(
$font-local
,
"
#{
$font-local
}
, "
,
''
)
}
#{
if
(
$font-google
,
"
#{
$font-google
}
, "
,
''
)
}
"
)
-
apple-system
,
BlinkMacSystemFont
,
San
Francisco
,
Segoe
UI
,
Roboto
,
Helvetica
Neue
,
sans-serif
!
default
;
$font-family-monospace
:
unquote
(
"
#{
if
(
$font-google-monospaced
,
"
#{
$font-google-monospaced
}
, "
,
''
)
}
"
)
,
Menlo
,
Monaco
,
Consolas
,
Liberation
Mono
,
Courier
New
,
monospace
;
$font-family-serif
:
"Georgia"
,
"Times New Roman"
,
times
,
serif
!
default
;
// EXTERNAL FONTS
$icon-fonts
:
()
!
default
;
//Icons
$icon-stroke-width
:
1
.5
!
default
;
...
...
src/scss/fonts/_webfonts.scss
浏览文件 @
8c95968f
@if
$
google-font
{
$google-font-url
:
"https://fonts.googleapis.com/css2?family="
+
str-replace
(
$
google-font
,
" "
,
"+"
)
+
":wght@300;400;500;600;700&display=swap"
!
default
;
@if
$
font-google
{
$google-font-url
:
"https://fonts.googleapis.com/css2?family="
+
str-replace
(
$
font-google
,
" "
,
"+"
)
+
":wght@300;400;500;600;700&display=swap"
!
default
;
@import
url($google-font-url)
;
}
@else
if
$font-local
{
@font-face
{
font-family
:
$font-local
;
font-style
:
normal
;
font-weight
:
300
;
src
:
local
(
''
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-300.woff2')
format
(
'woff2'
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-300.woff')
format
(
'woff'
);
}
@font-face
{
font-family
:
$font-local
;
font-style
:
normal
;
font-weight
:
400
;
src
:
local
(
''
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-regular.woff2')
format
(
'woff2'
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-regular.woff')
format
(
'woff'
);
}
@font-face
{
font-family
:
$font-local
;
font-style
:
normal
;
font-weight
:
500
;
src
:
local
(
''
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-500.woff2')
format
(
'woff2'
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-500.woff')
format
(
'woff'
);
}
@font-face
{
font-family
:
$font-local
;
font-style
:
normal
;
font-weight
:
600
;
src
:
local
(
''
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-600.woff2')
format
(
'woff2'
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-600.woff')
format
(
'woff'
);
}
@font-face
{
font-family
:
$font-local
;
font-style
:
normal
;
font-weight
:
700
;
src
:
local
(
''
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-700.woff2')
format
(
'woff2'
)
,
url('
#{
$assets-base
}
/fonts/inter-v7-latin-ext_latin-700.woff')
format
(
'woff'
);
}
}
@if
$
google-font
-monospaced
{
$google-font-monospaced-url
:
"https://fonts.googleapis.com/css2?family="
+
str-replace
(
$
google-font
-monospaced
,
" "
,
"+"
)
+
":wght@300;400;500;600;700&display=swap"
!
default
;
@if
$
font-google
-monospaced
{
$google-font-monospaced-url
:
"https://fonts.googleapis.com/css2?family="
+
str-replace
(
$
font-google
-monospaced
,
" "
,
"+"
)
+
":wght@300;400;500;600;700&display=swap"
!
default
;
@import
url($google-font-monospaced-url)
;
}
@if
$
icon-font
s
{
@each
$icon-font
in
$
icon-font
s
{
@if
$
font-icon
s
{
@each
$icon-font
in
$
font-icon
s
{
@import
url($icon-font)
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录