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
Copy file name to clipboardExpand all lines: docs/layout/css-utilities.md
+53-7Lines changed: 53 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ If your app was not started using an available Ionic Framework starter, the styl
18
18
19
19
## Text Modification
20
20
21
-
### Text Alignment
21
+
### Text Align
22
22
23
23
```html
24
24
<ion-grid>
@@ -76,7 +76,7 @@ If your app was not started using an available Ionic Framework starter, the styl
76
76
|`.ion-text-wrap`|`white-space: normal`| Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes. |
77
77
|`.ion-text-nowrap`|`white-space: nowrap`| Collapses whitespace as for `normal`, but suppresses line breaks (text wrapping) within text. |
78
78
79
-
### Text Transformation
79
+
### Text Transform
80
80
81
81
```html
82
82
<ion-grid>
@@ -125,7 +125,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
125
125
126
126
## Element Placement
127
127
128
-
### Float Elements
128
+
### Float
129
129
130
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.
131
131
@@ -188,8 +188,12 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
188
188
189
189
## Element Display
190
190
191
+
### Display
192
+
191
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.
192
194
195
+
Ionic provides the following utility classes for `display`:
|`.ion-display-none`|`display: none`| Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). |
@@ -236,7 +240,7 @@ The following classes are deprecated and will be removed in the next major relea
236
240
237
241
## Content Space
238
242
239
-
### Element Padding
243
+
### Padding
240
244
241
245
The padding class sets the padding area of an element. The padding area is the space between the content of the element and its border.
242
246
@@ -286,7 +290,7 @@ The default amount of `padding` to be applied is `16px` and is set by the `--ion
286
290
|`.ion-padding-horizontal`|`padding: 0 16px`| Applies padding to the left and right. |
287
291
|`.ion-no-padding`|`padding: 0`| Applies no padding to all sides. |
288
292
289
-
### Element Margin
293
+
### Margin
290
294
291
295
The margin area extends the border area with an empty area used to separate the element from its neighbors.
292
296
@@ -344,8 +348,12 @@ Flexbox properties are divided into two categories: **container properties** tha
344
348
345
349
### Align Items
346
350
351
+
The [align-items](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items) CSS property sets the [align-self](#align-self) value on all direct children as a group. In flexbox, it controls the alignment of items on the cross axis. In grid layout, it controls the alignment of items on the block axis within their grid areas.
|`.ion-align-items-start`|`align-items: flex-start`| Items are packed toward the start on the cross axis. |
@@ -356,8 +364,14 @@ Flexbox properties are divided into two categories: **container properties** tha
356
364
357
365
### Align Content
358
366
367
+
The [align-content](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content) CSS property sets the distribution of space between and around content items along a flexbox's cross axis, or a grid or block-level element's block axis.
368
+
369
+
This property has no effect on single line flex containers (i.e., ones with `flex-wrap: nowrap`).
|`.ion-align-content-start`|`align-content: flex-start`| Lines are packed toward the start of the cross axis. |
@@ -369,8 +383,12 @@ Flexbox properties are divided into two categories: **container properties** tha
369
383
370
384
### Justify Content
371
385
386
+
The [justify-content](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) CSS property defines how the browser distributes space between and around content items along the main axis of a flex container and the inline axis of grid and multicol containers.
|`.ion-justify-content-start`|`justify-content: flex-start`| Items are packed toward the start on the main axis. |
@@ -382,8 +400,12 @@ Flexbox properties are divided into two categories: **container properties** tha
382
400
383
401
### Flex Direction
384
402
403
+
The [flex-direction](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction) CSS property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed).
|`.ion-flex-row`|`flex-direction: row`| Items are placed in the same direction as the text direction. |
@@ -393,8 +415,12 @@ Flexbox properties are divided into two categories: **container properties** tha
393
415
394
416
### Flex Wrap
395
417
418
+
The [flex-wrap](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap) CSS property sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked.
|`.ion-flex-nowrap`|`flex-wrap: nowrap`| Items will all be on one line. |
@@ -435,8 +461,14 @@ Flex item properties control how individual flex items behave within their flex
435
461
436
462
### Align Self
437
463
464
+
The [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) CSS property overrides a grid or flex item's align-items value. In grid, it aligns the item inside the grid area. In flexbox, it aligns the item on the cross axis.
465
+
466
+
The property doesn't apply to block-level boxes, or to table cells. If a flexbox item's cross-axis margin is `auto`, then `align-self` is ignored.
|`.ion-align-self-start`|`align-self: flex-start`| Item is packed toward the start on the cross axis. |
@@ -448,7 +480,7 @@ Flex item properties control how individual flex items behave within their flex
448
480
449
481
### Flex
450
482
451
-
The `flex`property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basis`. It controls how flex items grow and shrink within their container.
483
+
The [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) CSS property is a shorthand property for `flex-grow`, `flex-shrink` and `flex-basis`. It sets how a flex item will grow or shrink to fit the space available in its flex container.
452
484
453
485
```html
454
486
<ion-grid>
@@ -502,6 +534,8 @@ The `flex` property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basi
502
534
</ion-grid>
503
535
```
504
536
537
+
Ionic provides the following utility classes for `flex`:
|`.ion-flex-1`|`flex: 1`| Item grows and shrinks equally with other flex items. |
@@ -511,6 +545,8 @@ The `flex` property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basi
511
545
512
546
### Flex Grow
513
547
548
+
The [flex-grow](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow) CSS property sets the flex grow factor, which specifies how much of the flex container's positive free space, if any, should be assigned to the flex item's main size.
549
+
514
550
```html
515
551
<ion-grid>
516
552
<ion-row>
@@ -527,13 +563,17 @@ The `flex` property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basi
527
563
</ion-grid>
528
564
```
529
565
566
+
Ionic provides the following utility classes for `flex-grow`:
|`.ion-flex-grow-0`|`flex-grow: 0`| Item does not grow beyond its content size. |
533
571
|`.ion-flex-grow-1`|`flex-grow: 1`| Item grows to fill available space proportionally. |
534
572
535
573
### Flex Shrink
536
574
575
+
The [flex-shrink](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink) CSS property sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, the flex items can shrink to fit according to their `flex-shrink` value. Each flex line's negative free space is distributed between the line's flex items that have a `flex-shrink` value greater than `0`.
576
+
537
577
```html
538
578
<ion-grid>
539
579
<ion-row>
@@ -550,13 +590,17 @@ The `flex` property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basi
550
590
</ion-grid>
551
591
```
552
592
593
+
Ionic provides the following utility classes for `flex-shrink`:
|`.ion-flex-shrink-0`|`flex-shrink: 0`| Item does not shrink below its content size. |
556
598
|`.ion-flex-shrink-1`|`flex-shrink: 1`| Item shrinks proportionally when container is too small. |
557
599
558
600
### Order
559
601
602
+
The [order](https://developer.mozilla.org/en-US/docs/Web/CSS/order) CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending `order` value and then by their source code order. Items not given an explicit `order` value are assigned the default value of `0`.
603
+
560
604
```html
561
605
<ion-grid>
562
606
<ion-row>
@@ -576,6 +620,8 @@ The `flex` property is a shorthand for `flex-grow`, `flex-shrink` and `flex-basi
576
620
</ion-grid>
577
621
```
578
622
623
+
Ionic provides the following utility classes for `order`:
|`.ion-order-first`|`order: -1`| Item appears first in the flex container. |
@@ -610,7 +656,7 @@ The table below shows the default behavior, where `{property}` is one of the fol
610
656
611
657
## Border Display
612
658
613
-
The border display CSS property determines if the border should be visible or not. The property can be applied to the ion-header and the ion-footer.
659
+
The `.ion-no-border` utility class can be used to remove borders from Ionic components. This class can be applied to the `ion-header` and `ion-footer` components.
Copy file name to clipboardExpand all lines: versioned_docs/version-v5/api/item.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The below chart details the item slots and where it will place the element insid
52
52
|`end`| Placed to the right of all other content in LTR, and to the `left` in RTL. |
53
53
| none | Placed inside of the input wrapper. |
54
54
55
-
### Text Alignment
55
+
### Text Align
56
56
57
57
Items left align text and add an ellipsis when the text is wider than the item. See the [CSS Utilities Documentation](../layout/css-utilities.md) for classes that can be added to `<ion-item>` to transform the text.
Copy file name to clipboardExpand all lines: versioned_docs/version-v5/layout/css-utilities.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
@@ -12,7 +12,7 @@ If your app was not started using an available Ionic Framework starter, the styl
12
12
13
13
## Text Modification
14
14
15
-
### Text Alignment
15
+
### Text Align
16
16
17
17
```html
18
18
<ion-grid>
@@ -70,7 +70,7 @@ If your app was not started using an available Ionic Framework starter, the styl
70
70
|`.ion-text-wrap`|`white-space: normal`| Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes. |
71
71
|`.ion-text-nowrap`|`white-space: nowrap`| Collapses whitespace as for `normal`, but suppresses line breaks (text wrapping) within text. |
72
72
73
-
### Text Transformation
73
+
### Text Transform
74
74
75
75
```html
76
76
<ion-grid>
@@ -203,7 +203,7 @@ There are also additional classes to modify the visibility based on the screen s
203
203
204
204
## Content Space
205
205
206
-
### Element Padding
206
+
### Padding
207
207
208
208
The padding class sets the padding area of an element. The padding area is the space between the content of the element and its border.
209
209
@@ -253,7 +253,7 @@ The default amount of `padding` to be applied is `16px` and is set by the `--ion
253
253
|`.ion-padding-horizontal`|`padding: 0 16px`| Applies padding to the left and right. |
254
254
|`.ion-no-padding`|`padding: 0`| Applies no padding to all sides. |
255
255
256
-
### Element Margin
256
+
### Margin
257
257
258
258
The margin area extends the border area with an empty area used to separate the element from its neighbors.
259
259
@@ -493,7 +493,7 @@ The default amount of `margin` to be applied is `16px` and is set by the `--ion-
493
493
494
494
## Border Display
495
495
496
-
The border display CSS property determines if the border should be visible or not. The property can be applied to the ion-header and the ion-footer.
496
+
The `.ion-no-border` utility class can be used to remove borders from Ionic components. This class can be applied to the `ion-header` and `ion-footer` components.
Copy file name to clipboardExpand all lines: versioned_docs/version-v6/layout/css-utilities.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
@@ -18,7 +18,7 @@ If your app was not started using an available Ionic Framework starter, the styl
18
18
19
19
## Text Modification
20
20
21
-
### Text Alignment
21
+
### Text Align
22
22
23
23
```html
24
24
<ion-grid>
@@ -76,7 +76,7 @@ If your app was not started using an available Ionic Framework starter, the styl
76
76
|`.ion-text-wrap`|`white-space: normal`| Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes. |
77
77
|`.ion-text-nowrap`|`white-space: nowrap`| Collapses whitespace as for `normal`, but suppresses line breaks (text wrapping) within text. |
78
78
79
-
### Text Transformation
79
+
### Text Transform
80
80
81
81
```html
82
82
<ion-grid>
@@ -209,7 +209,7 @@ There are also additional classes to modify the visibility based on the screen s
209
209
210
210
## Content Space
211
211
212
-
### Element Padding
212
+
### Padding
213
213
214
214
The padding class sets the padding area of an element. The padding area is the space between the content of the element and its border.
215
215
@@ -259,7 +259,7 @@ The default amount of `padding` to be applied is `16px` and is set by the `--ion
259
259
|`.ion-padding-horizontal`|`padding: 0 16px`| Applies padding to the left and right. |
260
260
|`.ion-no-padding`|`padding: 0`| Applies no padding to all sides. |
261
261
262
-
### Element Margin
262
+
### Margin
263
263
264
264
The margin area extends the border area with an empty area used to separate the element from its neighbors.
265
265
@@ -499,7 +499,7 @@ The default amount of `margin` to be applied is `16px` and is set by the `--ion-
499
499
500
500
## Border Display
501
501
502
-
The border display CSS property determines if the border should be visible or not. The property can be applied to the ion-header and the ion-footer.
502
+
The `.ion-no-border` utility class can be used to remove borders from Ionic components. This class can be applied to the `ion-header` and `ion-footer` components.
Copy file name to clipboardExpand all lines: versioned_docs/version-v7/layout/css-utilities.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
@@ -20,7 +20,7 @@ If your app was not started using an available Ionic Framework starter, the styl
20
20
21
21
## Text Modification
22
22
23
-
### Text Alignment
23
+
### Text Align
24
24
25
25
```html
26
26
<ion-grid>
@@ -78,7 +78,7 @@ If your app was not started using an available Ionic Framework starter, the styl
78
78
|`.ion-text-wrap`|`white-space: normal`| Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes. |
79
79
|`.ion-text-nowrap`|`white-space: nowrap`| Collapses whitespace as for `normal`, but suppresses line breaks (text wrapping) within text. |
80
80
81
-
### Text Transformation
81
+
### Text Transform
82
82
83
83
```html
84
84
<ion-grid>
@@ -228,7 +228,7 @@ There are also additional classes to modify the visibility based on the screen s
228
228
229
229
## Content Space
230
230
231
-
### Element Padding
231
+
### Padding
232
232
233
233
The padding class sets the padding area of an element. The padding area is the space between the content of the element and its border.
234
234
@@ -278,7 +278,7 @@ The default amount of `padding` to be applied is `16px` and is set by the `--ion
278
278
|`.ion-padding-horizontal`|`padding: 0 16px`| Applies padding to the left and right. |
279
279
|`.ion-no-padding`|`padding: 0`| Applies no padding to all sides. |
280
280
281
-
### Element Margin
281
+
### Margin
282
282
283
283
The margin area extends the border area with an empty area used to separate the element from its neighbors.
284
284
@@ -518,7 +518,7 @@ The default amount of `margin` to be applied is `16px` and is set by the `--ion-
518
518
519
519
## Border Display
520
520
521
-
The border display CSS property determines if the border should be visible or not. The property can be applied to the ion-header and the ion-footer.
521
+
The `.ion-no-border` utility class can be used to remove borders from Ionic components. This class can be applied to the `ion-header` and `ion-footer` components.
0 commit comments