Skip to content

Commit 549c44a

Browse files
committed
docs(layout): image updates and new images
1 parent f372bbb commit 549c44a

File tree

11 files changed

+4
-99
lines changed

11 files changed

+4
-99
lines changed

docs/layout/css-utilities.md

Lines changed: 4 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -482,57 +482,7 @@ Ionic provides the following utility classes for `align-self`:
482482

483483
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.
484484

485-
```html
486-
<ion-grid>
487-
<ion-row>
488-
<ion-col class="ion-flex-1">
489-
<div>Flex 1</div>
490-
</ion-col>
491-
<ion-col class="ion-flex-1">
492-
<div>Flex 1</div>
493-
</ion-col>
494-
<ion-col class="ion-flex-1">
495-
<div>Flex 1</div>
496-
</ion-col>
497-
</ion-row>
498-
499-
<ion-row>
500-
<ion-col class="ion-flex-auto">
501-
<div>Flex Auto</div>
502-
</ion-col>
503-
<ion-col class="ion-flex-auto">
504-
<div>Flex Auto</div>
505-
</ion-col>
506-
<ion-col class="ion-flex-auto">
507-
<div>Flex Auto</div>
508-
</ion-col>
509-
</ion-row>
510-
511-
<ion-row>
512-
<ion-col class="ion-flex-initial">
513-
<div>Flex Initial</div>
514-
</ion-col>
515-
<ion-col class="ion-flex-initial">
516-
<div>Flex Initial</div>
517-
</ion-col>
518-
<ion-col class="ion-flex-initial">
519-
<div>Flex Initial</div>
520-
</ion-col>
521-
</ion-row>
522-
523-
<ion-row>
524-
<ion-col class="ion-flex-none">
525-
<div>Flex None</div>
526-
</ion-col>
527-
<ion-col class="ion-flex-none">
528-
<div>Flex None</div>
529-
</ion-col>
530-
<ion-col class="ion-flex-none">
531-
<div>Flex None</div>
532-
</ion-col>
533-
</ion-row>
534-
</ion-grid>
535-
```
485+
<img src={require('@site/static/img/layout/flex.png').default} />
536486

537487
Ionic provides the following utility classes for `flex`:
538488

@@ -547,21 +497,7 @@ Ionic provides the following utility classes for `flex`:
547497

548498
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.
549499

550-
```html
551-
<ion-grid>
552-
<ion-row>
553-
<ion-col class="ion-flex-grow-0">
554-
<div>Grow 0</div>
555-
</ion-col>
556-
<ion-col class="ion-flex-grow-1">
557-
<div>Grow 1</div>
558-
</ion-col>
559-
<ion-col class="ion-flex-grow-0">
560-
<div>Grow 0</div>
561-
</ion-col>
562-
</ion-row>
563-
</ion-grid>
564-
```
500+
<img src={require('@site/static/img/layout/flex-grow.png').default} />
565501

566502
Ionic provides the following utility classes for `flex-grow`:
567503

@@ -574,21 +510,7 @@ Ionic provides the following utility classes for `flex-grow`:
574510

575511
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`.
576512

577-
```html
578-
<ion-grid>
579-
<ion-row>
580-
<ion-col class="ion-flex-shrink-0">
581-
<div>Shrink 0</div>
582-
</ion-col>
583-
<ion-col class="ion-flex-shrink-1">
584-
<div>Shrink 1</div>
585-
</ion-col>
586-
<ion-col class="ion-flex-shrink-0">
587-
<div>Shrink 0</div>
588-
</ion-col>
589-
</ion-row>
590-
</ion-grid>
591-
```
513+
<img src={require('@site/static/img/layout/flex-shrink.png').default} />
592514

593515
Ionic provides the following utility classes for `flex-shrink`:
594516

@@ -601,24 +523,7 @@ Ionic provides the following utility classes for `flex-shrink`:
601523

602524
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`.
603525

604-
```html
605-
<ion-grid>
606-
<ion-row>
607-
<ion-col class="ion-order-first">
608-
<div>Order First</div>
609-
</ion-col>
610-
<ion-col class="ion-order-0">
611-
<div>Order 0</div>
612-
</ion-col>
613-
<ion-col class="ion-order-1">
614-
<div>Order 1</div>
615-
</ion-col>
616-
<ion-col class="ion-order-last">
617-
<div>Order Last</div>
618-
</ion-col>
619-
</ion-row>
620-
</ion-grid>
621-
```
526+
<img src={require('@site/static/img/layout/order.png').default} />
622527

623528
Ionic provides the following utility classes for `order`:
624529

89 Bytes
Loading

static/img/layout/align-items.png

57 Bytes
Loading

static/img/layout/align-self.png

1.01 KB
Loading
2.64 KB
Loading

static/img/layout/flex-grow.png

11.4 KB
Loading

static/img/layout/flex-shrink.png

11 KB
Loading

static/img/layout/flex-wrap.png

-17 Bytes
Loading

static/img/layout/flex.png

18.7 KB
Loading
-103 Bytes
Loading

0 commit comments

Comments
 (0)