Skip to content

Commit 7da11f7

Browse files
Revert "Fold interactive grid CSS into standard"
This reverts commit 4978a42.
1 parent 4978a42 commit 7da11f7

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

dotcom-rendering/src/layouts/lib/articleArrangements.ts

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,42 @@ const mediaCss: LayoutCssMap = {
149149
},
150150
};
151151

152+
const interactiveCss: LayoutCssMap = {
153+
title: {
154+
tablet: 'grid-row: 1;',
155+
leftCol: `grid-row: 1; ${grid.column.left}`,
156+
},
157+
headline: {
158+
tablet: 'grid-row: 2;',
159+
leftCol: 'grid-row: 1;',
160+
},
161+
standfirst: {
162+
tablet: 'grid-row: 3;',
163+
leftCol: 'grid-row: 2;',
164+
},
165+
media: {
166+
tablet: 'grid-row: 4;',
167+
leftCol: 'grid-row: 3;',
168+
},
169+
meta: {
170+
tablet: 'grid-row: 5;',
171+
leftCol: `grid-row: 3 / span 2; ${grid.column.left};`,
172+
},
173+
body: {
174+
tablet: `grid-row: 6; ${grid.column.all};`,
175+
leftCol: 'grid-row: 4;',
176+
},
177+
'right-column': {
178+
desktop: `grid-row: 1 / span 6; ${grid.column.right};`,
179+
leftCol: `grid-row: 1 / span 4; ${grid.column.right};`,
180+
},
181+
};
182+
152183
const layoutCssMaps: Record<LayoutType, LayoutCssMap> = {
153184
standard: standardCss,
154185
showcase: showcaseCss,
155186
media: mediaCss,
156-
interactive: standardCss,
187+
interactive: interactiveCss,
157188
};
158189

159190
/**

0 commit comments

Comments
 (0)