Skip to content

Commit 79b5c92

Browse files
committed
feat(adev): 内联 css 和 fonts 文件
(cherry picked from commit 5a58337)
1 parent 35de6f6 commit 79b5c92

34 files changed

+146
-27
lines changed

adev/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ TEST_FILES = APPLICATION_FILES + [
3434
)
3535

3636
APPLICATION_ASSETS = [
37+
"//adev/src/assets/css",
38+
"//adev/src/assets/fonts",
3739
"//adev/src/assets/images",
3840
"//adev/src/assets/previews",
3941
"//adev/src/assets:tutorials",

adev/src/assets/css/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
2+
3+
exports_files(
4+
glob(["*"]),
5+
)
6+
7+
copy_to_bin(
8+
name = "css",
9+
srcs = glob(["*"]),
10+
visibility = [
11+
"//visibility:public",
12+
],
13+
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@font-face {
2+
font-family: 'Be Vietnam Pro';
3+
font-style: italic;
4+
font-weight: 400;
5+
font-display: swap;
6+
src: url(../fonts/QdVNSTAyLFyeg_IDWvOJmVES_HwyBX8.ttf) format('truetype');
7+
}
8+
@font-face {
9+
font-family: 'Be Vietnam Pro';
10+
font-style: italic;
11+
font-weight: 700;
12+
font-display: swap;
13+
src: url(../fonts/QdVKSTAyLFyeg_IDWvOJmVES_HwyPcM3Rbg.ttf) format('truetype');
14+
}
15+
@font-face {
16+
font-family: 'Be Vietnam Pro';
17+
font-style: normal;
18+
font-weight: 400;
19+
font-display: swap;
20+
src: url(../fonts/QdVPSTAyLFyeg_IDWvOJmVES_Eww.ttf) format('truetype');
21+
}
22+
@font-face {
23+
font-family: 'Be Vietnam Pro';
24+
font-style: normal;
25+
font-weight: 700;
26+
font-display: swap;
27+
src: url(../fonts/QdVMSTAyLFyeg_IDWvOJmVES_HSMIF8y.ttf) format('truetype');
28+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@font-face {
2+
font-family: 'Material Symbols Outlined';
3+
font-style: normal;
4+
font-weight: 400;
5+
src: url(../fonts/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOem.ttf) format('truetype');
6+
}
7+
8+
.material-symbols-outlined {
9+
font-family: 'Material Symbols Outlined';
10+
font-weight: normal;
11+
font-style: normal;
12+
font-size: 24px;
13+
line-height: 1;
14+
letter-spacing: normal;
15+
text-transform: none;
16+
display: inline-block;
17+
white-space: nowrap;
18+
word-wrap: normal;
19+
direction: ltr;
20+
}

adev/src/assets/css/mono.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
@font-face {
2+
font-family: 'DM Mono';
3+
font-style: italic;
4+
font-weight: 400;
5+
font-display: swap;
6+
src: url(../fonts/aFTW7PB1QTsUX8KYth-QAQ.ttf) format('truetype');
7+
}
8+
@font-face {
9+
font-family: 'DM Mono';
10+
font-style: normal;
11+
font-weight: 400;
12+
font-display: swap;
13+
src: url(../fonts/aFTU7PB1QTsUX8KYhh0.ttf) format('truetype');
14+
}
15+
@font-face {
16+
font-family: 'Inter';
17+
font-style: normal;
18+
font-weight: 400;
19+
font-display: swap;
20+
src: url(../fonts/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfMZg.ttf) format('truetype');
21+
}
22+
@font-face {
23+
font-family: 'Inter';
24+
font-style: normal;
25+
font-weight: 500;
26+
font-display: swap;
27+
src: url(../fonts/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fMZg.ttf) format('truetype');
28+
}
29+
@font-face {
30+
font-family: 'Inter';
31+
font-style: normal;
32+
font-weight: 600;
33+
font-display: swap;
34+
src: url(../fonts/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYMZg.ttf) format('truetype');
35+
}
36+
@font-face {
37+
font-family: 'Inter Tight';
38+
font-style: normal;
39+
font-weight: 500;
40+
font-display: swap;
41+
src: url(../fonts/NGSnv5HMAFg6IuGlBNMjxJEL2VmU3NS7Z2mjPQ-qXA.ttf) format('truetype');
42+
}
43+
@font-face {
44+
font-family: 'Inter Tight';
45+
font-style: normal;
46+
font-weight: 600;
47+
font-display: swap;
48+
src: url(../fonts/NGSnv5HMAFg6IuGlBNMjxJEL2VmU3NS7Z2mj0QiqXA.ttf) format('truetype');
49+
}

adev/src/assets/fonts/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
2+
3+
exports_files(
4+
glob(["*"]),
5+
)
6+
7+
copy_to_bin(
8+
name = "fonts",
9+
srcs = glob(["*"]),
10+
visibility = [
11+
"//visibility:public",
12+
],
13+
)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)