Skip to content

Commit 713a2e2

Browse files
committed
docs: improve Components layout for different locales
1 parent e800049 commit 713a2e2

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

docs/.vuepress/theme/components/Intro.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,18 @@ export default {
7272
@media (max-width $mq-mobile)
7373
line-height 1.28
7474
75-
.button + .button
76-
margin-left 20px
75+
.button
76+
white-space nowrap
77+
78+
@media (max-width $mq-mobile)
79+
margin-bottom 20px
80+
81+
+ .button
82+
@media (min-width $mq-mobile + 1)
83+
margin-left 20px
84+
85+
@media (max-width $mq-mobile)
86+
margin-bottom 0
7787
7888
.feat-list
7989
list-style none
@@ -89,7 +99,7 @@ export default {
8999
flex 1
90100
color $c-basic-light
91101
line-height 1.42857
92-
word-break break-all
102+
word-break break-word
93103
94104
&:not(:last-child)
95105
@media (min-width $mq-mobile + 1)

docs/.vuepress/theme/layouts/Layout.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ body
138138
.theme-container
139139
.previewer
140140
position absolute
141-
z-index 100
141+
z-index 10
142142
top $s-header-height + 10
143143
right 100% - $s-home-divide-ratio
144144
margin-right $s-home-middle-gap
@@ -154,7 +154,7 @@ body
154154
155155
#logo
156156
position absolute
157-
z-index 100
157+
z-index 21
158158
top 100px
159159
left $s-home-divide-ratio
160160
display inline-block
@@ -178,7 +178,7 @@ body
178178
179179
+ h1
180180
position absolute
181-
z-index 100
181+
z-index 21
182182
top 280px
183183
left $s-home-divide-ratio
184184
margin-left 164px + $s-home-middle-gap
@@ -204,7 +204,7 @@ body
204204
205205
.intro-container
206206
position absolute
207-
z-index 10
207+
z-index 1
208208
top 346px
209209
left $s-home-divide-ratio
210210
margin-left $s-home-middle-gap
@@ -230,6 +230,12 @@ body
230230
background-color #fff
231231
transition all 0.3s
232232
233+
@media (max-width $mq-mobile)
234+
margin-top 1250px
235+
236+
@media (max-width $mq-mobile-narrow)
237+
margin-top 1300px
238+
233239
p
234240
margin 0
235241
color lighten($c-basic-light, 15%)
@@ -324,6 +330,7 @@ body
324330
transform translate(-50%, 30px)
325331
326332
.footer
333+
margin-top 0
327334
opacity 0
328335
visibility hidden
329336

docs/.vuepress/theme/styles/button.styl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ button-shadow-generator($color, $offsetx = 0) {
5252

5353
&:hover
5454
button-shadow-generator(rgba(28, 90, 160, 0.5), 1px)
55+
56+
a.button
57+
display inline-block
58+
59+
&:hover
60+
text-decoration none !important

0 commit comments

Comments
 (0)