File tree 2 files changed +152
-0
lines changed
2 files changed +152
-0
lines changed Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
5
+ }
6
+
7
+ html ,
8
+ body {
9
+ height : 100% ;
10
+ background-color : gray;
11
+ }
12
+
13
+ # main-container {
14
+ background-color : bisque;
15
+ height : 100% ;
16
+ display : grid;
17
+ grid-template-columns : 3fr 1fr ;
18
+ }
19
+
20
+ .col-1 {
21
+ display : grid;
22
+ overflow : auto;
23
+ grid-template-rows : 1fr 1fr ;
24
+ }
25
+
26
+ .row-1 {
27
+ background-color : cadetblue;
28
+ overflow : auto;
29
+ display : grid;
30
+ grid-template-rows : 1fr 2fr ;
31
+ }
32
+
33
+ .row-1-1 {
34
+ background-color : crimson;
35
+ overflow : auto;
36
+ }
37
+
38
+ .row-1-2 {
39
+ background-color : darkkhaki;
40
+ overflow : auto;
41
+ }
42
+
43
+ .col-2 {
44
+ display : grid;
45
+ grid-template-rows : 90px 1fr 90px ;
46
+ overflow : auto;
47
+ }
48
+
49
+ .row-2 {
50
+ background-color : chocolate;
51
+ overflow : auto;
52
+ display : grid;
53
+ grid-template-rows : 3fr 1fr ;
54
+ }
55
+
56
+ .row-2-1 {
57
+ background-color : darkmagenta;
58
+ overflow : auto;
59
+ }
60
+
61
+ .row-2-2 {
62
+ background-color : darkslateblue;
63
+ overflow : auto;
64
+ }
65
+
66
+ .row-3 {
67
+ background-color : darkturquoise;
68
+ }
69
+
70
+ .row-4 {
71
+ background-color : firebrick;
72
+ display : grid;
73
+ grid-template-rows : 1fr ;
74
+ overflow : auto;
75
+ }
76
+
77
+ .row-4-1 {
78
+ padding : 20px ;
79
+ display : grid;
80
+ grid-template-rows : 1fr ;
81
+ overflow : auto;
82
+ }
83
+
84
+ .row-5 {
85
+ background-color : fuchsia;
86
+ }
87
+
88
+ .text-editor {
89
+ display : grid;
90
+ grid-template-rows : auto 1fr ;
91
+ overflow : auto;
92
+ }
93
+
94
+ .toolbar {
95
+ background-color : black;
96
+ color : white;
97
+ }
98
+
99
+ .content {
100
+ background-color : wheat;
101
+ overflow : auto;
102
+ }
103
+
104
+ .test-height {
105
+ height : 1000px ;
106
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < link rel ="stylesheet " href ="index.css " />
8
+ < title > Document</ title >
9
+ </ head >
10
+ < body >
11
+ < div id ="main-container ">
12
+ < div class ="col-1 ">
13
+ < div class ="row-1 ">
14
+ < div class ="row-1-1 ">
15
+ < div class ="test-height "> row-1-1</ div >
16
+ </ div >
17
+ < div class ="row-1-2 ">
18
+ < div class ="test-height "> row-1-2</ div >
19
+ </ div >
20
+ </ div >
21
+ < div class ="row-2 ">
22
+ < div class ="row-2-1 ">
23
+ < div class ="test-height "> row-2-1</ div >
24
+ </ div >
25
+ < div class ="row-2-2 ">
26
+ < div class ="test-height "> row-2-2</ div >
27
+ </ div >
28
+ </ div >
29
+ </ div >
30
+ < div class ="col-2 ">
31
+ < div class ="row-3 "> </ div >
32
+ < div class ="row-4 ">
33
+ < div class ="row-4-1 ">
34
+ < div class ="text-editor ">
35
+ < div class ="toolbar "> Toolbar</ div >
36
+ < div class ="content ">
37
+ < div class ="test-height "> Text content</ div >
38
+ </ div >
39
+ </ div >
40
+ </ div >
41
+ </ div >
42
+ < div class ="row-5 "> </ div >
43
+ </ div >
44
+ </ div >
45
+ </ body >
46
+ </ html >
You can’t perform that action at this time.
0 commit comments