├── .npmrc
├── .gitignore
├── js
└── highlightjs
│ ├── .DS_Store
│ ├── styles
│ ├── pojoaque.jpg
│ ├── brown-papersq.png
│ ├── school-book.png
│ ├── darkula.css
│ ├── ascetic.css
│ ├── mono-blue.css
│ ├── dark.css
│ ├── androidstudio.css
│ ├── codepen-embed.css
│ ├── brown-paper.css
│ ├── vs.css
│ ├── far.css
│ ├── arta.css
│ ├── ir-black.css
│ ├── color-brewer.css
│ ├── magula.css
│ ├── github-gist.css
│ ├── monokai.css
│ ├── darcula.css
│ ├── tomorrow.css
│ ├── zenburn.css
│ ├── school-book.css
│ ├── ocean.css
│ ├── paraiso-dark.css
│ ├── paraiso-light.css
│ ├── qtcreator_dark.css
│ ├── qtcreator_light.css
│ ├── rainbow.css
│ ├── kimbie.dark.css
│ ├── kimbie.light.css
│ ├── atelier-dune-dark.css
│ ├── monokai-sublime.css
│ ├── atelier-dune-light.css
│ ├── atelier-heath-dark.css
│ ├── atelier-heath-light.css
│ ├── atelier-forest-dark.css
│ ├── atelier-forest-light.css
│ ├── dracula.css
│ ├── tomorrow-night-bright.css
│ ├── tomorrow-night-eighties.css
│ ├── atelier-seaside-dark.css
│ ├── atelier-seaside-light.css
│ ├── hopscotch.css
│ ├── atelier-lakeside-dark.css
│ ├── atelier-lakeside-light.css
│ ├── arduino-light.css
│ ├── googlecode.css
│ ├── xt256.css
│ ├── atelier-sulphurpool-dark.css
│ ├── atelier-sulphurpool-light.css
│ ├── obsidian.css
│ ├── foundation.css
│ ├── tomorrow-night.css
│ ├── xcode.css
│ ├── tomorrow-night-blue.css
│ ├── pojoaque.css
│ ├── solarized-dark.css
│ ├── solarized-light.css
│ ├── docco.css
│ ├── idea.css
│ ├── atelier-cave-dark.css
│ ├── atelier-cave-light.css
│ ├── atelier-estuary-dark.css
│ ├── atelier-plateau-dark.css
│ ├── atelier-savanna-dark.css
│ ├── github.css
│ ├── atelier-estuary-light.css
│ ├── atelier-plateau-light.css
│ ├── atelier-savanna-light.css
│ ├── atom-one-dark.css
│ ├── default.css
│ ├── atom-one-light.css
│ ├── sunburst.css
│ ├── railscasts.css
│ ├── routeros.css
│ ├── agate.css
│ ├── hybrid.css
│ ├── gruvbox-dark.css
│ ├── gruvbox-light.css
│ ├── vs2015.css
│ ├── grayscale.css
│ └── purebasic.css
│ ├── LICENSE
│ ├── README.ru.md
│ ├── README.md
│ └── highlight.pack.js
├── src
└── sass
│ ├── flex-grow
│ └── _flex-grow.scss
│ ├── base
│ ├── _base.scss
│ └── _reset.scss
│ ├── orders
│ └── _orders.scss
│ ├── sizes
│ └── _sizes.scss
│ ├── wrap
│ └── _wrap.scss
│ ├── col
│ └── _col.scss
│ ├── _variables.scss
│ ├── main.scss
│ ├── directions
│ └── _directions.scss
│ ├── justify-content
│ └── _justify-content.scss
│ ├── align-items
│ └── _align-items.scss
│ ├── flex-basis
│ └── _flex-basis.scss
│ └── spaces
│ └── _spaces.scss
├── README.md
├── LICENSE
├── package.json
├── gulpfile.js
├── css
├── master.css
└── the-grid.min.css
└── index.html
/.npmrc:
--------------------------------------------------------------------------------
1 | @gustavoquinalha:registry=https://npm.pkg.github.com/
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .DS_Store
3 | package-lock.json
4 | yarn.lock
5 |
--------------------------------------------------------------------------------
/js/highlightjs/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gustavoquinalha/the-grid/HEAD/js/highlightjs/.DS_Store
--------------------------------------------------------------------------------
/js/highlightjs/styles/pojoaque.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gustavoquinalha/the-grid/HEAD/js/highlightjs/styles/pojoaque.jpg
--------------------------------------------------------------------------------
/src/sass/flex-grow/_flex-grow.scss:
--------------------------------------------------------------------------------
1 | @for $i from 0 through 12 {
2 | .flex-grow-#{$i} {
3 | flex-grow: $i
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/sass/base/_base.scss:
--------------------------------------------------------------------------------
1 | .container {
2 | display: flex
3 | }
4 |
5 | .container-inline {
6 | display: inline-flex
7 | }
8 |
--------------------------------------------------------------------------------
/js/highlightjs/styles/brown-papersq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gustavoquinalha/the-grid/HEAD/js/highlightjs/styles/brown-papersq.png
--------------------------------------------------------------------------------
/js/highlightjs/styles/school-book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gustavoquinalha/the-grid/HEAD/js/highlightjs/styles/school-book.png
--------------------------------------------------------------------------------
/js/highlightjs/styles/darkula.css:
--------------------------------------------------------------------------------
1 | /*
2 | Deprecated due to a typo in the name and left here for compatibility purpose only.
3 | Please use darcula.css instead.
4 | */
5 |
6 | @import url('darcula.css');
7 |
--------------------------------------------------------------------------------
/src/sass/base/_reset.scss:
--------------------------------------------------------------------------------
1 | * {
2 | box-sizing: border-box;
3 | text-rendering: optimizeLegibility;
4 | -webkit-font-smoothing: antialiased;
5 | -moz-osx-font-smoothing: grayscale;
6 | font-kerning: auto;
7 | }
8 |
9 | html {
10 | font-family: sans-serif;
11 | -webkit-text-size-adjust: 100%;
12 | }
13 |
14 | body {
15 | margin: 0;
16 | }
17 |
--------------------------------------------------------------------------------
/src/sass/orders/_orders.scss:
--------------------------------------------------------------------------------
1 | @each $media, $size in $sizesDirections {
2 | @if $size == '' {
3 | @for $i from 1 through 12 {
4 | .order#{-$i} {
5 | order: #{$i}
6 | }
7 | }
8 | }
9 | @else {
10 | @media ($media) {
11 | @for $i from 1 through 12 {
12 | .order#{$size}#{-$i} {
13 | order: #{$i}
14 | }
15 | }
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/sass/sizes/_sizes.scss:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------
2 | // | Extra small | Small | Medium | Large | Extra large |
3 | // |-------------|-------|--------|-------|-------------|
4 | // | <576px |≥576px | ≥768px | ≥992px| ≥1200px |
5 | // |----------------------------------------------------|
6 | // | col | col-sm| col-md | col-lg| col-xl |
7 | // ------------------------------------------------------
8 |
9 | @each $size in $sizes {
10 | .teste {
11 | @media screen and ($size) {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/sass/wrap/_wrap.scss:
--------------------------------------------------------------------------------
1 |
2 | @each $media, $size in $sizesDirections {
3 | @if $size == "" {
4 | .wrap {
5 | flex-wrap: wrap
6 | }
7 |
8 | .no-wrap {
9 | flex-wrap: nowrap
10 | }
11 |
12 | .wrap-reverse {
13 | flex-wrap: wrap-reverse
14 | }
15 | }
16 | @else {
17 | @media ($media) {
18 | .wrap#{$size} {
19 | flex-wrap: wrap
20 | }
21 |
22 | .no-wrap#{$size} {
23 | flex-wrap: nowrap
24 | }
25 |
26 | .wrap-reverse#{$size} {
27 | flex-wrap: wrap-reverse
28 | }
29 | }
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/src/sass/col/_col.scss:
--------------------------------------------------------------------------------
1 | .row {
2 | display: flex;
3 | flex-wrap: wrap;
4 | }
5 |
6 | @each $media, $size in $sizesDirections {
7 | @if $size == '' {
8 | @for $i from 1 through 12 {
9 | .col#{$size}-#{$i} {
10 | flex-grow: 0;
11 | flex-basis: ($i * 100%) / 12;
12 | max-width: ($i * 100%) / 12;
13 | }
14 | }
15 | }
16 | @else {
17 | @media ($media) {
18 | @for $i from 1 through 12 {
19 | .col#{$size}-#{$i} {
20 | flex-grow: 0;
21 | flex-basis: ($i * 100%) / 12;
22 | max-width: ($i * 100%) / 12;
23 | }
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/sass/_variables.scss:
--------------------------------------------------------------------------------
1 | // sizes
2 | $xs: 576px;
3 | $sm: 576px;
4 | $md: 768px;
5 | $lg: 992px;
6 | $xl: 1200px;
7 |
8 | $sizes: 'max-width: 576px',
9 | 'min-width: 576px',
10 | 'min-width: 768px',
11 | 'min-width: 992px',
12 | 'min-width: 1200px';
13 |
14 | $cols: '',
15 | '-sm',
16 | '-md',
17 | '-lg',
18 | '-xl';
19 |
20 | $directions: "row" "row-reverse" "column" "column-reverse";
21 |
22 | $sizesDirections: "max-width: 576px" "",
23 | "min-width: 576px" "-sm",
24 | "min-width: 768px" "-md",
25 | "min-width: 992px" "-lg",
26 | "min-width: 1200px" "-xl";
27 |
--------------------------------------------------------------------------------
/src/sass/main.scss:
--------------------------------------------------------------------------------
1 | // vars
2 | @import "./variables.scss";
3 |
4 | // reset
5 | @import "./base/reset.scss";
6 |
7 | // base contents
8 | @import "./base/_base.scss";
9 | @import "./wrap/wrap.scss";
10 | @import "./directions/directions.scss";
11 |
12 | // sizes and @media queries
13 | @import "./sizes/sizes.scss";
14 |
15 | // rows, cols
16 | @import "./col/col.scss";
17 |
18 | // alignments
19 | @import "./align-items/align-items.scss";
20 | @import "./justify-content/justify-content.scss";
21 |
22 | // flexbox
23 | @import "./flex-basis/flex-basis.scss";
24 | @import "./flex-grow/flex-grow.scss";
25 |
26 | // orders
27 | @import "./orders/orders.scss";
28 |
29 | // spaces
30 | @import "./spaces/spaces.scss";
31 |
--------------------------------------------------------------------------------
/src/sass/directions/_directions.scss:
--------------------------------------------------------------------------------
1 |
2 | @each $media, $size in $sizesDirections {
3 | @if $size == '' {
4 | .row {
5 | flex-direction: row;
6 | }
7 | .row-reverse {
8 | flex-direction: row-reverse;
9 | }
10 | .column {
11 | flex-direction: column;
12 | }
13 | .column-reverse {
14 | flex-direction: column-reverse;
15 | }
16 | }
17 | @else {
18 | @media ( #{$media} ) {
19 | .row#{$size} {
20 | flex-direction: row;
21 | }
22 | .row-reverse#{$size} {
23 | flex-direction: row-reverse;
24 | }
25 | .column#{$size} {
26 | flex-direction: column;
27 | }
28 | .column-reverse#{$size} {
29 | flex-direction: column-reverse;
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/js/highlightjs/styles/ascetic.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev
2 |
12 | Atomic design, pure flexbox, bootstrap 4 compatible.
13 |
3 |
4 |
5 |
8 |
9 |
The Grid
10 |
11 |
14 | Explore The grid docs »
15 |
16 |
17 | Get Started
18 | ·
19 | Themes
20 |
`, попытавшись
20 | автоматически определить язык. Когда автоопределение не срабатывает, можно явно
21 | указать язык в атрибуте class:
22 |
23 | ```html
24 | ...
25 | ```
26 |
27 | Список поддерживаемых классов языков доступен в [справочнике по классам][2].
28 | Класс также можно предварить префиксами `language-` или `lang-`.
29 |
30 | Чтобы отключить подсветку для какого-то блока, используйте класс `nohighlight`:
31 |
32 | ```html
33 | ...
34 | ```
35 |
36 | ## Инициализация вручную
37 |
38 | Чтобы иметь чуть больше контроля за инициализацией подсветки, вы можете
39 | использовать функции [`highlightBlock`][3] и [`configure`][4]. Таким образом
40 | можно управлять тем, *что* и *когда* подсвечивать.
41 |
42 | Вот пример инициализации, эквивалентной вызову [`initHighlightingOnLoad`][1], но
43 | с использованием jQuery:
44 |
45 | ```javascript
46 | $(document).ready(function() {
47 | $('pre code').each(function(i, block) {
48 | hljs.highlightBlock(block);
49 | });
50 | });
51 | ```
52 |
53 | Вы можете использовать любые теги разметки вместо ``. Если
54 | используете контейнер, не сохраняющий переводы строк, вам нужно сказать
55 | highlight.js использовать для них тег `
`:
56 |
57 | ```javascript
58 | hljs.configure({useBR: true});
59 |
60 | $('div.code').each(function(i, block) {
61 | hljs.highlightBlock(block);
62 | });
63 | ```
64 |
65 | Другие опции можно найти в документации функции [`configure`][4].
66 |
67 |
68 | ## Web Workers
69 |
70 | Подсветку можно запустить внутри web worker'а, чтобы окно
71 | браузера не подтормаживало при работе с большими кусками кода.
72 |
73 | В основном скрипте:
74 |
75 | ```javascript
76 | addEventListener('load', function() {
77 | var code = document.querySelector('#code');
78 | var worker = new Worker('worker.js');
79 | worker.onmessage = function(event) { code.innerHTML = event.data; }
80 | worker.postMessage(code.textContent);
81 | })
82 | ```
83 |
84 | В worker.js:
85 |
86 | ```javascript
87 | onmessage = function(event) {
88 | importScripts('/highlight.pack.js');
89 | var result = self.hljs.highlightAuto(event.data);
90 | postMessage(result.value);
91 | }
92 | ```
93 |
94 |
95 | ## Установка библиотеки
96 |
97 | Highlight.js можно использовать в браузере прямо с CDN хостинга или скачать
98 | индивидуальную сборку, а также установив модуль на сервере. На
99 | [странице загрузки][5] подробно описаны все варианты.
100 |
101 | **Не подключайте GitHub напрямую.** Библиотека не предназначена для
102 | использования в виде исходного кода, а требует отдельной сборки. Если вам не
103 | подходит ни один из готовых вариантов, читайте [документацию по сборке][6].
104 |
105 | **Файл на CDN содержит не все языки.** Иначе он будет слишком большого размера.
106 | Если нужного вам языка нет в [категории "Common"][5], можно дообавить его
107 | вручную:
108 |
109 | ```html
110 |
111 | ```
112 |
113 | **Про Almond.** Нужно задать имя модуля в оптимизаторе, например:
114 |
115 | ```
116 | r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
117 | ```
118 |
119 |
120 | ## Лицензия
121 |
122 | Highlight.js распространяется под лицензией BSD. Подробнее читайте файл
123 | [LICENSE][7].
124 |
125 |
126 | ## Ссылки
127 |
128 | Официальный сайт билиотеки расположен по адресу .
129 |
130 | Более подробная документация по API и другим темам расположена на
131 | .
132 |
133 | Авторы и контрибьюторы перечислены в файле [AUTHORS.ru.txt][8] file.
134 |
135 | [1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload
136 | [2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
137 | [3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
138 | [4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
139 | [5]: https://highlightjs.org/download/
140 | [6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
141 | [7]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE
142 | [8]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.ru.txt
143 |
--------------------------------------------------------------------------------
/css/master.css:
--------------------------------------------------------------------------------
1 | * {
2 | margin: 0;
3 | padding: 0;
4 | font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
5 | /* color: #222 */
6 | }
7 |
8 | *,
9 | *::before,
10 | *::after {
11 | box-sizing: inherit;
12 | }
13 |
14 | html,
15 | body {
16 | height: 100%;
17 | font-family: sans-serif;
18 | -webkit-text-size-adjust: 100%;
19 | -ms-text-size-adjust: 100%;
20 | }
21 |
22 | html {
23 | box-sizing: border-box;
24 | -ms-overflow-style: scrollbar;
25 | }
26 |
27 | h1,
28 | h2,
29 | h3,
30 | h4,
31 | h5,
32 | h6 {
33 | margin-top: 0;
34 | margin-bottom: 0;
35 | padding-top: 0;
36 | padding-bottom: 0;
37 | }
38 |
39 | b,
40 | strong {
41 | font-weight: bolder;
42 | }
43 |
44 | p {
45 | margin-top: 0;
46 | margin-bottom: 0;
47 | }
48 |
49 | a {
50 | color: #007bff;
51 | text-decoration: none;
52 | background-color: transparent;
53 | -webkit-text-decoration-skip: objects;
54 | }
55 |
56 | a:hover {
57 | color: #0056b3;
58 | }
59 |
60 | input,
61 | button,
62 | select,
63 | optgroup,
64 | textarea {
65 | margin: 0;
66 | font-family: inherit;
67 | font-size: inherit;
68 | line-height: inherit;
69 | outline: none
70 | }
71 |
72 | img {
73 | vertical-align: middle;
74 | border-style: none;
75 | }
76 |
77 | svg:not(:root) {
78 | overflow: hidden;
79 | }
80 |
81 | pre,
82 | code {
83 | width: 100%;
84 | box-sizing: border-box;
85 | }
86 |
87 | [hidden] {
88 | display: none !important;
89 | }
90 |
91 | .hljs {
92 | background: #222!important
93 | }
94 |
95 | .head {
96 | min-height: 100vh!important;
97 | width: 100%;
98 | padding: 0!important;
99 | text-align: center;
100 | }
101 |
102 | .head-box {
103 | width: 400px;
104 | max-width: 90%;
105 | }
106 |
107 | .head h1 {
108 | font-size: 6em;
109 | color: #222
110 | }
111 |
112 | .head p {
113 | font-size: 1.7em;
114 | color: rgba(34, 34, 34, 0.7)
115 | }
116 |
117 | .size {
118 | width: 1200px;
119 | max-width: 90%;
120 | }
121 |
122 | .example h1 {
123 | font-size: 2.5em!important;
124 | }
125 |
126 | .margin {
127 | margin: 0 auto
128 | }
129 |
130 | .example {
131 | min-height: 50vh;
132 | padding-top: 20vh;
133 | padding-bottom: 20vh;
134 | box-sizing: border-box
135 | }
136 |
137 | .example .container,
138 | .example .row {
139 | background: #222;
140 | margin-top: 10px;
141 | margin-bottom: 10px;
142 | width: 100%;
143 | }
144 |
145 | .container.column .box,
146 | .container.column-reverse .box {}
147 |
148 | .example .container.no-wrap .box,
149 | .example .container.wrap .box {}
150 |
151 | .example .container.no-wrap .box.flex-grow-1,
152 | .example .container.wrap .box.flex-grow-1,
153 | .example .container.no-wrap .box.flex-grow-2,
154 | .example .container.wrap .box.flex-grow-2,
155 | .example .container.no-wrap .box.flex-grow-3,
156 | .example .container.wrap .box.flex-grow-3,
157 | .example .container.no-wrap .box.flex-grow-4,
158 | .example .container.wrap .box.flex-grow-4,
159 | .example .container.no-wrap .box.flex-grow-5,
160 | .example .container.wrap .box.flex-grow-5,
161 | .example .container.no-wrap .box.flex-grow-6,
162 | .example .container.wrap .box.flex-grow-6,
163 | .example .container.no-wrap .box.flex-grow-7,
164 | .example .container.wrap .box.flex-grow-7,
165 | .example .container.no-wrap .box.flex-grow-8,
166 | .example .container.wrap .box.flex-grow-8,
167 | .example .container.no-wrap .box.flex-grow-9,
168 | .example .container.wrap .box.flex-grow-9,
169 | .example .container.no-wrap .box.flex-grow-10,
170 | .example .container.wrap .box.flex-grow-10,
171 | .example .container.no-wrap .box.flex-grow-11,
172 | .example .container.wrap .box.flex-grow-11,
173 | .example .container.no-wrap .box.flex-grow-12,
174 | .example .container.wrap .box.flex-grow-12 {}
175 |
176 | .align-items-stretch,
177 | .align-items-baseline,
178 | .align-items-start,
179 | .align-items-center,
180 | .align-items-end {
181 | min-height: 200px;
182 | }
183 |
184 | .hr {
185 | padding-top: 10px;
186 | padding-bottom: 10px;
187 | }
188 |
189 | .hr .green {
190 | width: 100px;
191 | height: 10px;
192 | border-radius: 20px;
193 | background: #50fa7b;
194 | border: none;
195 | margin: 0 auto
196 | }
197 |
198 | .box,
199 | [class*="basis-"],
200 | [class*="basis-"],
201 | [class*="col-"] {
202 | background: #50fa7b;
203 | margin: 10px;
204 | padding: 10px;
205 | border-radius: 20px;
206 | box-sizing: border-box;
207 | color: #fff;
208 | text-align: center;
209 | }
210 |
211 | @media screen and (max-width: 480px) {
212 | .head {
213 | min-height: 50vh!important;
214 | }
215 | .head h1 {
216 | font-size: 3em;
217 | }
218 | .head p {
219 | font-size: 1em;
220 | }
221 | .example h1 {
222 | font-size: 1.5em!important;
223 | }
224 | .box,
225 | [class*="basis-"],
226 | [class*="basis-"],
227 | [class*="col-"] {
228 | margin: 5px!important;
229 | padding: 5px!important;
230 | }
231 | }
--------------------------------------------------------------------------------
/js/highlightjs/README.md:
--------------------------------------------------------------------------------
1 | # Highlight.js
2 |
3 | [](https://travis-ci.org/isagalaev/highlight.js)
4 |
5 | Highlight.js is a syntax highlighter written in JavaScript. It works in
6 | the browser as well as on the server. It works with pretty much any
7 | markup, doesn’t depend on any framework and has automatic language
8 | detection.
9 |
10 | ## Getting Started
11 |
12 | The bare minimum for using highlight.js on a web page is linking to the
13 | library along with one of the styles and calling
14 | [`initHighlightingOnLoad`][1]:
15 |
16 | ```html
17 |
18 |
19 |
20 | ```
21 |
22 | This will find and highlight code inside of `` tags; it tries
23 | to detect the language automatically. If automatic detection doesn’t
24 | work for you, you can specify the language in the `class` attribute:
25 |
26 | ```html
27 | ...
28 | ```
29 |
30 | The list of supported language classes is available in the [class
31 | reference][2]. Classes can also be prefixed with either `language-` or
32 | `lang-`.
33 |
34 | To disable highlighting altogether use the `nohighlight` class:
35 |
36 | ```html
37 | ...
38 | ```
39 |
40 | ## Custom Initialization
41 |
42 | When you need a bit more control over the initialization of
43 | highlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]
44 | functions. This allows you to control *what* to highlight and *when*.
45 |
46 | Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using
47 | jQuery:
48 |
49 | ```javascript
50 | $(document).ready(function() {
51 | $('pre code').each(function(i, block) {
52 | hljs.highlightBlock(block);
53 | });
54 | });
55 | ```
56 |
57 | You can use any tags instead of `` to mark up your code. If
58 | you don't use a container that preserve line breaks you will need to
59 | configure highlight.js to use the `
` tag:
60 |
61 | ```javascript
62 | hljs.configure({useBR: true});
63 |
64 | $('div.code').each(function(i, block) {
65 | hljs.highlightBlock(block);
66 | });
67 | ```
68 |
69 | For other options refer to the documentation for [`configure`][4].
70 |
71 |
72 | ## Web Workers
73 |
74 | You can run highlighting inside a web worker to avoid freezing the browser
75 | window while dealing with very big chunks of code.
76 |
77 | In your main script:
78 |
79 | ```javascript
80 | addEventListener('load', function() {
81 | var code = document.querySelector('#code');
82 | var worker = new Worker('worker.js');
83 | worker.onmessage = function(event) { code.innerHTML = event.data; }
84 | worker.postMessage(code.textContent);
85 | })
86 | ```
87 |
88 | In worker.js:
89 |
90 | ```javascript
91 | onmessage = function(event) {
92 | importScripts('/highlight.pack.js');
93 | var result = self.hljs.highlightAuto(event.data);
94 | postMessage(result.value);
95 | }
96 | ```
97 |
98 |
99 | ## Getting the Library
100 |
101 | You can get highlight.js as a hosted, or custom-build, browser script or
102 | as a server module. Right out of the box the browser script supports
103 | both AMD and CommonJS, so if you wish you can use RequireJS or
104 | Browserify without having to build from source. The server module also
105 | works perfectly fine with Browserify, but there is the option to use a
106 | build specific to browsers rather than something meant for a server.
107 | Head over to the [download page][5] for all the options.
108 |
109 | **Don't link to GitHub directly.** The library is not supposed to work straight
110 | from the source, it requires building. If none of the pre-packaged options
111 | work for you refer to the [building documentation][6].
112 |
113 | **The CDN-hosted package doesn't have all the languages.** Otherwise it'd be
114 | too big. If you don't see the language you need in the ["Common" section][5],
115 | it can be added manually:
116 |
117 | ```html
118 |
119 | ```
120 |
121 | **On Almond.** You need to use the optimizer to give the module a name. For
122 | example:
123 |
124 | ```
125 | r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
126 | ```
127 |
128 |
129 | ## License
130 |
131 | Highlight.js is released under the BSD License. See [LICENSE][7] file
132 | for details.
133 |
134 | ## Links
135 |
136 | The official site for the library is at .
137 |
138 | Further in-depth documentation for the API and other topics is at
139 | .
140 |
141 | Authors and contributors are listed in the [AUTHORS.en.txt][8] file.
142 |
143 | [1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload
144 | [2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
145 | [3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
146 | [4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
147 | [5]: https://highlightjs.org/download/
148 | [6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
149 | [7]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE
150 | [8]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.en.txt
151 |
--------------------------------------------------------------------------------
/js/highlightjs/highlight.pack.js:
--------------------------------------------------------------------------------
1 | /*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */
2 | !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/&/g,"&").replace(//g,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0===t.index}function a(e){return k.test(e)}function i(e){var n,t,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=B.exec(o))return w(t[1])?t[1]:"no-highlight";for(o=o.split(/\s+/),n=0,r=o.length;r>n;n++)if(i=o[n],a(i)||w(i))return i}function o(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?a+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset"}function u(e){s+=""+t(e)+">"}function c(e){("start"===e.event?o:u)(e.node)}for(var l=0,s="",f=[];e.length||r.length;){var g=i();if(s+=n(a.substring(l,g[0].offset)),l=g[0].offset,g===e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g===e&&g.length&&g[0].offset===l);f.reverse().forEach(o)}else"start"===g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return s+n(a.substr(l))}function l(e){return e.v&&!e.cached_variants&&(e.cached_variants=e.v.map(function(n){return o(e,{v:null},n)})),e.cached_variants||e.eW&&[o(e)]||[e]}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},u=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?u("keyword",a.k):x(a.k).forEach(function(e){u(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),null==a.r&&(a.r=1),a.c||(a.c=[]),a.c=Array.prototype.concat.apply([],a.c.map(function(e){return l("self"===e?a:e)})),a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var c=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=c.length?t(c.join("|"),!0):{exec:function(){return null}}}}r(e)}function f(e,t,a,i){function o(e,n){var t,a;for(t=0,a=n.c.length;a>t;t++)if(r(n.c[t].bR,e))return n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function c(e,n){return!a&&r(n.iR,e)}function l(e,n){var t=N.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function p(e,n,t,r){var a=r?"":I.classPrefix,i='',i+n+o}function h(){var e,t,r,a;if(!E.k)return n(k);for(a="",t=0,E.lR.lastIndex=0,r=E.lR.exec(k);r;)a+=n(k.substring(t,r.index)),e=l(E,r),e?(B+=e[1],a+=p(e[0],n(r[0]))):a+=n(r[0]),t=E.lR.lastIndex,r=E.lR.exec(k);return a+n(k.substr(t))}function d(){var e="string"==typeof E.sL;if(e&&!y[E.sL])return n(k);var t=e?f(E.sL,k,!0,x[E.sL]):g(k,E.sL.length?E.sL:void 0);return E.r>0&&(B+=t.r),e&&(x[E.sL]=t.top),p(t.language,t.value,!1,!0)}function b(){L+=null!=E.sL?d():h(),k=""}function v(e){L+=e.cN?p(e.cN,"",!0):"",E=Object.create(e,{parent:{value:E}})}function m(e,n){if(k+=e,null==n)return b(),0;var t=o(n,E);if(t)return t.skip?k+=n:(t.eB&&(k+=n),b(),t.rB||t.eB||(k=n)),v(t,n),t.rB?0:n.length;var r=u(E,n);if(r){var a=E;a.skip?k+=n:(a.rE||a.eE||(k+=n),b(),a.eE&&(k=n));do E.cN&&(L+=C),E.skip||(B+=E.r),E=E.parent;while(E!==r.parent);return r.starts&&v(r.starts,""),a.rE?0:n.length}if(c(n,E))throw new Error('Illegal lexeme "'+n+'" for mode "'+(E.cN||"")+'"');return k+=n,n.length||1}var N=w(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);var R,E=i||N,x={},L="";for(R=E;R!==N;R=R.parent)R.cN&&(L=p(R.cN,"",!0)+L);var k="",B=0;try{for(var M,j,O=0;;){if(E.t.lastIndex=O,M=E.t.exec(t),!M)break;j=m(t.substring(O,M.index),M[0]),O=M.index+j}for(m(t.substr(O)),R=E;R.parent;R=R.parent)R.cN&&(L+=C);return{r:B,value:L,language:e,top:E}}catch(T){if(T.message&&-1!==T.message.indexOf("Illegal"))return{r:0,value:n(t)};throw T}}function g(e,t){t=t||I.languages||x(y);var r={r:0,value:n(e)},a=r;return t.filter(w).forEach(function(n){var t=f(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function p(e){return I.tabReplace||I.useBR?e.replace(M,function(e,n){return I.useBR&&"\n"===e?"
":I.tabReplace?n.replace(/\t/g,I.tabReplace):""}):e}function h(e,n,t){var r=n?L[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function d(e){var n,t,r,o,l,s=i(e);a(s)||(I.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/
/g,"\n")):n=e,l=n.textContent,r=s?f(s,l,!0):g(l),t=u(n),t.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=r.value,r.value=c(t,u(o),l)),r.value=p(r.value),e.innerHTML=r.value,e.className=h(e.className,s,r.language),e.result={language:r.language,re:r.r},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.r}))}function b(e){I=o(I,e)}function v(){if(!v.called){v.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,d)}}function m(){addEventListener("DOMContentLoaded",v,!1),addEventListener("load",v,!1)}function N(n,t){var r=y[n]=t(e);r.aliases&&r.aliases.forEach(function(e){L[e]=n})}function R(){return x(y)}function w(e){return e=(e||"").toLowerCase(),y[e]||y[L[e]]}var E=[],x=Object.keys,y={},L={},k=/^(no-?highlight|plain|text)$/i,B=/\blang(?:uage)?-([\w-]+)\b/i,M=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,C=" ",I={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return e.highlight=f,e.highlightAuto=g,e.fixMarkup=p,e.highlightBlock=d,e.configure=b,e.initHighlighting=v,e.initHighlightingOnLoad=m,e.registerLanguage=N,e.listLanguages=R,e.getLanguage=w,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}});hljs.registerLanguage("javascript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,c,a,e.RM];var s=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:t,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,c,e.CLCM,e.CBCM,a,{b:/[{,]\s*/,r:0,c:[{b:r+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:r,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+r+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:r},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:s}]}]},{b:/,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:r}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:s}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("xml",function(s){var e="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/,r:0,c:[{cN:"attr",b:e,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}});
--------------------------------------------------------------------------------
/css/the-grid.min.css:
--------------------------------------------------------------------------------
1 | *,.border-box,::after,::before{box-sizing:border-box}*{margin:0;padding:0}.margin,.space{margin:0 auto}.align-center{justify-content:center;align-items:center}.container{display:flex}.container-inline{display:inline-flex}.wrap{flex-wrap:wrap}.no-wrap{flex-wrap:nowrap}.wrap-reverse{flex-wrap:wrap-reverse}.row{flex-direction:row}.row-reverse{flex-direction:row-reverse}.column{flex-direction:column}.column-reverse{flex-direction:column-reverse}.justify-content-start{justify-content:flex-start}.justify-content-center{justify-content:center}.justify-content-end{justify-content:flex-end}.justify-content-between{justify-content:space-between}.justify-content-around{justify-content:space-around}.align-items-start{align-items:flex-start}.align-items-center{align-items:center}.align-items-end{align-items:flex-end}.align-items-baseline{align-items:baseline}.align-items-stretch{align-items:stretch}.align-self-auto{align-self:auto}.align-self-start{align-self:flex-start}.align-self-center{align-self:center}.align-self-end{align-self:flex-end}.align-self-baseline{align-self:baseline}.align-self-stretch{align-self:stretch}.flex-grow-1{flex-grow:1}.flex-grow-2{flex-grow:2}.flex-grow-3{flex-grow:3}.flex-grow-4{flex-grow:4}.flex-grow-5{flex-grow:5}.flex-grow-6{flex-grow:6}.flex-grow-7{flex-grow:7}.flex-grow-8{flex-grow:8}.flex-grow-9{flex-grow:9}.flex-grow-10{flex-grow:10}.flex-grow-11{flex-grow:11}.flex-grow-12{flex-grow:12}.flex-basis-10{flex-basis:10px}.flex-basis-15{flex-basis:15px}.flex-basis-20{flex-basis:20px}.flex-basis-25{flex-basis:25px}.flex-basis-30{flex-basis:30px}.flex-basis-35{flex-basis:35px}.flex-basis-40{flex-basis:40px}.flex-basis-45{flex-basis:45px}.flex-basis-50{flex-basis:50px}.flex-basis-55{flex-basis:55px}.flex-basis-60{flex-basis:60px}.flex-basis-65{flex-basis:65px}.flex-basis-70{flex-basis:70px}.flex-basis-75{flex-basis:75px}.flex-basis-80{flex-basis:70px}.flex-basis-85{flex-basis:75px}.flex-basis-90{flex-basis:70px}.flex-basis-95{flex-basis:75px}.flex-basis-100{flex-basis:100px}.flex-basis-150{flex-basis:150px}.flex-basis-200{flex-basis:200px}.flex-basis-250{flex-basis:250px}.flex-basis-300{flex-basis:300px}.flex-basis-350{flex-basis:350px}.flex-basis-400{flex-basis:400px}.flex-basis-450{flex-basis:450px}.flex-basis-500{flex-basis:500px}.flex-basis-550{flex-basis:550px}.flex-basis-600{flex-basis:600px}.flex-basis-650{flex-basis:650px}.flex-basis-700{flex-basis:700px}.flex-basis-750{flex-basis:750px}.flex-basis-800{flex-basis:800px}.flex-basis-850{flex-basis:850px}.flex-basis-900{flex-basis:900px}.flex-basis-950{flex-basis:950px}.flex-basis-1000{flex-basis:1000px}.flex-basis-1050{flex-basis:1050px}.flex-basis-1100{flex-basis:1100px}.flex-basis-1150{flex-basis:1150px}.flex-basis-1200{flex-basis:1200px}.row{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.col{flex-basis:0;flex-grow:1;max-width:100%}.col-1{flex-grow:0;flex-basis:8.333333%;max-width:8.333333%}.col-2{flex-grow:0;flex-basis:16.666667%;max-width:16.666667%}.col-3{flex-grow:0;flex-basis:25%;max-width:25%}.col-4{flex-grow:0;flex-basis:33.333333%;max-width:33.333333%}.col-5{flex-grow:0;flex-basis:41.666667%;max-width:41.666667%}.col-6{flex-grow:0;flex-basis:50%;max-width:50%}.col-7{flex-grow:0;flex-basis:58.333333%;max-width:58.333333%}.col-8{flex-grow:0;flex-basis:66.666667%;max-width:66.666667%}.col-9{flex-grow:0;flex-basis:75%;max-width:75%}.col-10{flex-grow:0;flex-basis:83.33333%;max-width:83.33333%}.col-11{flex-grow:0;flex-basis:91.666667%;max-width:91.666667%}.col-12{flex-grow:0;flex-basis:100%;max-width:100%}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.col-sm-1{flex-grow:0;flex-basis:8.333333%;max-width:8.333333%}.col-sm-2{flex-grow:0;flex-basis:16.666667%;max-width:16.666667%}.col-sm-3{flex-grow:0;flex-basis:25%;max-width:25%}.col-sm-4{flex-grow:0;flex-basis:33.333333%;max-width:33.333333%}.col-sm-5{flex-grow:0;flex-basis:41.666667%;max-width:41.666667%}.col-sm-6{flex-grow:0;flex-basis:50%;max-width:50%}.col-sm-7{flex-grow:0;flex-basis:58.333333%;max-width:58.333333%}.col-sm-8{flex-grow:0;flex-basis:66.666667%;max-width:66.666667%}.col-sm-9{flex-grow:0;flex-basis:75%;max-width:75%}.col-sm-10{flex-grow:0;flex-basis:83.33333%;max-width:83.33333%}.col-sm-11{flex-grow:0;flex-basis:91.666667%;max-width:91.666667%}.col-sm-12{flex-grow:0;flex-basis:100%;max-width:100%}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.wrap-sm{flex-wrap:wrap}.no-wrap-sm{flex-wrap:nowrap}.wrap-reverse-sm{flex-wrap:wrap-reverse}.row-sm{flex-direction:row}.row-reverse-sm{flex-direction:row-reverse}.column-sm{flex-direction:column}.column-reverse-sm{flex-direction:column-reverse}.justify-content-sm-start{justify-content:flex-start}.justify-content-sm-center{justify-content:center}.justify-content-sm-end{justify-content:flex-end}.justify-content-sm-between{justify-content:space-between}.justify-content-sm-around{justify-content:space-around}.align-items-sm-start{align-items:flex-start}.align-items-sm-center{align-items:center}.align-items-sm-end{align-items:flex-end}.align-items-sm-baseline{align-items:baseline}.align-items-sm-stretch{align-items:stretch}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.col-md-1{flex-grow:0;flex-basis:8.333333%;max-width:8.333333%}.col-md-2{flex-grow:0;flex-basis:16.666667%;max-width:16.666667%}.col-md-3{flex-grow:0;flex-basis:25%;max-width:25%}.col-md-4{flex-grow:0;flex-basis:33.333333%;max-width:33.333333%}.col-md-5{flex-grow:0;flex-basis:41.666667%;max-width:41.666667%}.col-md-6{flex-grow:0;flex-basis:50%;max-width:50%}.col-md-7{flex-grow:0;flex-basis:58.333333%;max-width:58.333333%}.col-md-8{flex-grow:0;flex-basis:66.666667%;max-width:66.666667%}.col-md-9{flex-grow:0;flex-basis:75%;max-width:75%}.col-md-10{flex-grow:0;flex-basis:83.33333%;max-width:83.33333%}.col-md-11{flex-grow:0;flex-basis:91.666667%;max-width:91.666667%}.col-md-12{flex-grow:0;flex-basis:100%;max-width:100%}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.wrap-md{flex-wrap:wrap}.no-wrap-md{flex-wrap:nowrap}.wrap-reverse-md{flex-wrap:wrap-reverse}.row-md{flex-direction:row}.row-reverse-md{flex-direction:row-reverse}.column-md{flex-direction:column}.column-reverse-md{flex-direction:column-reverse}.justify-content-md-start{justify-content:flex-start}.justify-content-md-center{justify-content:center}.justify-content-md-end{justify-content:flex-end}.justify-content-md-between{justify-content:space-between}.justify-content-md-around{justify-content:space-around}.align-items-md-start{align-items:flex-start}.align-items-md-center{align-items:center}.align-items-md-end{align-items:flex-end}.align-items-md-baseline{align-items:baseline}.align-items-md-stretch{align-items:stretch}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.col-lg-1{flex-grow:0;flex-basis:8.333333%;max-width:8.333333%}.col-lg-2{flex-grow:0;flex-basis:16.666667%;max-width:16.666667%}.col-lg-3{flex-grow:0;flex-basis:25%;max-width:25%}.col-lg-4{flex-grow:0;flex-basis:33.333333%;max-width:33.333333%}.col-lg-5{flex-grow:0;flex-basis:41.666667%;max-width:41.666667%}.col-lg-6{flex-grow:0;flex-basis:50%;max-width:50%}.col-lg-7{flex-grow:0;flex-basis:58.333333%;max-width:58.333333%}.col-lg-8{flex-grow:0;flex-basis:66.666667%;max-width:66.666667%}.col-lg-9{flex-grow:0;flex-basis:75%;max-width:75%}.col-lg-10{flex-grow:0;flex-basis:83.33333%;max-width:83.33333%}.col-lg-11{flex-grow:0;flex-basis:91.666667%;max-width:91.666667%}.col-lg-12{flex-grow:0;flex-basis:100%;max-width:100%}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.wrap-lg{flex-wrap:wrap}.no-wrap-lg{flex-wrap:nowrap}.wrap-reverse-lg{flex-wrap:wrap-reverse}.row-lg{flex-direction:row}.row-reverse-lg{flex-direction:row-reverse}.column-lg{flex-direction:column}.column-reverse-lg{flex-direction:column-reverse}.justify-content-lg-start{justify-content:flex-start}.justify-content-lg-center{justify-content:center}.justify-content-lg-end{justify-content:flex-end}.justify-content-lg-between{justify-content:space-between}.justify-content-lg-around{justify-content:space-around}.align-items-lg-start{align-items:flex-start}.align-items-lg-center{align-items:center}.align-items-lg-end{align-items:flex-end}.align-items-lg-baseline{align-items:baseline}.align-items-lg-stretch{align-items:stretch}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.col-xl-1{flex-grow:0;flex-basis:8.333333%;max-width:8.333333%}.col-xl-2{flex-grow:0;flex-basis:16.666667%;max-width:16.666667%}.col-xl-3{flex-grow:0;flex-basis:25%;max-width:25%}.col-xl-4{flex-grow:0;flex-basis:33.333333%;max-width:33.333333%}.col-xl-5{flex-grow:0;flex-basis:41.666667%;max-width:41.666667%}.col-xl-6{flex-grow:0;flex-basis:50%;max-width:50%}.col-xl-7{flex-grow:0;flex-basis:58.333333%;max-width:58.333333%}.col-xl-8{flex-grow:0;flex-basis:66.666667%;max-width:66.666667%}.col-xl-9{flex-grow:0;flex-basis:75%;max-width:75%}.col-xl-10{flex-grow:0;flex-basis:83.33333%;max-width:83.33333%}.col-xl-11{flex-grow:0;flex-basis:91.666667%;max-width:91.666667%}.col-xl-12{flex-grow:0;flex-basis:100%;max-width:100%}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.wrap-xl{flex-wrap:wrap}.no-wrap-xl{flex-wrap:nowrap}.wrap-reverse-xl{flex-wrap:wrap-reverse}.row-xl{flex-direction:row}.row-reverse-xl{flex-direction:row-reverse}.column-xl{flex-direction:column}.column-reverse-xl{flex-direction:column-reverse}.justify-content-xl-start{justify-content:flex-start}.justify-content-xl-center{justify-content:center}.justify-content-xl-end{justify-content:flex-end}.justify-content-xl-between{justify-content:space-between}.justify-content-xl-around{justify-content:space-around}.align-items-xl-start{align-items:flex-start}.align-items-xl-center{align-items:center}.align-items-xl-end{align-items:flex-end}.align-items-xl-baseline{align-items:baseline}.align-items-xl-stretch{align-items:stretch}}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}.space{width:90%}.margin-10{margin:10px}.margin-20{margin:20px}.margin-30{margin:30px}.margin-40{margin:40px}.margin-50{margin:50px}.padding-10{padding:10px}.padding-20{padding:20px}.padding-30{padding:30px}.padding-40{padding:40px}.padding-50{padding:50px}.margin-left-10{margin-left:10px}.margin-left-20{margin-left:20px}.margin-left-30{margin-left:30px}.margin-left-40{margin-left:40px}.margin-left-50{margin-left:50px}.margin-right-10{margin-right:10px}.margin-right-20{margin-right:20px}.margin-right-30{margin-right:30px}.margin-right-40{margin-right:40px}.margin-right-50{margin-right:50px}.margin-top-10{margin-top:10px}.margin-top-20{margin-top:20px}.margin-top-30{margin-top:30px}.margin-top-40{margin-top:40px}.margin-top-50{margin-top:50px}.margin-bottom-10{margin-bottom:10px}.margin-bottom-20{margin-bottom:20px}.margin-bottom-30{margin-bottom:30px}.margin-bottom-40{margin-bottom:40px}.margin-bottom-50{margin-bottom:50px}.padding-left-10{padding-left:10px}.padding-left-20{padding-left:20px}.padding-left-30{padding-left:30px}.padding-left-40{padding-left:40px}.padding-left-50{padding-left:50px}.padding-right-10{padding-right:10px}.padding-right-20{padding-right:20px}.padding-right-30{padding-right:30px}.padding-right-40{padding-right:40px}.padding-right-50{padding-right:50px}.padding-top-10{padding-top:10px}.padding-top-20{padding-top:20px}.padding-top-30{padding-top:30px}.padding-top-40{padding-top:40px}.padding-top-50{padding-top:50px}.padding-bottom-10{padding-bottom:10px}.padding-bottom-20{padding-bottom:20px}.padding-bottom-30{padding-bottom:30px}.padding-bottom-40{padding-bottom:40px}.padding-bottom-50{padding-bottom:50px}
2 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | The Grid
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | TheGrid
22 |
23 |
24 |
25 | Simple grid based in flexbox. Botstrap 4 compatible.
26 |
27 |
28 |
29 |
30 |
31 |
32 | Grid based on 12 columns (Like a bootstrap 4)
33 |
34 |
35 | 1
36 | 2
37 | 3
38 | 4
39 | 5
40 | 6
41 | 7
42 | 8
43 | 9
44 | 10
45 | 11
46 | 12
47 |
48 |
49 |
50 | <div class="container column">
51 | <div class="col-1">1</div>
52 | <div class="col-2">2</div>
53 | <div class="col-3">3</div>
54 | <div class="col-4">4</div>
55 | <div class="col-5">5</div>
56 | <div class="col-6">6</div>
57 | <div class="col-7">7</div>
58 | <div class="col-8">8</div>
59 | <div class="col-9">9</div>
60 | <div class="col-10">10</div>
61 | <div class="col-11">11</div>
62 | <div class="col-12">12</div>
63 | </div>
64 |
65 |
66 |
67 |
68 | 1
69 | 2
70 | 3
71 | 4
72 | 5
73 | 6
74 | 7
75 | 8
76 | 9
77 | 10
78 | 11
79 | 12
80 |
81 |
82 |
83 | <div class="container column">
84 | <div class="col-1 col-sm-1 col-md-1 col-lg-1 col-xl-1">1</div>
85 | <div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">2</div>
86 | <div class="col-3 col-sm-3 col-md-3 col-lg-3 col-xl-3">3</div>
87 | <div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4">4</div>
88 | <div class="col-5 col-sm-5 col-md-5 col-lg-5 col-xl-5">5</div>
89 | <div class="col-6 col-sm-6 col-md-6 col-lg-6 col-xl-6">6</div>
90 | <div class="col-7 col-sm-7 col-md-7 col-lg-7 col-xl-7">7</div>
91 | <div class="col-8 col-sm-8 col-md-8 col-lg-8 col-xl-8">8</div>
92 | <div class="col-9 col-sm-9 col-md-9 col-lg-9 col-xl-9">9</div>
93 | <div class="col-10 col-sm-10 col-md-10 col-lg-10 col-xl-10">10</div>
94 | <div class="col-11 col-sm-11 col-md-11 col-lg-11 col-xl-11">11</div>
95 | <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">12</div>
96 | </div>
97 |
98 |
99 |
100 |
101 | 1
102 |
103 |
104 |
105 | <div class="container">
106 | <div class="col-12 col-sm-6 col-md-6 col-lg-3 col-xl-3">1</div>
107 | </div>
108 |
109 |
110 |
111 |
112 |
113 | Order control(Resize screen)
114 |
115 |
116 | 1
117 | 2
118 | 3
119 | 4
120 | 5
121 | 6
122 | 7
123 | 8
124 | 9
125 | 10
126 | 11
127 | 12
128 |
129 |
130 |
131 | <div class="container column">
132 | <div class="col-1 col-xl-1 order-xl-1 order-sm-12 order-12">1</div>
133 | <div class="col-2 col-xl-2 order-xl-2 order-sm-11 order-11">2</div>
134 | <div class="col-3 col-xl-3 order-xl-3 order-sm-10 order-10">3</div>
135 | <div class="col-4 col-xl-4 order-xl-4 order-sm-9 order-9">4</div>
136 | <div class="col-5 col-xl-5 order-xl-5 order-sm-8 order-8">5</div>
137 | <div class="col-6 col-xl-6 order-xl-6 order-sm-7 order-7">6</div>
138 | <div class="col-7 col-xl-7 order-xl-7 order-sm-6 order-6">7</div>
139 | <div class="col-8 col-xl-8 order-xl-8 order-sm-5 order-5">8</div>
140 | <div class="col-9 col-xl-9 order-xl-9 order-sm-4 order-4">9</div>
141 | <div class="col-10 col-xl-10 order-xl-10 order-sm-3 order-3">10</div>
142 | <div class="col-11 col-xl-11 order-xl-11 order-sm-2 order-2">11</div>
143 | <div class="col-12 col-xl-12 order-xl-12 order-sm-1 order-1">12</div>
144 | </div>
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | Container row
153 |
154 | 1
155 | 2
156 |
157 |
158 | <div class="container">
159 | <div class="">1</div>
160 | <div class="">2</div>
161 | </div>
162 |
163 |
164 |
165 |
166 |
167 | Container row-reverse
168 |
169 | 1
170 | 2
171 |
172 |
173 | <div class="container row-reverse">
174 | <div class="">1</div>
175 | <div class="">2</div>
176 | </div>
177 |
178 |
179 |
180 |
181 |
182 | Container column
183 |
184 | 1
185 | 2
186 |
187 |
188 | <div class="container column">
189 | <div class="">1</div>
190 | <div class="">2</div>
191 | </div>
192 |
193 |
194 |
195 |
196 |
197 | Container column-reverse
198 |
199 | 1
200 | 2
201 |
202 |
203 | <div class="container column-reverse">
204 | <div class="">1</div>
205 | <div class="">2</div>
206 | </div>
207 |
208 |
209 |
210 |
211 |
212 | Flex-wrap: wrap
213 |
214 | 1
215 | 2
216 |
217 |
218 | <div class="container wrap">
219 | <div class="">1</div>
220 | <div class="">2</div>
221 | </div>
222 |
223 |
224 |
225 |
226 |
227 | Flex-wrap: nowrap
228 |
229 |
230 | 1
231 | 2
232 |
233 |
234 | <div class="container no-wrap">
235 | <div class="">1</div>
236 | <div class="">2</div>
237 | </div>
238 |
239 |
240 |
241 |
242 |
243 |
244 | Justify-content
245 |
246 |
247 | 1
248 | 2
249 |
250 |
251 | <div class="container justify-content-start">
252 | <div class="">1</div>
253 | <div class="">2</div>
254 | </div>
255 |
256 |
257 |
258 | 1
259 | 2
260 |
261 |
262 | <div class="container justify-content-center">
263 | <div class="">1</div>
264 | <div class="">2</div>
265 | </div>
266 |
267 |
268 |
269 | 1
270 | 2
271 |
272 |
273 | <div class="container justify-content-end">
274 | <div class="">1</div>
275 | <div class="">2</div>
276 | </div>
277 |
278 |
279 |
280 | 1
281 | 2
282 |
283 |
284 | <div class="container justify-content-between">
285 | <div class="">1</div>
286 | <div class="">2</div>
287 | </div>
288 |
289 |
290 |
291 | 1
292 | 2
293 |
294 |
295 | <div class="container justify-content-around">
296 | <div class="">1</div>
297 | <div class="">2</div>
298 | </div>
299 |
300 |
301 |
302 |
303 | Align-items
304 |
305 |
306 | 1
307 | 2
308 |
309 |
310 | <div class="container align-items-start">
311 | <div class="">1</div>
312 | <div class="">2</div>
313 | </div>
314 |
315 |
316 |
317 |
318 | 1
319 | 2
320 |
321 |
322 | <div class="container align-items-center">
323 | <div class="">1</div>
324 | <div class="">2</div>
325 | </div>
326 |
327 |
328 |
329 |
330 | 1
331 | 2
332 |
333 |
334 | <div class="container align-items-end">
335 | <div class="">1</div>
336 | <div class="">2</div>
337 | </div>
338 |
339 |
340 |
341 |
342 | 1
343 | 2
344 |
345 |
346 | <div class="container align-items-baseline">
347 | <div class="">1</div>
348 | <div class="">2</div>
349 | </div>
350 |
351 |
352 |
353 |
354 | 1
355 | 2
356 |
357 |
358 | <div class="container align-items-stretch">
359 | <div class="">1</div>
360 | <div class="">2</div>
361 | </div>
362 |
363 |
364 |
365 |
366 |
367 | Align-self
368 |
369 |
370 | 1
371 | 3
372 | 3
373 | 2
374 | 4
375 |
376 |
377 | <div class="container align-items-center">
378 | <div class="">1</div>
379 | <div class="align-self-start">2</div>
380 | <div class="align-self-center">3</div>
381 | <div class="align-self-end">4</div>
382 | <div class="align-self-stretch">5</div>
383 | </div>
384 |
385 |
386 |
387 |
388 |
389 | Flex-grow
390 |
391 | 1
392 |
393 |
394 | <div class="container">
395 | <div class="flex-grow-1">1</div>
396 | </div>
397 |
398 |
399 |
400 | 1
401 | 2
402 |
403 |
404 | <div class="container">
405 | <div class="flex-grow-1">1</div>
406 | <div class="flex-grow-1">2</div>
407 | </div>
408 |
409 |
410 |
411 |
412 |
413 |
414 | 1
415 | 2
416 |
417 |
418 | <div class="container">
419 | <div class="flex-grow-1">1</div>
420 | <div class="flex-grow-5">2</div>
421 | </div>
422 |
423 |
424 |
425 |
426 | 1
427 | 2
428 | 3
429 | 4
430 | 5
431 |
432 |
433 |
434 | <div class="container wrap">
435 | <div class="flex-grow-1">1</div>
436 | <div class="flex-grow-2">2</div>
437 | <div class="flex-grow-3">3</div>
438 | <div class="flex-grow-4">4</div>
439 | <div class="flex-grow-5">5</div>
440 | </div>
441 |
442 |
443 |
444 |
445 |
446 | Flex-basis
447 |
448 | 1
449 | 2
450 | 3
451 |
452 |
453 | <div class="container wrap">
454 | <div class="flex-basis-100">1</div>
455 | <div class="flex-basis-200">2</div>
456 | <div class="flex-basis-300">3</div>
457 | </div>
458 |
459 |
460 |
461 |
462 | 1
463 | 2
464 | 3
465 |
466 |
467 | <div class="container wrap">
468 | <div class="flex-basis-100">1</div>
469 | <div class="flex-basis-200">2</div>
470 | <div class="flex-basis-300 flex-grow-1">3</div>
471 | </div>
472 |
473 |
474 |
475 |
476 | 1
477 | 2
478 | 3
479 |
480 |
481 | <div class="container wrap column">
482 | <div class="flex-basis-100">1</div>
483 | <div class="flex-basis-200">2</div>
484 | <div class="flex-basis-300 flex-grow-1">3</div>
485 | </div>
486 |
487 |
488 |
489 |
490 |
491 | 1
492 |
493 |
494 | 1
495 |
496 |
497 | 1
498 |
499 |
500 | 1
501 |
502 |
503 | 1
504 |
505 |
506 | 1
507 |
508 |
509 | 1
510 |
511 |
512 | 1
513 |
514 |
515 | 1
516 |
517 |
518 | 1
519 |
520 |
521 | 1
522 |
523 |
524 | 1
525 |
526 |
527 | <div class="container">
528 | <div class="flex-basis-100">1</div>
529 | </div>
530 |
531 | <div class="container">
532 | <div class="flex-basis-200">2</div>
533 | </div>
534 |
535 | <div class="container">
536 | <div class="flex-basis-300">3</div>
537 | </div>
538 |
539 | <div class="container">
540 | <div class="flex-basis-400">4</div>
541 | </div>
542 |
543 | <div class="container">
544 | <div class="flex-basis-500">5</div>
545 | </div>
546 |
547 | <div class="container">
548 | <div class="flex-basis-600">6</div>
549 | </div>
550 |
551 | <div class="container">
552 | <div class="flex-basis-700">7</div>
553 | </div>
554 |
555 | <div class="container">
556 | <div class="flex-basis-800">8</div>
557 | </div>
558 |
559 | <div class="container">
560 | <div class="flex-basis-900">9</div>
561 | </div>
562 |
563 | <div class="container">
564 | <div class="flex-basis-1000">10</div>
565 | </div>
566 |
567 | <div class="container">
568 | <div class="flex-basis-1100">11</div>
569 | </div>
570 |
571 | <div class="container">
572 | <div class="flex-basis-1200">12</div>
573 | </div>
574 |
575 |
576 |
577 |
578 |
579 |
580 |
581 |
582 |
583 |
584 |
587 |
588 |
589 |
590 |
--------------------------------------------------------------------------------