@@ -5,7 +5,7 @@ export default {
5
5
title : 'Base/Grid' ,
6
6
parameters : {
7
7
layout : 'fullscreen' ,
8
- docs : '<div class="grid-story-docs story-grid-outlines row row--no-grow"><strong>Outline colors: </strong><br/>< span class="col grid-story-docs-color-container-contained">Contained container</span><span class="col grid-story-docs-color-container-fluid">Fluid container</span><span class="col grid-story-docs-color-row">Row</span><span class="col grid-story-docs-color-template-column">Template column</span><span class="col grid-story-docs-color-auto-column">Auto column</span><span class="col grid-story-docs-color-placeholder">Placeholder</span></div>' ,
8
+ docs : '<div class="grid-story-docs story-grid-outlines row row--no-grow"><strong>Outline colors: </strong><span class="col grid-story-docs-color-container-contained">Contained container</span><span class="col grid-story-docs-color-container-fluid">Fluid container</span><span class="col grid-story-docs-color-row">Row</span><span class="col grid-story-docs-color-template-column">Template column</span><span class="col grid-story-docs-color-auto-column">Auto column</span><span class="col grid-story-docs-color-placeholder">Placeholder</span></div>' ,
9
9
docsClass : 'story-docs--conditional' ,
10
10
} ,
11
11
} ;
@@ -135,7 +135,7 @@ export const Grid = () => {
135
135
placeholder ( 'Nested' ) ,
136
136
placeholder ( 'Nested' ) ,
137
137
] ,
138
- use_container : true ,
138
+ use_container : false ,
139
139
column_attributes : 'data-story-total-columns="3"' ,
140
140
} ) ,
141
141
placeholder ( 'Parent' ) ,
@@ -154,123 +154,14 @@ export const Grid = () => {
154
154
placeholder ( 'Nested' ) ,
155
155
placeholder ( 'Nested' ) ,
156
156
] ,
157
- use_container : true ,
157
+ use_container : false ,
158
158
column_attributes : 'data-story-total-columns="3"' ,
159
159
} ) ,
160
160
placeholder ( 'Parent' ) ,
161
161
] ,
162
162
column_attributes : 'data-story-total-columns="2"' ,
163
163
} ) ;
164
164
165
- html += `<div class="story-container__subtitle">Template column container in container ${ code ( '.container .container > .row > .col-[breakpoint]-[column]' ) } </div>` ;
166
- cols = [ 'A' , 'B' , 'C' , 'D' ] ;
167
- html += CivicThemeGrid ( {
168
- items : [
169
- CivicThemeGrid ( {
170
- items : [
171
- placeholder ( 'Nested' ) ,
172
- placeholder ( 'Nested' ) ,
173
- placeholder ( 'Nested' ) ,
174
- ] ,
175
- use_container : true ,
176
- is_fluid : false ,
177
- column_attributes : 'data-story-total-columns="3"' ,
178
- } ) ,
179
- placeholder ( 'Parent' ) ,
180
- ] ,
181
- use_container : true ,
182
- is_fluid : false ,
183
- template_column_count : 2 ,
184
- column_attributes : 'data-story-total-columns="2"' ,
185
- } ) ;
186
-
187
- html += `<div class="story-container__subtitle">Template column fluid container in container ${ code ( '.container .container-fluid > .row > .col-[breakpoint]-[column]' ) } </div>` ;
188
- cols = [ 'A' , 'B' , 'C' , 'D' ] ;
189
- html += CivicThemeGrid ( {
190
- items : [
191
- CivicThemeGrid ( {
192
- items : [
193
- placeholder ( 'Nested' ) ,
194
- placeholder ( 'Nested' ) ,
195
- placeholder ( 'Nested' ) ,
196
- ] ,
197
- use_container : true ,
198
- is_fluid : true ,
199
- column_attributes : 'data-story-total-columns="3"' ,
200
- } ) ,
201
- placeholder ( 'Parent' ) ,
202
- ] ,
203
- use_container : true ,
204
- is_fluid : false ,
205
- template_column_count : 2 ,
206
- column_attributes : 'data-story-total-columns="2"' ,
207
- } ) ;
208
-
209
- html += `<div class="story-container__subtitle">Template column container in fluid container ${ code ( '.container-fluid .container > .row > .col-[breakpoint]-[column]' ) } </div>` ;
210
- cols = [ 'A' , 'B' , 'C' , 'D' ] ;
211
- html += CivicThemeGrid ( {
212
- items : [
213
- CivicThemeGrid ( {
214
- items : [
215
- placeholder ( 'Nested' ) ,
216
- placeholder ( 'Nested' ) ,
217
- placeholder ( 'Nested' ) ,
218
- ] ,
219
- use_container : true ,
220
- is_fluid : false ,
221
- column_attributes : 'data-story-total-columns="3"' ,
222
- } ) ,
223
- placeholder ( 'Parent' ) ,
224
- ] ,
225
- use_container : true ,
226
- is_fluid : true ,
227
- template_column_count : 2 ,
228
- column_attributes : 'data-story-total-columns="2"' ,
229
- } ) ;
230
-
231
- html += `<div class="story-container__subtitle">Template column container in fluid container (all columns) ${ code ( '.container-fluid .container > .row > .col-[breakpoint]-[column]' ) } </div>` ;
232
- cols = [ 'A' , 'B' , 'C' , 'D' ] ;
233
- html += CivicThemeGrid ( {
234
- items : [
235
- CivicThemeGrid ( {
236
- items : [
237
- placeholder ( 'Nested' ) ,
238
- placeholder ( 'Nested' ) ,
239
- placeholder ( 'Nested' ) ,
240
- ] ,
241
- use_container : true ,
242
- is_fluid : false ,
243
- column_attributes : 'data-story-total-columns="3"' ,
244
- } ) ,
245
- ] ,
246
- use_container : true ,
247
- is_fluid : true ,
248
- template_column_count : 1 ,
249
- column_attributes : 'data-story-total-columns="1"' ,
250
- } ) ;
251
-
252
- html += `<div class="story-container__subtitle">Template column fluid container in fluid container ${ code ( '.container-fluid .container-fluid > .row > .col-[breakpoint]-[column]' ) } </div>` ;
253
- cols = [ 'A' , 'B' , 'C' , 'D' ] ;
254
- html += CivicThemeGrid ( {
255
- items : [
256
- CivicThemeGrid ( {
257
- items : [
258
- placeholder ( 'Nested' ) ,
259
- placeholder ( 'Nested' ) ,
260
- placeholder ( 'Nested' ) ,
261
- ] ,
262
- use_container : true ,
263
- is_fluid : true ,
264
- column_attributes : 'data-story-total-columns="3"' ,
265
- } ) ,
266
- placeholder ( 'Parent' ) ,
267
- ] ,
268
- use_container : true ,
269
- is_fluid : true ,
270
- template_column_count : 2 ,
271
- column_attributes : 'data-story-total-columns="2"' ,
272
- } ) ;
273
-
274
165
html += `<div class="story-container__title">Row utilities</div>` ;
275
166
276
167
html += `<div class="story-container__subtitle">Reversed columns ${ code ( '.row.row--reverse' ) } </div>` ;
0 commit comments