File tree Expand file tree Collapse file tree 4 files changed +133
-88
lines changed Expand file tree Collapse file tree 4 files changed +133
-88
lines changed Original file line number Diff line number Diff line change
1
+ <div class =" sidebar" >
2
+ <ul class =" main-menu" >
3
+ <% - partial (' partials/main_menu' , { context: ' sidebar' }) %>
4
+ </ul >
5
+ </div >
6
+
1
7
<div id =" hero" >
2
8
<div class =" inner" >
3
9
<div class =" left" >
4
10
<img class =" hero-logo" src =" /images/logo.png" >
5
11
</div ><div class =" right" >
6
12
<h1 >
7
- Make Web Development<br >
8
- Fun Again.
13
+ The Progressive<br >JavaScript Framework
9
14
</h1 >
10
15
<p >
11
16
<a class =" button" href =" /guide/" >GET STARTED</a >
27
32
</div >
28
33
29
34
<div class =" point" >
30
- <h2 >Approachable </h2 >
31
- <p >Already know HTML, CSS and JavaScript? Read the guide and start building things in no time! </p >
35
+ <h2 >Versatile </h2 >
36
+ <p >Lean, minimal core with a feature-rich, incrementally adoptable ecosystem. </p >
32
37
</div >
33
38
34
39
<div class =" point" >
35
- <h2 >Progressive </h2 >
36
- <p >Lean, minimal core with a feature-rich, incrementally adoptable ecosystem. </p >
40
+ <h2 >Approachable </h2 >
41
+ <p >Already know HTML, CSS and JavaScript? Read the guide and start building things in no time! </p >
37
42
</div >
38
43
</div >
39
44
</div >
51
56
Released under the <a href =" https://opensource.org/licenses/MIT" href =" _blank" >MIT License</a ><br >
52
57
Copyright © ; 2014-<% - new Date ().getFullYear () %> Evan You
53
58
</div >
59
+
60
+ <script src =" //cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js" ></script >
61
+ <script src =" /js/common.js" ></script >
Original file line number Diff line number Diff line change
1
+ @import "_settings"
2
+
3
+ .sidebar
4
+ position absolute
5
+ z-index 10
6
+ top 0
7
+ left 60px
8
+ bottom 0
9
+ padding 2.2em 0
10
+ width 260px
11
+ margin-right 20px
12
+ overflow-x hidden
13
+ overflow-y auto
14
+ -webkit- overflow-scrolling touch
15
+ -ms- overflow-style none
16
+ h2
17
+ margin-top .2em
18
+ ul
19
+ list-style-type none
20
+ margin 0
21
+ line-height 1.8em
22
+ padding-left 1em
23
+ .version-select
24
+ vertical-align middle
25
+ margin-left 5px
26
+ .menu-root
27
+ padding-left 0
28
+ .menu-sub
29
+ font-size .85em
30
+ .sidebar-link
31
+ color $light
32
+ & .current
33
+ font-weight 600
34
+ color $green
35
+ & .new
36
+ & :after
37
+ content "NEW"
38
+ display inline-block
39
+ font-size 10px
40
+ font-weight 600
41
+ color #f f f
42
+ background-color $green
43
+ line-height 14px
44
+ padding 0 4px
45
+ border-radius 3px
46
+ margin-left 5px
47
+ vertical-align middle
48
+ position relative
49
+ top - 1px
50
+ & :hover
51
+ border-bottom 2px solid $green
52
+ .section-link
53
+ & .active
54
+ font-weight bold
55
+ color $green
56
+ .main-menu
57
+ margin-bottom 20px
58
+ display none
59
+ padding-left 0
60
+
61
+ @media screen and (max-width : 720px )
62
+ .sidebar
63
+ position fixed
64
+ z-index 8
65
+ background-color #f9 f9 f9
66
+ height 100%
67
+ top 0
68
+ left 0
69
+ padding 60px 30px 20px
70
+ box-shadow 0 0 10px rgba (0 ,0 ,0 ,.2 )
71
+ box-sizing border-box
72
+ transition all .4s cubic-bezier (0.4 , 0 , 0 , 1 )
73
+ -webkit- transform translate (- 280px , 0 )
74
+ transform translate (- 280px , 0 )
75
+ .search-query
76
+ width 200px
77
+ margin-bottom 10px
78
+ .main-menu
79
+ display block
80
+ & .open
81
+ -webkit- transform translate (0 , 0 )
82
+ transform translate (0 , 0 )
Original file line number Diff line number Diff line change 1
1
@import "_common"
2
2
@import "_header"
3
+ @import "_search"
4
+ @import '_sidebar'
3
5
4
6
$width = 900px
5
7
$space = 50px
8
10
background-color darken ($light , 10% )
9
11
10
12
#hero
11
- padding $space 0
13
+ padding $space 40 px
12
14
background-color #f f f
13
15
.inner
14
16
max-width $width
34
36
font-size 1.05em
35
37
font-weight 600
36
38
letter-spacing .1em
37
- margin-right 1em
39
+ & :first-child
40
+ margin-right 1em
38
41
.social-buttons
39
42
list-style-type none
40
43
padding 0
60
63
color $green
61
64
font-size 1.5em
62
65
font-weight 400
66
+ margin 0
67
+ padding .5em 0
63
68
p
64
69
color $light
65
70
66
71
#sponsors
67
72
text-align center
68
- padding 35px 30 px 45px
73
+ padding 35px 40 px 45px
69
74
background-color #f6 f6 f6
70
75
.inner
71
76
max-width 700px
@@ -102,7 +107,33 @@ body
102
107
color #f f f
103
108
104
109
@media screen and (max-width : $width )
110
+ body
111
+ -webkit- text-size-adjust none
112
+ font-size 14px
105
113
#header
106
114
display none
107
115
#mobile-bar
108
116
display block
117
+ #hero
118
+ padding $space 40px 30px
119
+ .hero-logo
120
+ float none
121
+ margin 30px 0 15px
122
+ width 140px
123
+ height 140px
124
+ .left , .right
125
+ text-align center
126
+ width 100%
127
+ h1
128
+ font-size 2em
129
+ .button
130
+ font-size .9em
131
+ #highlights
132
+ .point
133
+ display block
134
+ margin 0 auto
135
+ width 300px
136
+ padding 0 40px 30px
137
+ & :before
138
+ content "—"
139
+ color $green
Original file line number Diff line number Diff line change 4
4
@import "_search"
5
5
@import "_sponsor"
6
6
@import "_migration"
7
+ @import "_sidebar"
7
8
8
9
#header
9
10
box-shadow 0 0 4px rgba (0 ,0 ,0 ,.25 )
10
11
11
- .sidebar
12
- position absolute
13
- z-index 10
14
- top 0
15
- left 60px
16
- bottom 0
17
- padding 2.2em 0
18
- width 260px
19
- margin-right 20px
20
- overflow-x hidden
21
- overflow-y auto
22
- -webkit- overflow-scrolling touch
23
- -ms- overflow-style none
24
- h2
25
- margin-top .2em
26
- ul
27
- list-style-type none
28
- margin 0
29
- line-height 1.8em
30
- padding-left 1em
31
- .version-select
32
- vertical-align middle
33
- margin-left 5px
34
- .menu-root
35
- padding-left 0
36
- .menu-sub
37
- font-size .85em
38
- .sidebar-link
39
- color $light
40
- & .current
41
- font-weight 600
42
- color $green
43
- & .new
44
- & :after
45
- content "NEW"
46
- display inline-block
47
- font-size 10px
48
- font-weight 600
49
- color #f f f
50
- background-color $green
51
- line-height 14px
52
- padding 0 4px
53
- border-radius 3px
54
- margin-left 5px
55
- vertical-align middle
56
- position relative
57
- top - 1px
58
- & :hover
59
- border-bottom 2px solid $green
60
- .section-link
61
- & .active
62
- font-weight bold
63
- color $green
64
- .main-menu
65
- margin-bottom 20px
66
- display none
67
- padding-left 0
68
-
69
12
.content
13
+ position relative
70
14
padding 2.2em 0
71
15
max-width 600px
72
16
margin 0 auto
180
124
.content.with-sidebar
181
125
margin-left 290px
182
126
#ad
183
- z-index 8
127
+ z-index 7
184
128
position relative
185
129
width 100%
186
130
padding 0
212
156
padding-bottom 1px
213
157
& :hover , & .current
214
158
border-bottom 2px solid $green
215
- .search-query
216
- width 200px
217
- margin-bottom 10px
218
159
#mobile-bar
219
160
display block
220
161
#main
221
162
padding 2em 1.4em 0
222
163
.highlight pre
223
164
padding 1.2em 1em
224
- .sidebar
225
- position fixed
226
- background-color #f9 f9 f9
227
- height 100%
228
- top 0
229
- left 0
230
- padding 60px 30px 20px
231
- box-shadow 0 0 10px rgba (0 ,0 ,0 ,.2 )
232
- box-sizing border-box
233
- transition all .4s cubic-bezier (0.4 , 0 , 0 , 1 )
234
- -webkit- transform translate (- 280px , 0 )
235
- transform translate (- 280px , 0 )
236
- .main-menu
237
- display block
238
- & .open
239
- -webkit- transform translate (0 , 0 )
240
- transform translate (0 , 0 )
241
165
.content
242
166
& .with-sidebar
243
167
margin-left 0
You can’t perform that action at this time.
0 commit comments