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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,14 @@ If you are new to CSS Grid, please try [learning the basics](https://www.google.
73
73
|`.bootstrap-padding`| Add one unit of padding to element on all sides |
74
74
|`.bootstrap-padding--[bottom, left, right, top]`| Add one unit of padding to element on one side |
75
75
|`.bootstrap-padding--[horizontal, vertical]`| Add one unit of padding to element on two sides |
76
+
|`.bootstrap-grid__col--sm--[1-12]`| Set the width out of 12 columns for an item in the grid starting at the sm breakpoint |
77
+
|`.bootstrap-grid__col--[sm]--0`| Do not display item at a specific breakpoint, but display at the next breakpoint with columns specified |
78
+
|`.bootstrap-grid__col--[sm]--0--only`| Do not display item only at specific breakpoint |
76
79
77
80
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`.
78
81
82
+
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.
83
+
79
84
### Legacy
80
85
81
86
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.
@@ -84,17 +89,12 @@ Please remember that the classes below have no affect on browsers that have [CSS
|`.bootstrap-grid__col--sm--[1-12]`| Set the width out of 12 columns for an item in the grid starting at the sm breakpoint |
88
-
|`.bootstrap-grid__col--[sm]--0`| Do not display item at a specific breakpoint, but display at the next breakpoint with columns specified |
89
-
|`.bootstrap-grid__col--[sm]--0--only`| Do not display item only at specific breakpoint |
90
92
|`.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 |
91
93
|`.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 |
92
94
|`.bootstrap-grid__height--[sm]--0`| Reset the min-height for an item starting at the specified breakpoint |
93
95
94
96
The legacy `.bootstrap-grid__height-fixed--[sm]--[1-30]` class follows the numbering system as described in our height variables](#Fixed Height).
95
97
96
-
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 `35` will create `.bootstrap-grid__col--35--1` and `.bootstrap-grid__height-fixed--35--1`. Since that custom breakpoint is right after the previous breakpoint, it will have the same amount of columns and min-height.
97
-
98
98
## Variables
99
99
100
100
If your project is comfortable with the browser support for
0 commit comments