This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new 1a1d6e4 Fix broken fonts (#49)
1a1d6e4 is described below
commit 1a1d6e4a2bf669fcc0b66e39898901474486ab5a
Author: Luc Perkins <[email protected]>
AuthorDate: Mon Jul 29 20:03:47 2019 -0700
Fix broken fonts (#49)
* Unbreak site fonts
* Import font from .ttl file
Signed-off-by: lucperkins <[email protected]>
---
docs/.vuepress/theme/components/Footer.vue | 4 ++--
docs/.vuepress/theme/components/NavLinks.vue | 2 +-
docs/.vuepress/theme/components/Sidebar.vue | 2 +-
docs/.vuepress/theme/fonts/Lato.ttf | Bin 0 -> 36176 bytes
docs/.vuepress/theme/layouts/Home.vue | 4 ++--
docs/.vuepress/theme/styles/config.styl | 6 ++++++
6 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/docs/.vuepress/theme/components/Footer.vue
b/docs/.vuepress/theme/components/Footer.vue
index 0c6e9c6..ebfef56 100755
--- a/docs/.vuepress/theme/components/Footer.vue
+++ b/docs/.vuepress/theme/components/Footer.vue
@@ -39,7 +39,7 @@ export default {};
.footer-container dt{
font-size: 16px;
font-weight: bold;
- font-family: Avenir-Medium;
+ font-family: Lato, sans-serif;
}
.footer-container dd{
margin: 0;
@@ -61,7 +61,7 @@ export default {};
min-height: 60px;
line-height: 20px;
text-align: center;
- font-family: Avenir-Medium;
+ font-family: Lato, sans-serif;
font-size: 12px;
color: #999;
display: flex;
diff --git a/docs/.vuepress/theme/components/NavLinks.vue
b/docs/.vuepress/theme/components/NavLinks.vue
index 04ffd6e..ababe6e 100755
--- a/docs/.vuepress/theme/components/NavLinks.vue
+++ b/docs/.vuepress/theme/components/NavLinks.vue
@@ -128,7 +128,7 @@ export default {
opacity 1
.nav-item
color #fff
- font-family Avenir-Medium
+ font-family Lato, sans-serif
position relative
display inline-block
margin-left 1.5rem
diff --git a/docs/.vuepress/theme/components/Sidebar.vue
b/docs/.vuepress/theme/components/Sidebar.vue
index 9bfced7..c43ed64 100755
--- a/docs/.vuepress/theme/components/Sidebar.vue
+++ b/docs/.vuepress/theme/components/Sidebar.vue
@@ -98,7 +98,7 @@ function resolveOpenGroupIndex (route, items) {
display block
line-height 1.25rem
color #2c3e50
- font-family Avenir-Medium
+ font-family Lato, sans-serif
padding 0.5rem 0 0.5rem 1.5rem
.sidebar-links
padding 1.5rem 0
diff --git a/docs/.vuepress/theme/fonts/Lato.ttf
b/docs/.vuepress/theme/fonts/Lato.ttf
new file mode 100644
index 0000000..a97385d
Binary files /dev/null and b/docs/.vuepress/theme/fonts/Lato.ttf differ
diff --git a/docs/.vuepress/theme/layouts/Home.vue
b/docs/.vuepress/theme/layouts/Home.vue
index b032e9b..9a52749 100755
--- a/docs/.vuepress/theme/layouts/Home.vue
+++ b/docs/.vuepress/theme/layouts/Home.vue
@@ -125,7 +125,7 @@ export default {
.avatar-title {
font-size: 48px;
color: #fff;
- font-family: Avenir-Heavy;
+ font-family: Lato, sans-serif;
font-weight: 600;
margin: 0;
}
@@ -221,7 +221,7 @@ export default {
background-color:#0091ff;
}
.home-card h1 {
- font-family: Avenir-Heavy;
+ font-family: Lato, sans-serif;
text-shadow: 4px 6px 0 rgba(0,0,0,.07);
}
.home-card p {
diff --git a/docs/.vuepress/theme/styles/config.styl
b/docs/.vuepress/theme/styles/config.styl
index 4783714..b58e0af 100755
--- a/docs/.vuepress/theme/styles/config.styl
+++ b/docs/.vuepress/theme/styles/config.styl
@@ -1,3 +1,9 @@
+// font
+@font-face
+ font-family: 'Lato'
+ font-style: normal
+ src: local('Lato'), url(../fonts/Lato.ttf), format('truetype')
+
// colors
$accentColor = #0091ff
$textColor = #2c3e50