├── .gitignore ├── .travis.yml ├── README.md ├── bower.json ├── dist ├── pintsize.css └── pintsize.min.css ├── examples ├── auto-flex-grid.html ├── basic-grid.html ├── column-first.html ├── column-last.html ├── column-offset.html ├── columns-reverse.html ├── flex-align-end.html ├── flex-align-start.html ├── flex-around.html ├── flex-between.html ├── flex-center.html ├── flex-justify-bottom.html ├── flex-justify-middle.html ├── flex-justify-top.html ├── media-queries.html └── nested-grid.html ├── gulpfile.js ├── package.json └── src └── pintsize.scss /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules* 2 | npm-debug* 3 | .DS_STORE 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.12' 4 | before_script: 5 | - npm install 6 | script: gulp build 7 | branches: 8 | except: 9 | - gh-pages 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pintsize 2 | 3 | [](https://travis-ci.org/alistairtweedie/pintsize) 4 | [](https://david-dm.org/alistairtweedie/pintsize#info=devDependencies) 5 | 6 | 7 | A simple and modern flexible grid system 8 | 9 | ## Get started 10 | It's easy to get started. Just follow the steps below. 11 | 12 | 13 | ### 1.Download 14 | 15 | * [Download Pintsize](https://github.com/alistairtweedie/pintsize/archive/master.zip). 16 | 17 | 18 | 19 | ### 2. Install 20 | 21 | Run Node Package Manager 22 | 23 | $ npm install 24 | 25 | 26 | ### 3. Configure 27 | 28 | Copy the pixel grid values used in your design into _pintsize.scss file. 29 | 30 | $columns: 12; 31 | $column-width: 65px; 32 | $gutter-width: 20px; 33 | 34 | 35 | ### 4. Build 36 | 37 | Run Gulp to build the grid 38 | 39 | $ gulp build 40 | 41 | ## License 42 | 43 | The MIT License (MIT) 44 | 45 | Copyright (c) 2016 @alistairtweedie 46 | 47 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 48 | 49 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 50 | 51 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 52 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pintsize", 3 | "version": "2.0.0", 4 | "authors": [ 5 | "Alistair Tweedie @alistairtweedie" 6 | ], 7 | "description": "A simple and modern flexible grid system", 8 | "main": "dist/pintsize.css", 9 | "keywords": [ 10 | "gulp", 11 | "grid", 12 | "system", 13 | "flexbox" 14 | ], 15 | "license": "MIT", 16 | "homepage": "https://github.com/alistairtweedie/pintsize", 17 | "ignore": [ 18 | "**/.*", 19 | "node_modules", 20 | "bower_components", 21 | "test", 22 | "tests" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /dist/pintsize.css: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------------------* 2 | Pintsize 3 | Url: http://www.pintsize.io 4 | Github: https://github.com/alistairtweedie/Pintsize/ 5 | 6 | /*-------------------------------------------------------*/ 7 | /*-------------------------------------------------------* #grid config 8 | \*-------------------------------------------------------*/ 9 | /*-------------------------------------------------------* #grid calculations 10 | \*-------------------------------------------------------*/ 11 | /*-------------------------------------------------------* #clearfix mixin 12 | \*-------------------------------------------------------*/ 13 | /*-------------------------------------------------------* #box sizing mixin 14 | \*-------------------------------------------------------*/ 15 | /*-------------------------------------------------------* #media query mixin 16 | \*-------------------------------------------------------*/ 17 | /*-------------------------------------------------------* #older IE mixin 18 | - support for IE9 and IE8. 19 | - $old-ie in grid config must be true 20 | \*-------------------------------------------------------*/ 21 | /*-------------------------------------------------------* #gutter mixin 22 | - If $fixed-gutter-size is set to true this will output 23 | the $gutter-width as a fixed value and not percentage 24 | \*-------------------------------------------------------*/ 25 | /*-------------------------------------------------------* #The grid 26 | \*-------------------------------------------------------*/ 27 | .container { 28 | max-width: 1020px; 29 | margin: 0 auto; 30 | box-sizing: border-box; } 31 | 32 | .flex { 33 | display: -webkit-box; 34 | display: -webkit-flex; 35 | display: -ms-flexbox; 36 | display: flex; 37 | -webkit-flex-flow: row wrap; 38 | -ms-flex-flow: row wrap; 39 | flex-flow: row wrap; } 40 | 41 | /*-------------------------------------------------------* #flexbox helper classes 42 | - docs for browser support to be provided 43 | \*-------------------------------------------------------*/ 44 | .flex--auto .col { 45 | -webkit-box-flex: 1; 46 | -webkit-flex-grow: 1; 47 | -ms-flex-positive: 1; 48 | flex-grow: 1; } 49 | 50 | .flex--start { 51 | -webkit-box-pack: start; 52 | -webkit-justify-content: flex-start; 53 | -ms-flex-pack: start; 54 | justify-content: flex-start; } 55 | .flex--start .col { 56 | -webkit-box-flex: 0; 57 | -webkit-flex-grow: 0; 58 | -ms-flex-positive: 0; 59 | flex-grow: 0; } 60 | 61 | .flex--center { 62 | -webkit-box-pack: center; 63 | -webkit-justify-content: center; 64 | -ms-flex-pack: center; 65 | justify-content: center; } 66 | .flex--center .col { 67 | -webkit-box-flex: 0; 68 | -webkit-flex-grow: 0; 69 | -ms-flex-positive: 0; 70 | flex-grow: 0; } 71 | 72 | .flex--end { 73 | -webkit-box-pack: end; 74 | -webkit-justify-content: flex-end; 75 | -ms-flex-pack: end; 76 | justify-content: flex-end; } 77 | .flex--end .col { 78 | -webkit-box-flex: 0; 79 | -webkit-flex-grow: 0; 80 | -ms-flex-positive: 0; 81 | flex-grow: 0; } 82 | 83 | .flex--top { 84 | -webkit-box-align: start; 85 | -webkit-align-items: flex-start; 86 | -ms-flex-align: start; 87 | align-items: flex-start; } 88 | 89 | .flex--middle { 90 | -webkit-box-align: center; 91 | -webkit-align-items: center; 92 | -ms-flex-align: center; 93 | align-items: center; } 94 | 95 | .flex--baseline { 96 | -webkit-box-align: baseline; 97 | -webkit-align-items: baseline; 98 | -ms-flex-align: baseline; 99 | align-items: baseline; } 100 | 101 | .flex--wrap { 102 | -webkit-flex-wrap: wrap; 103 | -ms-flex-wrap: wrap; 104 | flex-wrap: wrap; } 105 | 106 | .flex--row { 107 | -webkit-box-orient: horizontal; 108 | -webkit-box-direction: normal; 109 | -webkit-flex-direction: row; 110 | -ms-flex-direction: row; 111 | flex-direction: row; } 112 | 113 | .flex--bottom { 114 | -webkit-box-align: end; 115 | -webkit-align-items: flex-end; 116 | -ms-flex-align: end; 117 | align-items: flex-end; } 118 | .flex--bottom .col { 119 | -webkit-box-flex: 1; 120 | -webkit-flex-grow: 1; 121 | -ms-flex-positive: 1; 122 | flex-grow: 1; } 123 | 124 | .flex--around { 125 | -webkit-justify-content: space-around; 126 | -ms-flex-pack: distribute; 127 | justify-content: space-around; } 128 | .flex--around .col { 129 | -webkit-box-flex: 0; 130 | -webkit-flex-grow: 0; 131 | -ms-flex-positive: 0; 132 | flex-grow: 0; 133 | -webkit-flex-shrink: 1; 134 | -ms-flex-negative: 1; 135 | flex-shrink: 1; } 136 | 137 | .flex--between { 138 | -webkit-box-pack: justify; 139 | -webkit-justify-content: space-between; 140 | -ms-flex-pack: justify; 141 | justify-content: space-between; } 142 | .flex--between .col { 143 | -webkit-box-flex: 0; 144 | -webkit-flex-grow: 0; 145 | -ms-flex-positive: 0; 146 | flex-grow: 0; 147 | -webkit-flex-shrink: 1; 148 | -ms-flex-negative: 1; 149 | flex-shrink: 1; } 150 | 151 | .flex--reverse { 152 | -webkit-box-orient: horizontal; 153 | -webkit-box-direction: reverse; 154 | -webkit-flex-direction: row-reverse; 155 | -ms-flex-direction: row-reverse; 156 | flex-direction: row-reverse; } 157 | 158 | .col { 159 | -webkit-box-flex: 0; 160 | -webkit-flex-grow: 0; 161 | -ms-flex-positive: 0; 162 | flex-grow: 0; 163 | -webkit-flex-shrink: 0; 164 | -ms-flex-negative: 0; 165 | flex-shrink: 0; 166 | -webkit-flex-basis: auto; 167 | -ms-flex-preferred-size: auto; 168 | flex-basis: auto; 169 | max-width: 100%; 170 | box-sizing: border-box; 171 | padding-left: 10px; 172 | padding-right: 10px; } 173 | 174 | .col--first { 175 | -webkit-box-ordinal-group: 0; 176 | -webkit-order: -1; 177 | -ms-flex-order: -1; 178 | order: -1; } 179 | 180 | .col--last { 181 | -webkit-box-ordinal-group: 2; 182 | -webkit-order: 1; 183 | -ms-flex-order: 1; 184 | order: 1; } 185 | 186 | .col--1 { 187 | -webkit-flex-basis: 8.33333%; 188 | -ms-flex-preferred-size: 8.33333%; 189 | flex-basis: 8.33333%; 190 | max-width: 8.33333%; } 191 | 192 | .col--2 { 193 | -webkit-flex-basis: 16.66667%; 194 | -ms-flex-preferred-size: 16.66667%; 195 | flex-basis: 16.66667%; 196 | max-width: 16.66667%; } 197 | 198 | .col--3 { 199 | -webkit-flex-basis: 25%; 200 | -ms-flex-preferred-size: 25%; 201 | flex-basis: 25%; 202 | max-width: 25%; } 203 | 204 | .col--4 { 205 | -webkit-flex-basis: 33.33333%; 206 | -ms-flex-preferred-size: 33.33333%; 207 | flex-basis: 33.33333%; 208 | max-width: 33.33333%; } 209 | 210 | .col--5 { 211 | -webkit-flex-basis: 41.66667%; 212 | -ms-flex-preferred-size: 41.66667%; 213 | flex-basis: 41.66667%; 214 | max-width: 41.66667%; } 215 | 216 | .col--6 { 217 | -webkit-flex-basis: 50%; 218 | -ms-flex-preferred-size: 50%; 219 | flex-basis: 50%; 220 | max-width: 50%; } 221 | 222 | .col--7 { 223 | -webkit-flex-basis: 58.33333%; 224 | -ms-flex-preferred-size: 58.33333%; 225 | flex-basis: 58.33333%; 226 | max-width: 58.33333%; } 227 | 228 | .col--8 { 229 | -webkit-flex-basis: 66.66667%; 230 | -ms-flex-preferred-size: 66.66667%; 231 | flex-basis: 66.66667%; 232 | max-width: 66.66667%; } 233 | 234 | .col--9 { 235 | -webkit-flex-basis: 75%; 236 | -ms-flex-preferred-size: 75%; 237 | flex-basis: 75%; 238 | max-width: 75%; } 239 | 240 | .col--10 { 241 | -webkit-flex-basis: 83.33333%; 242 | -ms-flex-preferred-size: 83.33333%; 243 | flex-basis: 83.33333%; 244 | max-width: 83.33333%; } 245 | 246 | .col--11 { 247 | -webkit-flex-basis: 91.66667%; 248 | -ms-flex-preferred-size: 91.66667%; 249 | flex-basis: 91.66667%; 250 | max-width: 91.66667%; } 251 | 252 | .col--12 { 253 | -webkit-flex-basis: 100%; 254 | -ms-flex-preferred-size: 100%; 255 | flex-basis: 100%; 256 | max-width: 100%; } 257 | 258 | .col__offset--1 { 259 | margin-left: 8.33333%; } 260 | 261 | .col__offset--2 { 262 | margin-left: 16.66667%; } 263 | 264 | .col__offset--3 { 265 | margin-left: 25%; } 266 | 267 | .col__offset--4 { 268 | margin-left: 33.33333%; } 269 | 270 | .col__offset--5 { 271 | margin-left: 41.66667%; } 272 | 273 | .col__offset--6 { 274 | margin-left: 50%; } 275 | 276 | .col__offset--7 { 277 | margin-left: 58.33333%; } 278 | 279 | .col__offset--8 { 280 | margin-left: 66.66667%; } 281 | 282 | .col__offset--9 { 283 | margin-left: 75%; } 284 | 285 | .col__offset--10 { 286 | margin-left: 83.33333%; } 287 | 288 | .col__offset--11 { 289 | margin-left: 91.66667%; } 290 | 291 | .col__offset--12 { 292 | margin-left: 100%; } 293 | 294 | @media (min-width: 40em) { 295 | .col__md--1 { 296 | -webkit-flex-basis: 8.33333%; 297 | -ms-flex-preferred-size: 8.33333%; 298 | flex-basis: 8.33333%; 299 | max-width: 8.33333%; } 300 | .col__md--2 { 301 | -webkit-flex-basis: 16.66667%; 302 | -ms-flex-preferred-size: 16.66667%; 303 | flex-basis: 16.66667%; 304 | max-width: 16.66667%; } 305 | .col__md--3 { 306 | -webkit-flex-basis: 25%; 307 | -ms-flex-preferred-size: 25%; 308 | flex-basis: 25%; 309 | max-width: 25%; } 310 | .col__md--4 { 311 | -webkit-flex-basis: 33.33333%; 312 | -ms-flex-preferred-size: 33.33333%; 313 | flex-basis: 33.33333%; 314 | max-width: 33.33333%; } 315 | .col__md--5 { 316 | -webkit-flex-basis: 41.66667%; 317 | -ms-flex-preferred-size: 41.66667%; 318 | flex-basis: 41.66667%; 319 | max-width: 41.66667%; } 320 | .col__md--6 { 321 | -webkit-flex-basis: 50%; 322 | -ms-flex-preferred-size: 50%; 323 | flex-basis: 50%; 324 | max-width: 50%; } 325 | .col__md--7 { 326 | -webkit-flex-basis: 58.33333%; 327 | -ms-flex-preferred-size: 58.33333%; 328 | flex-basis: 58.33333%; 329 | max-width: 58.33333%; } 330 | .col__md--8 { 331 | -webkit-flex-basis: 66.66667%; 332 | -ms-flex-preferred-size: 66.66667%; 333 | flex-basis: 66.66667%; 334 | max-width: 66.66667%; } 335 | .col__md--9 { 336 | -webkit-flex-basis: 75%; 337 | -ms-flex-preferred-size: 75%; 338 | flex-basis: 75%; 339 | max-width: 75%; } 340 | .col__md--10 { 341 | -webkit-flex-basis: 83.33333%; 342 | -ms-flex-preferred-size: 83.33333%; 343 | flex-basis: 83.33333%; 344 | max-width: 83.33333%; } 345 | .col__md--11 { 346 | -webkit-flex-basis: 91.66667%; 347 | -ms-flex-preferred-size: 91.66667%; 348 | flex-basis: 91.66667%; 349 | max-width: 91.66667%; } 350 | .col__md--12 { 351 | -webkit-flex-basis: 100%; 352 | -ms-flex-preferred-size: 100%; 353 | flex-basis: 100%; 354 | max-width: 100%; } } 355 | 356 | @media (min-width: 64em) { 357 | .col__lg--1 { 358 | -webkit-flex-basis: 8.33333%; 359 | -ms-flex-preferred-size: 8.33333%; 360 | flex-basis: 8.33333%; 361 | max-width: 8.33333%; } 362 | .col__lg--2 { 363 | -webkit-flex-basis: 16.66667%; 364 | -ms-flex-preferred-size: 16.66667%; 365 | flex-basis: 16.66667%; 366 | max-width: 16.66667%; } 367 | .col__lg--3 { 368 | -webkit-flex-basis: 25%; 369 | -ms-flex-preferred-size: 25%; 370 | flex-basis: 25%; 371 | max-width: 25%; } 372 | .col__lg--4 { 373 | -webkit-flex-basis: 33.33333%; 374 | -ms-flex-preferred-size: 33.33333%; 375 | flex-basis: 33.33333%; 376 | max-width: 33.33333%; } 377 | .col__lg--5 { 378 | -webkit-flex-basis: 41.66667%; 379 | -ms-flex-preferred-size: 41.66667%; 380 | flex-basis: 41.66667%; 381 | max-width: 41.66667%; } 382 | .col__lg--6 { 383 | -webkit-flex-basis: 50%; 384 | -ms-flex-preferred-size: 50%; 385 | flex-basis: 50%; 386 | max-width: 50%; } 387 | .col__lg--7 { 388 | -webkit-flex-basis: 58.33333%; 389 | -ms-flex-preferred-size: 58.33333%; 390 | flex-basis: 58.33333%; 391 | max-width: 58.33333%; } 392 | .col__lg--8 { 393 | -webkit-flex-basis: 66.66667%; 394 | -ms-flex-preferred-size: 66.66667%; 395 | flex-basis: 66.66667%; 396 | max-width: 66.66667%; } 397 | .col__lg--9 { 398 | -webkit-flex-basis: 75%; 399 | -ms-flex-preferred-size: 75%; 400 | flex-basis: 75%; 401 | max-width: 75%; } 402 | .col__lg--10 { 403 | -webkit-flex-basis: 83.33333%; 404 | -ms-flex-preferred-size: 83.33333%; 405 | flex-basis: 83.33333%; 406 | max-width: 83.33333%; } 407 | .col__lg--11 { 408 | -webkit-flex-basis: 91.66667%; 409 | -ms-flex-preferred-size: 91.66667%; 410 | flex-basis: 91.66667%; 411 | max-width: 91.66667%; } 412 | .col__lg--12 { 413 | -webkit-flex-basis: 100%; 414 | -ms-flex-preferred-size: 100%; 415 | flex-basis: 100%; 416 | max-width: 100%; } } 417 | -------------------------------------------------------------------------------- /dist/pintsize.min.css: -------------------------------------------------------------------------------- 1 | .flex--reverse,.flex--row{-webkit-box-orient:horizontal}.col,.container{box-sizing:border-box}.container{max-width:1020px;margin:0 auto}.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap}.flex--auto .col{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.flex--start{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.flex--start .col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0}.flex--center{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.flex--center .col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0}.flex--end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex--end .col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0}.flex--top{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.flex--middle{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.flex--baseline{-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline}.flex--wrap{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.flex--row{-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.flex--bottom{-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.flex--bottom .col{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.flex--around{-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.flex--around .col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1}.flex--between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.flex--between .col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1}.flex--reverse{-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.col{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;max-width:100%;padding-left:10px;padding-right:10px}.col--first{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}.col--last{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}.col--1{-webkit-flex-basis:8.33333%;-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.col--2{-webkit-flex-basis:16.66667%;-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.col--3{-webkit-flex-basis:25%;-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col--4{-webkit-flex-basis:33.33333%;-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.col--5{-webkit-flex-basis:41.66667%;-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.col--6{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col--7{-webkit-flex-basis:58.33333%;-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.col--8{-webkit-flex-basis:66.66667%;-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.col--9{-webkit-flex-basis:75%;-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col--10{-webkit-flex-basis:83.33333%;-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.col--11{-webkit-flex-basis:91.66667%;-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.col--12{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.col__offset--1{margin-left:8.33333%}.col__offset--2{margin-left:16.66667%}.col__offset--3{margin-left:25%}.col__offset--4{margin-left:33.33333%}.col__offset--5{margin-left:41.66667%}.col__offset--6{margin-left:50%}.col__offset--7{margin-left:58.33333%}.col__offset--8{margin-left:66.66667%}.col__offset--9{margin-left:75%}.col__offset--10{margin-left:83.33333%}.col__offset--11{margin-left:91.66667%}.col__offset--12{margin-left:100%}@media (min-width:40em){.col__md--1{-webkit-flex-basis:8.33333%;-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.col__md--2{-webkit-flex-basis:16.66667%;-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.col__md--3{-webkit-flex-basis:25%;-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col__md--4{-webkit-flex-basis:33.33333%;-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.col__md--5{-webkit-flex-basis:41.66667%;-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.col__md--6{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col__md--7{-webkit-flex-basis:58.33333%;-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.col__md--8{-webkit-flex-basis:66.66667%;-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.col__md--9{-webkit-flex-basis:75%;-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col__md--10{-webkit-flex-basis:83.33333%;-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.col__md--11{-webkit-flex-basis:91.66667%;-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.col__md--12{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}@media (min-width:64em){.col__lg--1{-webkit-flex-basis:8.33333%;-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.col__lg--2{-webkit-flex-basis:16.66667%;-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.col__lg--3{-webkit-flex-basis:25%;-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.col__lg--4{-webkit-flex-basis:33.33333%;-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.col__lg--5{-webkit-flex-basis:41.66667%;-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.col__lg--6{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.col__lg--7{-webkit-flex-basis:58.33333%;-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.col__lg--8{-webkit-flex-basis:66.66667%;-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.col__lg--9{-webkit-flex-basis:75%;-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.col__lg--10{-webkit-flex-basis:83.33333%;-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.col__lg--11{-webkit-flex-basis:91.66667%;-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.col__lg--12{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}} -------------------------------------------------------------------------------- /examples/auto-flex-grid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo.
52 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo.
52 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex id fugiat optio magni quos mollitia, dolorem distinctio sed quod fuga hic quae maiores a. Provident quibusdam vel animi, consectetur explicabo.
52 |Parent column
63 | 64 |Child column
Child column
Parent column
83 | 84 |Child column
Child column
Parent column
103 | 104 |Child column
Child column
Parent column
123 | 124 |Child column
Child column
Parent column
155 | 156 |Child column
Child column
Parent column
175 | 176 |Child column
Child column
Parent column
195 | 196 |Child column
Child column
Parent column
215 | 216 |Child column
Child column