Skip to content

Commit b0d60fa

Browse files
author
Evan You
committed
minor design updates
1 parent f0b8214 commit b0d60fa

File tree

6 files changed

+51
-22
lines changed

6 files changed

+51
-22
lines changed

source/guide/installation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ gz_size: 14.29
1313

1414
Simply download and include with a script tag. `Vue` will be registered as a global variable.
1515

16-
<a class="button" href="https://raw.github.com/yyx990803/vue/v{{vue_version}}/dist/vue.js" download>Development Version</a><br><span class="light">{{dev_size}}kb, plenty of comments and debug/warning messages.</span>
16+
<div id="downloads">
17+
<a class="button" href="https://raw.github.com/yyx990803/vue/v{{vue_version}}/dist/vue.js" download>Development Version</a><span class="light info">{{dev_size}}kb, plenty of comments and debug/warning messages.</span>
1718

18-
<a class="button" href="https://raw.github.com/yyx990803/vue/v{{vue_version}}/dist/vue.min.js" download>Production Version</a><br><span class="light">{{min_size}}kb minified / {{gz_size}}kb gzipped</span>
19+
<a class="button" href="https://raw.github.com/yyx990803/vue/v{{vue_version}}/dist/vue.min.js" download>Production Version</a><span class="light info">{{min_size}}kb minified / {{gz_size}}kb gzipped</span>
20+
</div>
1921

2022
Also available on [cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.min.js) (takes some time to sync so the latest version might not be available yet).
2123

themes/vue/source/css/_common.styl

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,22 @@ p
4141

4242
a.button
4343
display inline-block
44-
font-size 1.25em
45-
color #fff !important
46-
font-weight 400 !important
47-
background-color $green
48-
padding .5em 1.5em
49-
border-radius 4px
50-
text-shadow 0 1px 1px rgba(0,0,0,.2)
51-
border-bottom 1px solid darken($green, 12%)
52-
transition all .2s ease-out
44+
font-size 1.2em
45+
color $green //!important
46+
font-weight 700 //!important
47+
background-color #fff//$green
48+
// border 1px solid $green
49+
padding 12px 24px
50+
border-radius 24px
51+
border 2px solid $green
52+
// text-shadow 0 1px 1px rgba(0,0,0,.2)
53+
// border-bottom 1px solid darken($green, 12%)
54+
transition all .15s ease
5355
&:hover
54-
background-color lighten($green, 10%)
56+
color #fff
57+
-webkit-transform scale(1.03)
58+
transform scale(1.03)
59+
background-color $green
5560

5661
.highlight
5762
overflow-x auto

themes/vue/source/css/index.styl

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,15 @@ html, body
196196
padding 0
197197
list-style-type none
198198
li:before
199-
content "✓"
200-
font-weight bold
201-
margin-right .75em
202-
font-size 1.2em
199+
content ""
200+
display inline-block
201+
width 24px
202+
height 24px
203+
background url(../images/check.png) center center no-repeat
204+
background-size 24px 24px
205+
margin-right 10px
206+
position relative
207+
top 4px
203208

204209
#footer
205210
text-align center
@@ -218,10 +223,10 @@ html, body
218223
text-decoration none
219224
text-transform uppercase
220225
letter-spacing 1px
221-
border 2px solid #fff
226+
border 1px solid #fff
222227
display inline-block
223-
padding 8px 16px
224-
border-radius 4px
228+
padding 12px 20px
229+
border-radius 25px
225230
transition all .15s ease
226231
margin-bottom 2em
227232
&:hover
@@ -278,10 +283,10 @@ html, body
278283
width 250px
279284
#why
280285
ul
281-
width 250px
286+
width 280px
282287
font-size 1.1em
283288
h2
284-
font-size 1.35em
289+
font-size 1.4em
285290
#ad
286291
position static
287292
.carbon-img, .carbon-text, .carbon-poweredby

themes/vue/source/css/page.styl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,21 @@ $header-height = 40px
121121
padding-left 1.25em
122122
color $light
123123
a.button
124-
font-size 1.2em
124+
font-size 1.1em
125125
margin .2em 0
126126
width 180px
127127
text-align center
128+
padding 10px 24px
129+
display inline-block
130+
vertical-align middle
128131
span.light
129132
color $light
133+
span.info
134+
font-size .85em
135+
display inline-block
136+
vertical-align middle
137+
width 280px
138+
margin-left 20px
130139
h1
131140
margin 0 0 1em
132141
h2
@@ -212,6 +221,14 @@ $header-height = 40px
212221
bottom 0
213222
left 145px
214223

224+
@media screen and (max-width: 560px)
225+
#downloads
226+
text-align center
227+
margin-bottom 25px
228+
.info
229+
margin-top 5px
230+
margin-left 0
231+
215232
@media screen and (max-width: 720px)
216233
body
217234
-webkit-text-size-adjust none

themes/vue/source/images/check.png

363 Bytes
Loading

themes/vue/source/images/download.png

1.25 KB
Loading

0 commit comments

Comments
 (0)