Skip to content

Commit 706f63e

Browse files
committed
docs(layout): update with new css utility classes and diagrams
1 parent e9cc2a9 commit 706f63e

File tree

10 files changed

+271
-177
lines changed

10 files changed

+271
-177
lines changed

docs/layout/css-utilities.md

Lines changed: 259 additions & 165 deletions
Large diffs are not rendered by default.
32.2 KB
Loading

static/img/layout/align-items.png

20.2 KB
Loading

static/img/layout/align-self.png

18.8 KB
Loading
24 KB
Loading

static/img/layout/flex-wrap.png

23.4 KB
Loading
26.9 KB
Loading

versioned_docs/version-v5/layout/css-utilities.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: CSS Utilities
66

77
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
88

9-
:::note
9+
:::important
1010
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
1111
:::
1212

@@ -121,7 +121,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
121121

122122
### Float Elements
123123

124-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
124+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
125125

126126
```html
127127
<ion-grid>
@@ -165,7 +165,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
165165

166166
## Element Display
167167

168-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
168+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
169169

170170
```html
171171
<ion-grid>
@@ -190,7 +190,7 @@ The display CSS property determines if an element should be visible or not. The
190190
| ----------- | --------------- | --------------------------- |
191191
| `.ion-hide` | `display: none` | The element will be hidden. |
192192

193-
### Responsive Display Attributes
193+
### Responsive Display Classes
194194

195195
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
196196

versioned_docs/version-v6/layout/css-utilities.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ title: CSS Utilities
1212

1313
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
1414

15-
:::note
15+
:::important
1616
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
1717
:::
1818

@@ -127,7 +127,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
127127

128128
### Float Elements
129129

130-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
130+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
131131

132132
```html
133133
<ion-grid>
@@ -171,7 +171,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
171171

172172
## Element Display
173173

174-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
174+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
175175

176176
```html
177177
<ion-grid>
@@ -196,7 +196,7 @@ The display CSS property determines if an element should be visible or not. The
196196
| ----------- | --------------- | --------------------------- |
197197
| `.ion-hide` | `display: none` | The element will be hidden. |
198198

199-
### Responsive Display Attributes
199+
### Responsive Display Classes
200200

201201
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
202202

versioned_docs/version-v7/layout/css-utilities.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inlineHtmlPreviews: true
1414

1515
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
1616

17-
:::note
17+
:::important
1818
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
1919
:::
2020

@@ -129,7 +129,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
129129

130130
### Float Elements
131131

132-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
132+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
133133

134134
```html
135135
<ion-grid>
@@ -190,7 +190,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
190190

191191
## Element Display
192192

193-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
193+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
194194

195195
```html
196196
<ion-grid>
@@ -215,7 +215,7 @@ The display CSS property determines if an element should be visible or not. The
215215
| ----------- | --------------- | --------------------------- |
216216
| `.ion-hide` | `display: none` | The element will be hidden. |
217217

218-
### Responsive Display Attributes
218+
### Responsive Display Classes
219219

220220
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
221221

0 commit comments

Comments
 (0)