Skip to content

Commit 01ef8b1

Browse files
Jinjiangkazupon
authored andcommitted
Fixed colons and spaces in all stylus files. (vuejs#1003)
1 parent 7743054 commit 01ef8b1

File tree

12 files changed

+877
-864
lines changed

12 files changed

+877
-864
lines changed

themes/vue/source/css/_common.styl

Lines changed: 189 additions & 179 deletions
Large diffs are not rendered by default.

themes/vue/source/css/_demo.styl

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,62 @@
11
#demo, .demo, .content .demo
2-
border 1px solid #eee
3-
border-radius $radius
4-
padding 25px 35px
5-
margin-top 1em
6-
margin-bottom 40px
7-
font-size 1.2em
8-
line-height 1.5em
9-
-webkit-user-select: none
10-
-moz-user-select: none
11-
-ms-user-select: none
12-
user-select: none
13-
overflow-x auto
14-
h1
15-
margin 0 0 .5em
16-
font-size 1.8em
17-
ul, ol
18-
padding-left 1.5em
19-
padding-bottom .2em !important
20-
&:first-child
21-
margin-top 0
22-
&:last-child
23-
margin-bottom 0
24-
li
25-
color $medium
26-
// !!TODO: Check to make sure this isn't here for a good reason.
27-
// -ms-user-select none
28-
// -moz-user-select none
29-
// -webkit-user-select none
30-
&.done
31-
color $light
32-
text-decoration line-through
33-
p
34-
margin 0 !important
35-
padding 0 !important
36-
&:first-child
37-
margin-top 0
38-
&:last-child
39-
margin-bottom 0
40-
textarea
41-
width 100%
42-
resize vertical
2+
border: 1px solid #eee
3+
border-radius: $radius
4+
padding: 25px 35px
5+
margin-top: 1em
6+
margin-bottom: 40px
7+
font-size: 1.2em
8+
line-height: 1.5em
9+
-webkit-user-select: none
10+
-moz-user-select: none
11+
-ms-user-select: none
12+
user-select: none
13+
overflow-x: auto
14+
h1
15+
margin: 0 0 .5em
16+
font-size: 1.8em
17+
ul, ol
18+
padding-left: 1.5em
19+
padding-bottom: .2em !important
20+
&:first-child
21+
margin-top: 0
22+
&:last-child
23+
margin-bottom: 0
24+
li
25+
color: $medium
26+
// !!TODO: Check to make sure this isn't here for a good reason.
27+
// cursor: pointer
28+
// -ms-user-select: none
29+
// -moz-user-select: none
30+
// -webkit-user-select: none
31+
&.done
32+
color: $light
33+
text-decoration: line-through
34+
p
35+
margin: 0 !important
36+
padding: 0 !important
37+
&:first-child
38+
margin-top: 0
39+
&:last-child
40+
margin-bottom: 0
41+
textarea
42+
width: 100%
43+
resize: vertical
4344

4445

4546
ul#demo, ul.demo
46-
li
47-
margin-left 1.5em
47+
li
48+
margin-left: 1.5em
4849

4950
@media screen and (max-width: 900px)
50-
#demo, .demo
51-
margin-left 0
51+
#demo, .demo
52+
margin-left: 0
5253

5354
.benchmark-table
54-
margin: 0 auto
55-
text-align center
55+
margin: 0 auto
56+
text-align: center
5657

57-
tbody > tr > th
58-
text-align right
58+
tbody > tr > th
59+
text-align: right
5960

60-
th, td
61-
padding: 3px 7px
61+
th, td
62+
padding: 3px 7px

themes/vue/source/css/_header.styl

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,111 @@
11
$header-height = 40px
22

33
#header
4-
background-color #fff
5-
height: $header-height
6-
padding $heading-padding-vertical 60px
7-
position relative
8-
z-index 2
4+
background-color: #fff
5+
height: $header-height
6+
padding: $heading-padding-vertical 60px
7+
position: relative
8+
z-index: 2
99

1010
body.docs
11-
#header
12-
position fixed
13-
width 100%
14-
top 0
15-
#nav
16-
position fixed
11+
#header
12+
position: fixed
13+
width: 100%
14+
top: 0
15+
#nav
16+
position: fixed
1717

1818
#nav
19-
list-style-type none
20-
margin 0
21-
padding 0
22-
position absolute
23-
right 30px
24-
top $heading-padding-vertical
25-
height $header-height
26-
line-height $header-height
27-
.break
28-
display none
29-
li
30-
display inline-block
31-
position relative
32-
margin 0 .6em
19+
list-style-type: none
20+
margin: 0
21+
padding: 0
22+
position: absolute
23+
right: 30px
24+
top: $heading-padding-vertical
25+
height: $header-height
26+
line-height: $header-height
27+
.break
28+
display: none
29+
li
30+
display: inline-block
31+
position: relative
32+
margin: 0 .6em
3333

3434
.nav-link
35-
padding-bottom 3px
36-
&:hover, &.current
37-
border-bottom 3px solid $green
38-
&.shop
39-
margin-left 10px
35+
padding-bottom: 3px
36+
&:hover, &.current
37+
border-bottom: 3px solid $green
38+
&.shop
39+
margin-left: 10px
4040

4141
.new-label
42-
position absolute
43-
top 3px
44-
left 110%
45-
background-color $green
46-
color #fff
47-
line-height 16px
48-
height 16px
49-
font-size 9px
50-
font-weight bold
51-
font-family $code-font
52-
padding 1px 4px 0 6px
53-
border-radius 4px
42+
position: absolute
43+
top: 3px
44+
left: 110%
45+
background-color: $green
46+
color: #fff
47+
line-height: 16px
48+
height: 16px
49+
font-size: 9px
50+
font-weight: bold
51+
font-family: $code-font
52+
padding: 1px 4px 0 6px
53+
border-radius: 4px
5454

5555
.search-query
56-
height 30px
57-
line-height 30px
58-
box-sizing border-box
59-
padding 0 15px 0 30px
60-
border 1px solid #e3e3e3
61-
color $dark
62-
outline none
63-
border-radius 15px
64-
margin-right 10px
65-
transition border-color .2s ease
66-
background #fff url(../images/search.png) 8px 5px no-repeat
67-
background-size 20px
68-
vertical-align middle !important
69-
&:focus
70-
border-color $green
56+
height: 30px
57+
line-height: 30px
58+
box-sizing: border-box
59+
padding: 0 15px 0 30px
60+
border: 1px solid #e3e3e3
61+
color: $dark
62+
outline: none
63+
border-radius: 15px
64+
margin-right: 10px
65+
transition: border-color .2s ease
66+
background: #fff url(../images/search.png) 8px 5px no-repeat
67+
background-size: 20px
68+
vertical-align: middle !important
69+
&:focus
70+
border-color: $green
7171

7272
#logo
73-
display inline-block
74-
font-size 1.5em
75-
line-height $header-height
76-
color $dark
77-
font-family $logo-font
78-
font-weight 500
79-
img
80-
vertical-align middle
81-
margin-right 6px
82-
width $header-height
83-
height $header-height
73+
display: inline-block
74+
font-size: 1.5em
75+
line-height: $header-height
76+
color: $dark
77+
font-family: $logo-font
78+
font-weight: 500
79+
img
80+
vertical-align: middle
81+
margin-right: 6px
82+
width: $header-height
83+
height: $header-height
8484

8585
#mobile-bar
86-
position fixed
87-
top 0
88-
left 0
89-
width 100%
90-
height 40px
91-
background-color #fff
92-
z-index 9
93-
display none
94-
box-shadow 0 0 2px rgba(0,0,0,.25)
95-
.menu-button
96-
position absolute
97-
width 24px
98-
height 24px
99-
top 8px
100-
left 12px
101-
background url(../images/menu.png) center center no-repeat
102-
background-size 24px
103-
.logo
104-
position absolute
105-
width 30px
106-
height 30px
107-
background url(../images/logo.png) center center no-repeat
108-
top 5px
109-
left 50%
110-
margin-left -15px
111-
background-size 30px
86+
position: fixed
87+
top: 0
88+
left: 0
89+
width: 100%
90+
height: 40px
91+
background-color: #fff
92+
z-index: 9
93+
display: none
94+
box-shadow: 0 0 2px rgba(0,0,0,.25)
95+
.menu-button
96+
position: absolute
97+
width: 24px
98+
height: 24px
99+
top: 8px
100+
left: 12px
101+
background: url(../images/menu.png) center center no-repeat
102+
background-size: 24px
103+
.logo
104+
position: absolute
105+
width: 30px
106+
height: 30px
107+
background: url(../images/logo.png) center center no-repeat
108+
top: 5px
109+
left: 50%
110+
margin-left: -15px
111+
background-size: 30px

themes/vue/source/css/_migration.styl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.content.guide[class*="migration"]
2-
h2, h3
3-
> sup
4-
margin-left: .3em
5-
color: #b9465c
6-
.upgrade-path
7-
margin-top: 2em
8-
padding: 2em
9-
background: rgba(73, 195, 140, .1)
10-
border-radius: 2px
11-
> h4
12-
margin-top: 0
13-
> p:last-child
14-
margin-bottom: 0
15-
padding-bottom: 0
2+
h2, h3
3+
> sup
4+
margin-left: .3em
5+
color: #b9465c
6+
.upgrade-path
7+
margin-top: 2em
8+
padding: 2em
9+
background: rgba(73, 195, 140, .1)
10+
border-radius: 2px
11+
> h4
12+
margin-top: 0
13+
> p:last-child
14+
margin-bottom: 0
15+
padding-bottom: 0
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.content.menu
2-
font-size: 1.2em
3-
.menu-root
4-
padding-left: 0
5-
#search-form, .algolia-autocomplete, input
6-
width: 100%
7-
.aa-dropdown-menu
8-
box-sizing: border-box
9-
h3
10-
margin: 1.5em 0 .75em
11-
&:before, &:after
12-
display: none
13-
li
14-
list-style-type: none
15-
margin-top: .1em
2+
font-size: 1.2em
3+
.menu-root
4+
padding-left: 0
5+
#search-form, .algolia-autocomplete, input
6+
width: 100%
7+
.aa-dropdown-menu
8+
box-sizing: border-box
9+
h3
10+
margin: 1.5em 0 .75em
11+
&:before, &:after
12+
display: none
13+
li
14+
list-style-type: none
15+
margin-top: .1em

0 commit comments

Comments
 (0)