You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: examples/bootstrap/css-gridish/README.md
+7-19Lines changed: 7 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ The Chrome extension uses the same shortcuts. To set the extension up:
19
19
20
20
## Legacy Support
21
21
22
-
If you have no need to support browsers like IE 11 and Edge <15, please use `css/bootstrap-grid.min.css` and ignore the legacy classes below for efficiency’s sake.
22
+
If you have no need to support browsers like IE 11 and Edge <15, please use `css/bootstrap-grid.min.css`. This will omit the CSS Flexbox fallback from your code.
23
23
24
-
If you are supporting browsers that lack [CSS Grid Layout support](https://developer.mozilla.org/en-US/docs/Web/CSS/grid#Browser_compatibility), you can use `css/bootstrap-grid-legacy.min.css` and the legacy classes below. With the legacy file and classes, the browsers that do not support the final CSS Grid Legacy spec will fallback to a flexbox alternative. The flexbox alternative supports embedded subgrids that still reflect the overall grid system’s column structure.
24
+
If you are supporting browsers that lack [CSS Grid Layout support](https://developer.mozilla.org/en-US/docs/Web/CSS/grid#Browser_compatibility), you can use `css/bootstrap-grid-legacy.min.css` and the legacy classes below. With the legacy file, the browsers that do not support the final CSS Grid Legacy spec will fallback to a flexbox alternative. The flexbox alternative supports embedded subgrids that still reflect the overall grid system’s column structure.
25
25
26
26
### Transitioning from Legacy
27
27
@@ -77,24 +77,12 @@ If you are new to CSS Grid, please try [learning the basics](https://www.google.
77
77
|`.bootstrap-grid__col--sm--[1-12]`| Set the width out of 12 columns for an item in the grid starting at the sm breakpoint |
78
78
|`.bootstrap-grid__col--[sm]--0`| Do not display item at a specific breakpoint, but display at the next breakpoint with columns specified |
79
79
|`.bootstrap-grid__col--[sm]--0--only`| Do not display item only at specific breakpoint |
80
-
81
-
By default, the grid code uses fluid columns and fixed rows. You can switch both aspects with `.bootstrap-grid--fixed-columns` and `.bootstrap-grid--fluid-rows`.
82
-
83
-
If you follow the instructions above for custom breakpoints, all of these legacy classes will generate with a version for each custom breakpoint too. For example, adding the custom breakpoint of `whateversize` will create `.bootstrap-grid__col--whateversize--1`. Since that custom breakpoint is right after the previous breakpoint, it will have the same amount of columns and min-height.
84
-
85
-
### Legacy
86
-
87
-
The following classes are only necessary if supporting browsers that do not have [CSS Grid Layout support](https://developer.mozilla.org/en-US/docs/Web/CSS/grid#Browser_compatibility). The previous classes are also necessary for modern browsers.
88
-
89
-
Please remember that the classes below have no affect on browsers that have [CSS Grid Layout support](https://developer.mozilla.org/en-US/docs/Web/CSS/grid#Browser_compatibility).
|`.bootstrap-grid__height-fixed--[sm]--[1-30]`| Set the min-height based on an interval of 15px for an item starting at the breakpoint specified |
94
-
|`.bootstrap-grid__height-fluid--sm--[1-12]`| Set the min-height on the width of 1-12 columns for an item starting at the sm breakpoint |
80
+
|`.bootstrap-grid__height--[sm]--[1-30]`| Set the min-height based on an interval of 15px for an item starting at the breakpoint specified |
95
81
|`.bootstrap-grid__height--[sm]--0`| Reset the min-height for an item starting at the specified breakpoint |
96
82
97
-
The legacy `.bootstrap-grid__height-fixed--[sm]--[1-30]` class follows the numbering system as described in our height variables](#Fixed Height).
83
+
By default, the grid code uses fluid columns and fixed rows. You can switch both aspects with `.bootstrap-grid--fixed-columns` and `.bootstrap-grid--fluid-rows`. When switching to fluid rows, the rows will scale across breakpoints just like `col` classes and only supports quantities up to the amount of columns in that breakpoint.
84
+
85
+
If you follow the instructions above for custom breakpoints, all of the `col` and `height` classes will generate with a version for each custom breakpoint too. For example, adding the custom breakpoint of `whateversize` will create `.bootstrap-grid__col--whateversize--1`. Since that custom breakpoint is right after the previous breakpoint, it will have the same amount of columns and min-height.
98
86
99
87
## Variables
100
88
@@ -139,7 +127,7 @@ it is difficult for you to write semantic HTML with CSS Grid Layout. We are
139
127
able to take advantage of vw units and the calc function so you can embed
140
128
`.bootstrap-grid` elements inside of each other and still respect the overall grid design.
141
129
142
-
### Why are there no row classes for the legacy implementation?
130
+
### Why are there no grouping row classes needed?
143
131
144
132
Thanks to flexbox’s wrapping functionality, nodes that specify rows are not necessary. Only create a node for a row if it has semantic or accessibility significance. You can keep embedding `.bootstrap-grid` as necessary to accomplish this.
0 commit comments