shipyard-framework 0.5.87 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/{shipyard.es6 → shipyard.js} +0 -0
  3. data/assets/javascripts/shipyard/{accordion-trigger.es6 → accordion-trigger.js} +0 -0
  4. data/assets/javascripts/shipyard/{accordion.es6 → accordion.js} +0 -0
  5. data/assets/javascripts/shipyard/{alert-timer.es6 → alert-timer.js} +0 -0
  6. data/assets/javascripts/shipyard/{alert.es6 → alert.js} +0 -0
  7. data/assets/javascripts/shipyard/{core.es6 → core.js} +0 -0
  8. data/assets/javascripts/shipyard/{hamburger.es6 → hamburger.js} +0 -0
  9. data/assets/javascripts/shipyard/{modal-trigger.es6 → modal-trigger.js} +0 -0
  10. data/assets/javascripts/shipyard/{modal.es6 → modal.js} +0 -0
  11. data/assets/javascripts/shipyard/{scroll.es6 → scroll.js} +0 -0
  12. data/assets/stylesheets/shipyard/_functions.sass +1 -0
  13. data/assets/stylesheets/shipyard/components/_tooltips.sass +140 -40
  14. data/assets/stylesheets/shipyard/core/_reset.sass +5 -1
  15. data/assets/stylesheets/shipyard/functions/_opposite-direction.sass +9 -0
  16. data/assets/stylesheets/shipyard/utilities/_typography.sass +2 -1
  17. data/lib/shipyard-framework/version.rb +1 -1
  18. metadata +19 -114
  19. data/.gitignore +0 -13
  20. data/.rspec +0 -3
  21. data/.ruby-version +0 -1
  22. data/.travis.yml +0 -40
  23. data/Brewfile +0 -4
  24. data/CODE_OF_CONDUCT.md +0 -74
  25. data/Gemfile +0 -3
  26. data/LICENSE.txt +0 -21
  27. data/README.md +0 -46
  28. data/Rakefile +0 -16
  29. data/ci/build.rb +0 -5
  30. data/ci/deploy +0 -31
  31. data/ci/jekyll +0 -16
  32. data/ci/percy +0 -16
  33. data/ci/sass_lint +0 -47
  34. data/ci/setup +0 -6
  35. data/shipyard.gemspec +0 -28
  36. data/spec/helpers/alert_helper_spec.rb +0 -27
  37. data/spec/helpers/box_helper_spec.rb +0 -27
  38. data/spec/helpers/button_helper_spec.rb +0 -37
  39. data/spec/helpers/form_helper_spec.rb +0 -29
  40. data/spec/helpers/icon_helper_spec.rb +0 -21
  41. data/spec/helpers/note_helper_spec.rb +0 -19
  42. data/spec/shipyard_spec.rb +0 -7
  43. data/spec/spec_helper.rb +0 -104
  44. data/styleguide/.gitignore +0 -3
  45. data/styleguide/.nojekyll +0 -0
  46. data/styleguide/.ruby-version +0 -1
  47. data/styleguide/Gemfile +0 -9
  48. data/styleguide/Gemfile.lock +0 -125
  49. data/styleguide/_assets/css/application.sass +0 -3
  50. data/styleguide/_assets/css/fonts.sass +0 -2
  51. data/styleguide/_assets/css/layout.sass +0 -10
  52. data/styleguide/_assets/css/syntax.css +0 -209
  53. data/styleguide/_assets/css/vendor.sass +0 -4
  54. data/styleguide/_assets/css/views.sass +0 -103
  55. data/styleguide/_assets/img/arrows/down.svg +0 -3
  56. data/styleguide/_assets/img/checkmark.svg +0 -3
  57. data/styleguide/_assets/js/application.es6 +0 -6
  58. data/styleguide/_assets/js/views/components/alert-trigger.es6 +0 -20
  59. data/styleguide/_assets/js/views/utilities/colors.es6 +0 -14
  60. data/styleguide/_config.yml +0 -67
  61. data/styleguide/_data/breakpoints.yml +0 -15
  62. data/styleguide/_includes/css-stats.html +0 -14
  63. data/styleguide/_includes/page-heading.html +0 -4
  64. data/styleguide/_layouts/application.html +0 -45
  65. data/styleguide/_plugins/color_css_class.rb +0 -13
  66. data/styleguide/_plugins/component_css_class.rb +0 -9
  67. data/styleguide/_plugins/css_declarations.rb +0 -16
  68. data/styleguide/_plugins/css_selectors.rb +0 -16
  69. data/styleguide/_plugins/css_size.rb +0 -20
  70. data/styleguide/_plugins/human_size_filter.rb +0 -12
  71. data/styleguide/_plugins/icon_item.rb +0 -28
  72. data/styleguide/_plugins/opacity_css_class.rb +0 -12
  73. data/styleguide/_plugins/sass_generator.rb +0 -55
  74. data/styleguide/_plugins/sass_output.rb +0 -24
  75. data/styleguide/components/alerts.md +0 -107
  76. data/styleguide/components/boxes.md +0 -97
  77. data/styleguide/components/buttons.md +0 -192
  78. data/styleguide/components/checkboxes.md +0 -281
  79. data/styleguide/components/code.html +0 -49
  80. data/styleguide/components/empty-states.html +0 -12
  81. data/styleguide/components/forms.md +0 -151
  82. data/styleguide/components/horizontal-rules.md +0 -82
  83. data/styleguide/components/icons.md +0 -129
  84. data/styleguide/components/index.md +0 -18
  85. data/styleguide/components/modals/_modal.html +0 -100
  86. data/styleguide/components/modals/example-billing.html +0 -80
  87. data/styleguide/components/modals/example-downgrade.html +0 -33
  88. data/styleguide/components/modals/example-small.html +0 -19
  89. data/styleguide/components/modals/example-survey.html +0 -52
  90. data/styleguide/components/modals/example-tall.html +0 -6
  91. data/styleguide/components/modals/index.md +0 -41
  92. data/styleguide/components/notes.md +0 -67
  93. data/styleguide/components/radio-buttons.md +0 -195
  94. data/styleguide/components/statuses.md +0 -324
  95. data/styleguide/components/tables.md +0 -34
  96. data/styleguide/components/tooltips.md +0 -16
  97. data/styleguide/index.md +0 -27
  98. data/styleguide/stats.md +0 -49
  99. data/styleguide/utilities/accordion.md +0 -55
  100. data/styleguide/utilities/border-radius.md +0 -104
  101. data/styleguide/utilities/colors.md +0 -45
  102. data/styleguide/utilities/grid.md +0 -256
  103. data/styleguide/utilities/index.md +0 -19
  104. data/styleguide/utilities/margin-padding.md +0 -124
  105. data/styleguide/utilities/opacity.md +0 -28
  106. data/styleguide/utilities/position.md +0 -24
  107. data/styleguide/utilities/responsive.md +0 -20
  108. data/styleguide/utilities/typography.md +0 -74
@@ -1,34 +0,0 @@
1
- ---
2
- title: Shipyard Tables
3
- description: Tables are useful for tabular data and can be used simple by applying the `.table` class to any table you're working on.
4
- sass_file: shipyard/components/_tables
5
- ---
6
-
7
- {% include page-heading.html page=page %}
8
-
9
- ---
10
-
11
- <table class="table">
12
- <thead>
13
- <th>Flight #</th>
14
- <th>Airline</th>
15
- <th>Departure</th>
16
- <th>Arrival</th>
17
- <th>Notes</th>
18
- </thead>
19
- <tbody>
20
- {% for i in (1..15) %}
21
- <tr>
22
- <td>FR1890</td>
23
- <td>AirFrance</td>
24
- <td>8:00pm @ BOS</td>
25
- <td>10:30am @ CDG</td>
26
- <td>On Time</td>
27
- </tr>
28
- {% endfor %}
29
- </tbody>
30
- </table>
31
-
32
- ---
33
-
34
- {% include css-stats.html %}
@@ -1,16 +0,0 @@
1
- ---
2
- title: Shipyard Tooltips
3
- description: Tooltips are used primarily by setting the tooltip attribute on any element (e.g. `tooltip="..."`).
4
- ---
5
-
6
- {% include page-heading.html page=page %}
7
-
8
- ---
9
-
10
- <div class="align-center">
11
- {% btn Default Tooltip, :secondary :margin, tooltip: 'What a lovely tooltip' %}
12
- {% btn Top, :secondary :margin, tooltip: 'What a lovely tooltip' %}
13
- {% btn Bottom, :secondary :margin, tooltip: 'What a lovely tooltip' %}
14
- {% btn Left, :secondary :margin, tooltip: 'What a lovely tooltip' %}
15
- {% btn Right, :secondary :margin, tooltip: 'What a lovely tooltip' %}
16
- </div>
@@ -1,27 +0,0 @@
1
- ---
2
- title: Shipyard
3
- ---
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'shipyard-framework', '~> {% shipyard_version %}'
11
- ```
12
-
13
- Then add this line to your application's CSS file(s):
14
-
15
- ```css
16
- @import "shipyard"
17
- ```
18
-
19
- Then add this line to your application's JavaScript file(s):
20
-
21
- ```javascript
22
- //= require shipyard
23
- ```
24
-
25
- ## Jekyll Tools
26
- - `shipyard_css_classes`
27
- - `site.env`
@@ -1,49 +0,0 @@
1
- ---
2
- title: Shipyard Stats
3
- ---
4
-
5
- <table class="table">
6
- <thead>
7
- <tr>
8
- <th>CSS File</th>
9
- <th>Selectors</th>
10
- <th>Declarations</th>
11
- <th>Media Queries</th>
12
- <th>Size</th>
13
- <th>%</th>
14
- </tr>
15
- </thead>
16
- {% for sass in site.sass_output -%}
17
- <tr>
18
- {% for hash in sass -%}
19
- {% if hash[0] == 'file' -%}
20
- <td>
21
- <a href="https://github.com/codeship/shipyard/blob/master/assets/stylesheets/{{ hash[1] }}" target="_blank" class="strong blue-dark">
22
- {{ hash[1] }}
23
- </a>
24
- </td>
25
- {% endif -%}
26
-
27
- {% if hash[0] == 'selectors' -%}
28
- <td>{{ hash[1] }}</td>
29
- {% endif -%}
30
-
31
- {% if hash[0] == 'declarations' -%}
32
- <td>{{ hash[1] }}</td>
33
- {% endif -%}
34
-
35
- {% if hash[0] == 'media_queries' -%}
36
- <td>{{ hash[1] }}</td>
37
- {% endif -%}
38
-
39
- {% if hash[0] == 'gzip_size' -%}
40
- <td>{{ hash[1] | number_to_human_size }}</td>
41
- {% endif %}
42
-
43
- {% if hash[0] == 'percentage' -%}
44
- <td>{{ hash[1] }}%</td>
45
- {% endif %}
46
- {% endfor -%}
47
- </tr>
48
- {% endfor -%}
49
- </table>
@@ -1,55 +0,0 @@
1
- ---
2
- title: Accordions
3
- description: Useful when you want to open and close large blocks of content in a more elegant way.
4
- sass_file: shipyard/utilities/_accordion
5
- sizes:
6
- -
7
- name: xs
8
- value: 500px
9
- -
10
- name: sm
11
- value: 750px
12
- -
13
- name: md
14
- value: 1000px
15
- -
16
- name: lg
17
- value: 1500px
18
- -
19
- name: xl
20
- value: 3000px
21
- ---
22
-
23
- {% include page-heading.html page=page %}
24
-
25
- ---
26
-
27
- <div class="box-secondary mb-30">
28
- <div class="box box-padding box-link pt-20 pb-20" accordion="#accordion-example">
29
- Click this box to see an example of the accordion transitions.
30
- </div>
31
- <div id="accordion-example" class="accordion accordion-xs accordion-closed box-padding rounded-bottom">
32
- <p>Donec ullamcorper nulla non metus auctor fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur blandit tempus porttitor. Nullam id dolor id nibh ultricies vehicula ut id elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
33
- <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nulla vitae elit libero, a pharetra augue. Etiam porta sem malesuada magna mollis euismod. Curabitur blandit tempus porttitor. Cras mattis consectetur purus sit amet fermentum.</p>
34
- <p>Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit. Vestibulum id ligula porta felis euismod semper. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec ullamcorper nulla non metus auctor fringilla. Etiam porta sem malesuada magna mollis euismod.</p>
35
- <p>Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Sed posuere consectetur est at lobortis.</p>
36
- <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas faucibus mollis interdum. Cras mattis consectetur purus sit amet fermentum.</p>
37
- </div>
38
- </div>
39
-
40
- ```css
41
- /* Accordion base class needed for the transitions to work during the open and closed states. */
42
- .accordion { transition: opacity 400ms ease, margin 400ms ease, padding 400ms ease, max-height 400ms ease }
43
-
44
- /* Accordion: Open State Sizes */
45
- {%- for size in page.sizes %}
46
- .accordion-{{ size.name }} { max-height: {{ size.value }}; }
47
- {%- endfor %}
48
-
49
- /* Accordion: Closed State */
50
- .accordion-closed { opacity: 0; max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
51
- ```
52
-
53
- ---
54
-
55
- {% include css-stats.html %}
@@ -1,104 +0,0 @@
1
- ---
2
- title: Border-Radius Utilities
3
- description: Shipyard's border-radius utilities are useful for connecting components together.
4
- sass_file: shipyard/utilities/_border-radius
5
- col_classes: col col-50 col-x1-20 mb-10
6
- box_classes: pt-10 pb-10 text-sm strong align-center bg-gray-light gray-dark
7
- directions:
8
- -
9
- label: all
10
- modifier: null
11
- -
12
- label: none
13
- modifier: 0
14
- -
15
- label: top
16
- modifier: top
17
- -
18
- label: bottom
19
- modifier: bottom
20
- -
21
- label: left
22
- modifier: left
23
- -
24
- label: right
25
- modifier: right
26
- -
27
- label: top left
28
- modifier: top-left
29
- -
30
- label: top right
31
- modifier: top-right
32
- -
33
- label: bottom left
34
- modifier: bottom-left
35
- -
36
- label: bottom right
37
- modifier: bottom-right
38
- ---
39
-
40
- {% include page-heading.html page=page %}
41
-
42
- ---
43
-
44
- ## Sizes `.rounded-{ x1..x4 }-{ size }`
45
- The examples below demonstrate the utility classes at each size.
46
- {: .section-description }
47
-
48
- <div class="col-container">
49
- <div class="{{ page.col_classes }}">
50
- <div class="{{ page.box_classes }} rounded">default</div>
51
- </div>
52
- <div class="{{ page.col_classes }}">
53
- <div class="{{ page.box_classes }} rounded-sm">sm</div>
54
- </div>
55
- <div class="{{ page.col_classes }}">
56
- <div class="{{ page.box_classes }} rounded-xs">xs</div>
57
- </div>
58
- <div class="{{ page.col_classes }}">
59
- <div class="{{ page.box_classes }} rounded-0">0</div>
60
- </div>
61
- </div>
62
-
63
- ```css
64
- .rounded { border-radius: 5px }
65
- .rounded-sm { border-radius: 3px }
66
- .rounded-xs { border-radius: 2px }
67
- .rounded-0 { border-radius: 0 }
68
- ```
69
-
70
- ---
71
-
72
- ## Responsive Options `.rounded-{ x1..x4 }-{ direction }`
73
- The examples below demonstrate the utility classes on each breakpoint.
74
- {: .section-description }
75
-
76
- ```html
77
- {% for direction in page.directions -%}
78
- <div class="{% if direction.modifier != 0 and direction.modifier != none %}rounded {% endif %}{{ 'rounded' | component_css_class: direction.modifier }}"><!-- {{ direction.label }} --></div>
79
- {% endfor -%}
80
- ```
81
-
82
- {% for breakpoint in site.data.breakpoints %}
83
- <h3 class="text-md text-light mt-30 mb-10">{{ breakpoint.label }}</h3>
84
- <div class="col-container">
85
- {% for direction in page.directions %}
86
- <div class="{{ page.col_classes }}">
87
- <div class="{{ page.box_classes }} rounded {{ 'rounded' | component_css_class: breakpoint.modifier, direction.modifier }}" tooltip="{{ '.rounded' | component_css_class: breakpoint.modifier, direction.modifier }}">
88
- {{ direction.label }}
89
- </div>
90
- </div>
91
- {% endfor %}
92
- </div>
93
- {% endfor %}
94
-
95
- ---
96
-
97
- ### Utility CSS
98
- ```css
99
- {% sass_output -%}
100
- ```
101
-
102
- ---
103
-
104
- {% include css-stats.html %}
@@ -1,45 +0,0 @@
1
- ---
2
- title: Shipyard Colors
3
- description: Shipyard includes **9 standard colors** by default, and each color can be accessed with the corresponding CSS utility class `.color-shade` or by using the SASS variable `$color-shade` in your SASS files.
4
- sass_file: shipyard/utilities/_colors
5
- primary_colors: [Gray, Blue, Teal, Green, Yellow, Orange, Red, Coral, Purple]
6
- shades: [Lightest, Lighter, Light, Base, Dark, Darker, Darkest]
7
- base_colors: [Black, White]
8
- ---
9
-
10
- {% include page-heading.html page=page %}
11
-
12
- ---
13
-
14
- {% for color in page.primary_colors %}
15
- <ul class="col-container shade-list mb-30" shade-list>
16
- {% for shade in page.shades %}
17
- <li class="col col-50 col-x1-25 col-x2-0 pl-5 pr-5 pl-x1-10 pr-x1-10 mb-10 mb-x1-20 shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
18
- <div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
19
- <div class="shade-color col-center text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
20
- <p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
21
- ${{ color | color_css_class: shade }}
22
- </p>
23
- </div>
24
- </li>
25
- {% endfor %}
26
- </ul>
27
- {% endfor %}
28
-
29
- <ul class="col-container shade-list mb-30" shade-list>
30
- {% assign shade = 'Base' %}
31
- {% for color in page.base_colors %}
32
- <li class="col pl-5 pr-5 pl-x1-10 pr-x1-10 mb-10 mb-x1-20 shade-item shade-{{ shade | downcase }} shade-{{ color | color_css_class: shade }}">
33
- <div class="shade-box box bg-{{ color | color_css_class: shade }} shade-{{ shade | downcase | replace: 'er', '' | replace: 'est', '' }}">
34
- <div class="shade-color text-xxl bold bg-{{ color | color_css_class: shade }}" shade-color></div>
35
- <p class="shade-text text-sm medium {{ color | color_css_class: shade }}">
36
- ${{ color | color_css_class }}
37
- </p>
38
- </div>
39
- </li>
40
- {% endfor %}
41
- </ul>
42
-
43
- ---
44
-
45
- {% include css-stats.html %}
@@ -1,256 +0,0 @@
1
- ---
2
- title: Shipyard Grid
3
- description: The Shipyard grid is a percentage-based, flexbox grid and is entirely responsive. Each class needs the foundational `.col` class in order to function properly, and also should be contained inside the `.col-container` as well.
4
- sass_file: shipyard/utilities/_grid
5
- container_classes: col-container mt-10 mt-x1-15 mt-x2-20 mb-10 mb-x1-15 mb-x2-20
6
- box_classes: utilities-grid-box col-center box-secondary text-lighter text-sm strong align-center
7
- example_flex_columns: [10,20,25,33,50]
8
- example_sizes: [5,10,15,20,25,30,33,35,40,45,50,55,60,65,66,70,75,80,85,90,95,100]
9
- example_offsets: [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75]
10
- ---
11
-
12
- {% include page-heading.html page=page %}
13
-
14
- ---
15
-
16
- ### Flexible Columns `.col`
17
- By default, the flexbox-based grid will automatically size each column inside the container.
18
- {: .section-description }
19
-
20
- {% for example in page.example_flex_columns %}
21
- <div class="{{ page.container_classes }}">
22
- {% assign num = 100 | divided_by: example %}
23
- {% for i in (1..num) %}
24
- <div class="col">
25
- <div class="{{ page.box_classes }}">{{ example }}</div>
26
- </div>
27
- {% endfor %}
28
- </div>
29
- {% endfor %}
30
- <div class="{{ page.container_classes }}">
31
- <div class="col col-66 align-center">
32
- <div class="{{ page.box_classes }}">66</div>
33
- </div>
34
- <div class="col align-center">
35
- <div class="{{ page.box_classes }}">auto</div>
36
- </div>
37
- </div>
38
-
39
- ```html
40
- <div class="col-container">
41
- <div class="col"><!-- column contents --></div>
42
- <div class="col"><!-- column contents --></div>
43
- <div class="col"><!-- column contents --></div>
44
- </div>
45
- ```
46
-
47
- ---
48
-
49
- ### Column Sizes `.col-{ n }`
50
- The column sizes are percentage-based and available in any size from `5-100` in increments of 5.
51
- {: .section-description }
52
-
53
- {% for example in page.example_sizes %}
54
- <div class="{{ page.container_classes }}">
55
- {% assign num = 100 | divided_by: example %}
56
- {% for i in (1..num) %}
57
- <div class="col col-{{ example }}">
58
- <div class="{{ page.box_classes }}">{{ example }}</div>
59
- </div>
60
- {% endfor %}
61
-
62
- {% assign remainder = 100 | modulo: example %}
63
- {% if remainder > 1 %}
64
- <div class="col col-{{ remainder }}">
65
- <div class="{{ page.box_classes }}">{{ remainder }}</div>
66
- </div>
67
- {% endif %}
68
- </div>
69
- {% endfor %}
70
-
71
- ```html
72
- <div class="col-container">
73
- <div class="col col-33"><!-- column contents --></div>
74
- <div class="col col-33"><!-- column contents --></div>
75
- <div class="col col-33"><!-- column contents --></div>
76
- </div>
77
- ```
78
-
79
- ---
80
-
81
- ### Offset Columns `.col-offset-{ n }`
82
- Useful when you need to push columns to the right to fill some empty space.
83
- {: .section-description }
84
-
85
- {% assign example_offsets = page.example_offsets | reverse %}
86
- {% for i in example_offsets %}
87
- <div class="{{ page.container_classes }}">
88
- <div class="col col-{{ i }}">
89
- <div class="{{ page.box_classes }}">{{ i }}</div>
90
- </div>
91
- {% if i < 100 %}
92
- <div class="col col-20 col-offset-{{ 80 | minus: i }}">
93
- <div class="{{ page.box_classes }}">offset {{ 80 | minus: i }}</div>
94
- </div>
95
- {% endif %}
96
- </div>
97
- {% endfor %}
98
- ```html
99
- <div class="col-container">
100
- <div class="col col-70"><!-- column contents --></div>
101
- <div class="col col-20 col-offset-10"><!-- column contents --></div>
102
- </div>
103
- ```
104
-
105
- ---
106
-
107
- ### Responsive Columns `.col-{ x1..x4 }-{ n }`
108
- Useful when you want to build a grid that works for any size of screen.
109
- {: .section-description }
110
-
111
- <div class="{{ page.container_classes }}">
112
- {% for i in (1..7) %}
113
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0">
114
- <div class="{{ page.box_classes }}">
115
- <span class="display-block display-x1-none">100</span>
116
- <span class="display-none display-x1-block display-x2-none">33</span>
117
- <span class="display-none display-x2-block display-x3-none">25</span>
118
- <span class="display-none display-x3-block">auto</span>
119
- </div>
120
- </div>
121
- {% endfor %}
122
- </div>
123
-
124
- ```html
125
- <div class="col-container-wrap">
126
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 1 --></div>
127
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 2 --></div>
128
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 3 --></div>
129
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 4 --></div>
130
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 5 --></div>
131
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 6 --></div>
132
- <div class="col col-100 col-x1-33 col-x2-25 col-x3-0"><!-- column 7 --></div>
133
- </div>
134
- ```
135
-
136
- ---
137
-
138
- ### Take-Up-The-Rest Columns `.col-container-nowrap`
139
- This type of layout is useful in all kinds of scenarios, especially when you have the auto-sized column contains some kind of call-to-action.
140
- {: .section-description }
141
-
142
- <div class="{{ page.container_classes | replace: 'col-container', 'col-container-nowrap' }}">
143
- <div class="col col-100">
144
- <div class="{{ page.box_classes }}">Take-up-the-rest Column</div>
145
- </div>
146
- <div class="col">
147
- <div class="white-space-nowrap {{ page.box_classes }}">Variable Column</div>
148
- </div>
149
- </div>
150
-
151
- ```html
152
- <div class="col-container-nowrap">
153
- <div class="col col-100">
154
- <!-- Take-Up-The-Rest Column -->
155
- </div>
156
- <div class="col">
157
- <!-- Variable Column -->
158
- </div>
159
- </div>
160
- ```
161
-
162
- ---
163
-
164
- ### Nested Columns
165
- Nested grids can be tricky to build and somewhat fragile by nature. For the best results, pay special attention to how you want each column to respond at various screen sizes and test each breakpoint thoroughly.
166
- {: .section-description }
167
-
168
- <div class="{{ page.container_classes }}">
169
- <div class="col col-40 display-flex">
170
- <div class="{{ page.box_classes }}">40</div>
171
- </div>
172
- <div class="col col-60">
173
- <div class="{{ page.box_classes }} mb-10 mb-x1-15 mb-x2-20">60</div>
174
- <div class="col-container">
175
- <div class="col"><div class="{{ page.box_classes }}">20</div></div>
176
- <div class="col"><div class="{{ page.box_classes }}">20</div></div>
177
- <div class="col"><div class="{{ page.box_classes }}">20</div></div>
178
- </div>
179
- </div>
180
- </div>
181
-
182
- ```html
183
- <div class="col-container">
184
- <div class="col col-40">
185
- <!-- 40% column -->
186
- </div>
187
- <div class="col col-60">
188
- <!-- 60% column -->
189
- <div class="col-container">
190
- <div class="col"><!-- auto column --></div>
191
- <div class="col"><!-- auto column --></div>
192
- <div class="col"><!-- auto column --></div>
193
- </div>
194
- </div>
195
- </div>
196
- ```
197
-
198
- ---
199
-
200
- ### Reversible Columns `.flex-{ x1..x4 }-{ col | col-reverse | row | row-reverse }`
201
- Useful when the flow of the content should be different at a certain breakpoint.
202
- {: .section-description }
203
-
204
- <div class="{{ page.container_classes }}">
205
- <div class="col flex-col flex-x2-col-reverse">
206
- <div class="{{ page.box_classes }} bg-teal-lighter">
207
- <span class="teal-darker display-inline display-x2-none">top (mobile)</span>
208
- <span class="teal-darker display-none display-x2-inline">bottom (desktop)</span>
209
- </div>
210
- <div class="col-container mt-10 mt-x2-15 mb-10 mb-x2-15 flex-row flex-x2-row-reverse">
211
- <div class="col">
212
- <div class="{{ page.box_classes }} bg-blue-lighter">
213
- <span class="blue-darker display-inline display-x2-none">left (mobile)</span>
214
- <span class="blue-darker display-none display-x2-inline">right (desktop)</span>
215
- </div>
216
- </div>
217
- <div class="col">
218
- <div class="{{ page.box_classes }} bg-green-lighter">
219
- <span class="green-darker">middle</span>
220
- </div>
221
- </div>
222
- <div class="col">
223
- <div class="{{ page.box_classes }} bg-yellow-lighter">
224
- <span class="yellow-darker display-inline display-x2-none">right (mobile)</span>
225
- <span class="yellow-darker display-none display-x2-inline">left (desktop)</span>
226
- </div>
227
- </div>
228
- </div>
229
- <div class="{{ page.box_classes }} bg-orange-lightest">
230
- <span class="orange-darker display-inline display-x2-none">bottom (mobile)</span>
231
- <span class="orange-darker display-none display-x2-inline">top (desktop)</span>
232
- </div>
233
- </div>
234
- </div>
235
-
236
- ```html
237
- <div class="col-container">
238
- <div class="col flex-col flex-x2-col-reverse">
239
- <div>
240
- <!-- top on mobile; bottom on desktop -->
241
- </div>
242
- <div class="col-container flex-row flex-x2-row-reverse">
243
- <div class="col"><!-- left on mobile; right on desktop --></div>
244
- <div class="col"><!-- middle on all breakpoints --></div>
245
- <div class="col"><!-- right on mobile; left on desktop --></div>
246
- </div>
247
- <div>
248
- <!-- bottom on mobile; top on desktop -->
249
- </div>
250
- </div>
251
- </div>
252
- ```
253
-
254
- ---
255
-
256
- {% include css-stats.html %}