Skip to content

Commit 0bdc7f9

Browse files
committed
Typography
1 parent 49c0144 commit 0bdc7f9

File tree

4 files changed

+32
-6
lines changed

4 files changed

+32
-6
lines changed

pages/.vuepress/theme/components/Navbar.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
class="site-name"
1818
v-if="$siteTitle"
1919
:class="{ 'can-hide': $site.themeConfig.logo }"
20-
>{{ $siteTitle }}</span>
20+
></span>
21+
<span class="logo">CoderBot</span>
22+
<span class="subtitle">documentazione</span>
2123
</router-link>
2224

2325
<div
@@ -100,7 +102,7 @@ $navbar-horizontal-padding = 1.5rem
100102
margin-right 0.8rem
101103
vertical-align top
102104
.site-name
103-
font-size 1.3rem
105+
font-size 1.6rem
104106
font-weight 600
105107
color $textColor
106108
position relative

pages/.vuepress/theme/layouts/Layout.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949

5050
<script>
5151
import 'typeface-overpass-mono'
52+
import 'typeface-nunito'
53+
import 'typeface-roboto-mono'
5254
5355
import Home from '../components/Home.vue'
5456
import Navbar from '../components/Navbar.vue'

pages/.vuepress/theme/styles/code.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.content
22
code
3+
font-weight 500
34
color lighten($textColor, 20%)
45
padding 0.25rem 0.5rem
56
margin 0
6-
font-size 0.85em
7+
font-size 0.90em
78
background-color rgba(27,31,35,0.05)
89
border-radius 3px
910
.token

pages/.vuepress/theme/styles/theme.styl

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,33 @@ html, body
1010
background-color #fff
1111

1212
body
13-
font-family -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
13+
font-family "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
1414
-webkit-font-smoothing antialiased
1515
-moz-osx-font-smoothing grayscale
16-
font-size 16px
16+
font-size 17px
1717
color $textColor
1818

19+
.logo {
20+
font-size: 2rem;
21+
font-family: 'Overpass Mono';
22+
font-weight: 600;
23+
letter-spacing: -3px;
24+
background-color: #070300;
25+
color: transparent;
26+
text-shadow: 3px 3px 3px rgba(255, 255, 255, 0.25);
27+
-webkit-background-clip: text;
28+
-moz-background-clip: text;
29+
background-clip: text;
30+
}
31+
.subtitle {
32+
color: #606266;
33+
font-size: 1.5rem;
34+
//font-family: 'Overpass Mono';
35+
font-weight: 400;
36+
letter-spacing: -1px;
37+
margin-top: -20px;
38+
}
39+
1940
.page
2041
padding-left $sidebarWidth
2142

@@ -140,7 +161,7 @@ a.header-anchor
140161
text-decoration none
141162

142163
code, kbd, .line-number
143-
font-family source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace
164+
font-family "Roboto Mono", source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace
144165

145166
p, ul, ol
146167
line-height 1.7

0 commit comments

Comments
 (0)