File tree 2 files changed +55
-43
lines changed
2 files changed +55
-43
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
< style >
13
- html {
14
- height : 100% ;
15
- box-sizing : border-box;
16
- }
17
-
13
+ html ,
18
14
body {
15
+ box-sizing : border-box;
19
16
height : 100% ;
20
- background-color : # fff ;
21
- color : # 333 ;
22
- font : 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
23
17
padding : 0 ;
24
18
margin : 0 ;
25
19
}
26
20
27
- * {
28
- box-sizing : inherit;
29
- }
30
-
31
21
.wrapper {
22
+ box-sizing : border-box;
32
23
min-height : 100% ;
33
24
display : flex;
34
25
flex-direction : column;
35
26
}
36
27
37
28
.page-header ,
38
29
.page-footer {
39
- background-color : rgb (75 , 70 , 74 );
40
- color : # fff ;
41
- padding : 20px ;
42
- flex-shrink : 0 ;
30
+ flex-grow : 0 ;
43
31
}
44
32
45
33
.page-body {
46
- padding : 20px ;
47
34
flex-grow : 1 ;
48
35
}
49
36
50
- .preview {
51
- height : 400px ;
52
- overflow : auto;
37
+ /* For demonstration only, not part of the recipe */
38
+ body {
39
+ background-color : # fff ;
40
+ color : # 333 ;
41
+ font : 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
42
+ }
43
+ .page-header ,
44
+ .page-footer {
45
+ background-color : rgb (75 , 70 , 74 );
46
+ color : # fff ;
47
+ padding : 20px ;
48
+ }
49
+ .page-body {
50
+ padding : 20px ;
53
51
}
54
52
</ style >
55
53
Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="styles.css ">
11
11
12
12
< style >
13
- html {
14
- height : 100% ;
15
- box-sizing : border-box;
16
- }
17
-
18
13
* {
19
- box-sizing : inherit ;
14
+ box-sizing : border-box ;
20
15
}
21
-
16
+ html ,
22
17
body {
18
+ box-sizing : border-box;
23
19
height : 100% ;
20
+ padding : 0 ;
21
+ margin : 0 ;
24
22
}
25
23
26
24
.page-header ,
27
25
.page-footer {
28
26
background-color : rgb (75 , 70 , 74 );
29
27
color : # fff ;
30
28
padding : 20px ;
31
- flex-shrink : 0 ;
32
29
}
33
30
34
31
.page-body {
35
32
padding : 20px ;
36
- flex-grow : 1 ;
37
33
}
38
34
39
35
.preview {
40
- height : 100% ;
36
+ height : 400px ;
37
+ overflow : auto;
38
+ }
39
+
40
+ .playable-css {
41
+ min-height : 420px ;
42
+ overflow : auto;
43
+ }
44
+
45
+ .playable-html {
46
+ min-height : 160px ;
41
47
overflow : auto;
42
48
}
43
49
</ style >
44
50
45
51
< style class ="editable ">
52
+ html , body {
53
+ box-sizing : border-box;
54
+ height : 100% ;
55
+ padding : 0 ;
56
+ margin : 0 ;
57
+ }
46
58
.wrapper {
59
+ box-sizing : border-box;
47
60
min-height : 100% ;
48
61
display : flex;
49
62
flex-direction : column;
50
63
}
51
-
52
- .page-header ,
53
- .page-footer {
54
- flex-shrink : 0 ;
64
+ .page-header , .page-footer {
65
+ flex-grow : 0 ;
55
66
}
56
-
57
67
.page-body {
58
68
flex-grow : 1 ;
59
69
}
72
82
</ div >
73
83
</ section >
74
84
75
- < textarea class ="playable playable-css ">
85
+ < textarea class ="playable playable-css ">
86
+ html, body {
87
+ box-sizing: border-box;
88
+ height: 100%;
89
+ padding: 0;
90
+ margin: 0;
91
+ }
76
92
.wrapper {
93
+ box-sizing: border-box;
77
94
min-height: 100%;
78
95
display: flex;
79
96
flex-direction: column;
80
97
}
81
-
82
- .page-header,
83
- .page-footer {
84
- flex-shrink: 0;
98
+ .page-header, .page-footer {
99
+ flex-grow: 0;
85
100
}
86
-
87
101
.page-body {
88
102
flex-grow: 1;
89
103
}
90
104
</ textarea >
91
105
92
- < textarea class ="playable playable-html ">
106
+ < textarea class ="playable playable-html ">
93
107
< div class ="wrapper ">
94
108
< header class ="page-header "> This is the header</ header >
95
109
< main class ="page-body ">
96
110
< p > Main page content here, add more if you want to see the footer push down.</ p >
97
111
</ main >
98
112
< footer class ="page-footer "> Sticky footer</ footer >
99
- </ div >
113
+ </ div >
100
114
</ textarea >
101
115
102
116
< div class ="playable-buttons ">
You can’t perform that action at this time.
0 commit comments