|
5 | 5 | <style>
|
6 | 6 | .grid {
|
7 | 7 | background: none;
|
| 8 | + -webkit-grid-template-columns: [left] 200px [main-start] 100px [center] 100px 100px [main-end] 50px 50px [right]; |
8 | 9 | grid-template-columns: [left] 200px [main-start] 100px [center] 100px 100px [main-end] 50px 50px [right];
|
| 10 | + -webkit-grid-template-rows: [top title-start] 50px [title-end main-start] 200px [main-end center] 150px 100px [bottom]; |
9 | 11 | grid-template-rows: [top title-start] 50px [title-end main-start] 200px [main-end center] 150px 100px [bottom];
|
| 12 | + -webkit-grid-auto-columns: 50px; |
10 | 13 | grid-auto-columns: 50px;
|
| 14 | + -webkit-grid-auto-rows: 50px; |
11 | 15 | grid-auto-rows: 50px;
|
12 | 16 | font-family: monospace;
|
13 | 17 | font-weight: bold;
|
|
33 | 37 | height: 100%;
|
34 | 38 | box-sizing: border-box;
|
35 | 39 |
|
| 40 | + display: -webkit-grid; |
36 | 41 | display: grid;
|
| 42 | + -webkit-grid: 100% / 100%; |
37 | 43 | grid: 100% / 100%;
|
38 | 44 | justify-items: center;
|
39 | 45 | align-items: center;
|
|
43 | 49 | background: rgba(242,46,138, 0.8);
|
44 | 50 | border: 5px solid rgb(242,46,138);
|
45 | 51 |
|
| 52 | + -webkit-grid-column: -8; |
46 | 53 | grid-column: -8;
|
| 54 | + -webkit-grid-row: -7; |
47 | 55 | grid-row: -7;
|
48 | 56 | }
|
49 | 57 |
|
50 | 58 | #item-2 {
|
51 | 59 | background: rgba(98,205,217, 0.8);
|
52 | 60 | border: 5px solid rgb(98,205,217);
|
53 | 61 |
|
| 62 | + -webkit-grid-column: -1 / span 2; |
54 | 63 | grid-column: -1 / span 2;
|
| 64 | + -webkit-grid-row: span 2 / 1; |
55 | 65 | grid-row: span 2 / 1;
|
56 | 66 | }
|
57 | 67 |
|
58 | 68 | #item-3 {
|
59 | 69 | background: rgba(117,191,6, 0.8);
|
60 | 70 | border: 5px solid rgb(117,191,6);
|
61 | 71 |
|
| 72 | + -webkit-grid-column: span 2 / center; |
62 | 73 | grid-column: span 2 / center;
|
| 74 | + -webkit-grid-row: auto / 1; |
63 | 75 | grid-row: auto / 1;
|
64 | 76 | }
|
65 | 77 |
|
66 | 78 | #item-4 {
|
67 | 79 | background: rgba(242,226,5, 0.8);
|
68 | 80 | border: 5px solid rgb(242,226,5);
|
69 | 81 |
|
| 82 | + -webkit-grid-column: 1 / -1; |
70 | 83 | grid-column: 1 / -1;
|
| 84 | + -webkit-grid-row: title; |
71 | 85 | grid-row: title;
|
72 | 86 | }
|
73 | 87 |
|
74 | 88 | #item-5 {
|
75 | 89 | background: rgba(242,54,12, 0.8);
|
76 | 90 | border: 5px solid rgb(242,54,12);
|
77 | 91 |
|
| 92 | + -webkit-grid-area: main; |
78 | 93 | grid-area: main;
|
79 | 94 | }
|
80 | 95 |
|
81 | 96 | #item-6 {
|
82 | 97 | background: rgba(166,0,62, 0.8);
|
83 | 98 | border: 5px solid rgb(166,0,62);
|
84 | 99 |
|
| 100 | + -webkit-grid-column: 5 / span right; |
85 | 101 | grid-column: 5 / span right;
|
| 102 | + -webkit-grid-row: auto / center; |
86 | 103 | grid-row: auto / center;
|
87 | 104 | }
|
88 | 105 |
|
89 | 106 | #item-7 {
|
90 | 107 | background: rgba(22,129,141, 0.8);
|
91 | 108 | border: 5px solid rgb(22,129,141);
|
92 | 109 |
|
| 110 | + -webkit-grid-column: span bar / 9; |
93 | 111 | grid-column: span bar / 9;
|
| 112 | + -webkit-grid-row: center; |
94 | 113 | grid-row: center;
|
95 | 114 | }
|
96 | 115 |
|
97 | 116 | #item-8 {
|
98 | 117 | background: rgba(41,115,0, 0.8);
|
99 | 118 | border: 5px solid rgb(41,115,0);
|
100 | 119 |
|
| 120 | + -webkit-grid-column: span 2 / 2; |
101 | 121 | grid-column: span 2 / 2;
|
| 122 | + -webkit-grid-row: -2; |
102 | 123 | grid-row: -2;
|
103 | 124 | }
|
104 | 125 |
|
105 | 126 | #item-9 {
|
106 | 127 | background: rgba(166,150,0, 0.8);
|
107 | 128 | border: 5px solid rgb(166,150,0);
|
108 | 129 |
|
| 130 | + -webkit-grid-column: center / right; |
109 | 131 | grid-column: center / right;
|
| 132 | + -webkit-grid-row: 5 / 4; |
110 | 133 | grid-row: 5 / 4;
|
111 | 134 | }
|
112 | 135 |
|
113 | 136 | #item-10 {
|
114 | 137 | background: rgba(166,0,0, 0.8);
|
115 | 138 | border: 5px solid rgb(166,0,0);
|
116 | 139 |
|
| 140 | + -webkit-grid-column: center; |
117 | 141 | grid-column: center;
|
| 142 | + -webkit-grid-row: bottom / span bottom; |
118 | 143 | grid-row: bottom / span bottom;
|
119 | 144 | }
|
120 | 145 |
|
|
0 commit comments