File tree 4 files changed +40
-38
lines changed
4 files changed +40
-38
lines changed Original file line number Diff line number Diff line change 32
32
display :none ;
33
33
}
34
34
}
35
+
36
+ & __wrap {
37
+ display : block ;
38
+
39
+ @include break {
40
+ margin : 0 -30px ;
41
+ }
42
+
43
+ & :before ,
44
+ & :after {
45
+ content : " " ;
46
+ display : table ;
47
+ }
48
+
49
+ & :after {
50
+ clear : both ;
51
+ }
52
+ }
53
+
54
+ & __left ,
55
+ & __right {
56
+ width : 100% ;
57
+ float : left ;
58
+
59
+ @include break {
60
+ width : 50% ;
61
+ padding : 0 15px ;
62
+ }
63
+ }
64
+
65
+ /* XXX: Hack to fix markown parsing issues */
66
+ & __right {
67
+ margin-bottom : 1em ;
68
+ }
35
69
}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ title: webpack
4
4
5
5
## Write your code
6
6
7
- <div class =" homepage__wrap " >
8
- <div class =" homepage__left " >
7
+ <div class =" splash__wrap " >
8
+ <div class =" splash__left " >
9
9
__ app.js__
10
10
11
11
``` js
@@ -14,7 +14,7 @@ import bar from './bar';
14
14
bar ();
15
15
```
16
16
</div >
17
- <div class =" homepage__right " >
17
+ <div class =" splash__right " >
18
18
__ bar.js__
19
19
20
20
``` js
@@ -28,8 +28,8 @@ export default function bar() {
28
28
29
29
## Bundle with webpack
30
30
31
- <div class =" homepage__wrap " >
32
- <div class =" homepage__left " >
31
+ <div class =" splash__wrap " >
32
+ <div class =" splash__left " >
33
33
__ webpack.config.js__
34
34
35
35
``` js
@@ -41,7 +41,7 @@ module.exports = {
41
41
}
42
42
```
43
43
</div >
44
- <div class =" homepage__right " >
44
+ <div class =" splash__right " >
45
45
__ page.html__
46
46
47
47
``` html
@@ -55,7 +55,6 @@ __page.html__
55
55
</body >
56
56
</html >
57
57
```
58
-
59
58
</div >
60
59
61
60
Then run ` webpack ` on the command-line to create ` bundle.js ` .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -87,4 +87,3 @@ details:focus, summary:focus{
87
87
}
88
88
89
89
@import ' ./markdown' ;
90
- @import ' ./homepage' ;
You can’t perform that action at this time.
0 commit comments