File tree Expand file tree Collapse file tree 3 files changed +40
-10
lines changed Expand file tree Collapse file tree 3 files changed +40
-10
lines changed Original file line number Diff line number Diff line change 24
24
<div id =" highlights" >
25
25
<div class =" inner" >
26
26
<div class =" point" >
27
- <h2 >Performant</h2 >
28
- <p >
29
- 16kb min+gzip Runtime<br >
30
- Blazing Fast Virtual DOM<br >
31
- Minimal Optimization Efforts
32
- </p >
27
+ <h2 >Approachable</h2 >
28
+ <p >Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p >
33
29
</div >
34
30
35
31
<div class =" point" >
36
32
<h2 >Versatile</h2 >
37
- <p >Lean , minimal core with a feature-rich, incrementally adoptable ecosystem .</p >
33
+ <p >Simple , minimal core with an incrementally adoptable stack that can handle apps of any scale .</p >
38
34
</div >
39
35
40
36
<div class =" point" >
41
- <h2 >Approachable</h2 >
42
- <p >Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!</p >
37
+ <h2 >Performant</h2 >
38
+ <p >
39
+ 16kb min+gzip Runtime<br >
40
+ Blazing Fast Virtual DOM<br >
41
+ Minimal Optimization Efforts
42
+ </p >
43
43
</div >
44
44
</div >
45
45
</div >
60
60
61
61
<script src =" //cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js" ></script >
62
62
<script src =" /js/common.js" ></script >
63
+ <script >
64
+ var topScrolled = false
65
+ window .addEventListener (' scroll' , function () {
66
+ if (window .pageYOffset > 165 && ! topScrolled) {
67
+ topScrolled = true
68
+ document .getElementById (' mobile-bar' ).classList .remove (' top' )
69
+ } else if (window .pageYOffset <= 165 && topScrolled) {
70
+ topScrolled = false
71
+ document .getElementById (' mobile-bar' ).classList .add (' top' )
72
+ }
73
+ })
74
+ </script >
Original file line number Diff line number Diff line change 18
18
<script src =" /js/vue.js" ></script >
19
19
</head >
20
20
<body >
21
- <div id =" mobile-bar" >
21
+ <div id =" mobile-bar" < %- isIndex ? ' class="top" ' : ' ' % > >
22
22
<a class =" menu-button" ></a >
23
23
<a class =" logo" href =" /" ></a >
24
24
</div >
Original file line number Diff line number Diff line change @@ -9,6 +9,22 @@ $space = 50px
9
9
body
10
10
background-color darken ($light , 10% )
11
11
12
+ #logo
13
+ span
14
+ font-size 1.2em
15
+ img
16
+ display none
17
+
18
+ .sidebar
19
+ display none
20
+
21
+ #mobile-bar
22
+ & .top
23
+ background-color transparent
24
+ box-shadow none
25
+ .logo
26
+ display none
27
+
12
28
#hero
13
29
padding $space 40px
14
30
background-color #f f f
116
132
body
117
133
-webkit- text-size-adjust none
118
134
font-size 14px
135
+ .sidebar
136
+ display block
119
137
#header
120
138
display none
121
139
#mobile-bar
You can’t perform that action at this time.
0 commit comments