|
15 | 15 |
|
16 | 16 | <style> |
17 | 17 | ion-segment-view { |
18 | | - height: 200px; |
| 18 | + height: 100px; |
19 | 19 | } |
20 | 20 |
|
21 | | - ion-segment-content:nth-of-type(even) { |
22 | | - background: lightblue; |
| 21 | + ion-segment-content { |
| 22 | + display: flex; |
| 23 | + justify-content: center; |
| 24 | + align-items: center; |
23 | 25 | } |
24 | 26 |
|
25 | | - ion-segment-content:nth-of-type(odd) { |
| 27 | + ion-segment-content:nth-of-type(1) { |
26 | 28 | background: lightpink; |
27 | 29 | } |
| 30 | + |
| 31 | + ion-segment-content:nth-of-type(2) { |
| 32 | + background: lightblue; |
| 33 | + } |
| 34 | + |
| 35 | + ion-segment-content:nth-of-type(3) { |
| 36 | + background: lightgreen; |
| 37 | + } |
28 | 38 | </style> |
29 | 39 | </head> |
30 | 40 |
|
|
38 | 48 |
|
39 | 49 | <ion-content> |
40 | 50 | <ion-toolbar> |
41 | | - <ion-segment value="Paid"> |
42 | | - <ion-segment-button content-id="paid" value="Paid"> |
| 51 | + <ion-segment> |
| 52 | + <ion-segment-button content-id="no" value="no"> |
| 53 | + <ion-label>No</ion-label> |
| 54 | + </ion-segment-button> |
| 55 | + <ion-segment-button content-id="value" value="value"> |
| 56 | + <ion-label>Value</ion-label> |
| 57 | + </ion-segment-button> |
| 58 | + </ion-segment> |
| 59 | + </ion-toolbar> |
| 60 | + <ion-segment-view> |
| 61 | + <ion-segment-content id="no">No</ion-segment-content> |
| 62 | + <ion-segment-content id="value">Value</ion-segment-content> |
| 63 | + </ion-segment-view> |
| 64 | + |
| 65 | + <ion-segment value="all"> |
| 66 | + <ion-segment-button content-id="all" value="all"> |
| 67 | + <ion-label>All</ion-label> |
| 68 | + </ion-segment-button> |
| 69 | + <ion-segment-button content-id="favorites" value="favorites"> |
| 70 | + <ion-label>Favorites</ion-label> |
| 71 | + </ion-segment-button> |
| 72 | + </ion-segment> |
| 73 | + </ion-toolbar> |
| 74 | + <ion-segment-view> |
| 75 | + <ion-segment-content id="all">All</ion-segment-content> |
| 76 | + <ion-segment-content id="favorites">Favorites</ion-segment-content> |
| 77 | + </ion-segment-view> |
| 78 | + |
| 79 | + <ion-segment value="free"> |
| 80 | + <ion-segment-button content-id="paid" value="paid"> |
43 | 81 | <ion-label>Paid</ion-label> |
44 | 82 | </ion-segment-button> |
45 | | - <ion-segment-button content-id="free" value="Free"> |
| 83 | + <ion-segment-button content-id="free" value="free"> |
46 | 84 | <ion-label>Free</ion-label> |
47 | 85 | </ion-segment-button> |
48 | | - <ion-segment-button content-id="top" value="Top"> |
| 86 | + <ion-segment-button content-id="top" value="top"> |
49 | 87 | <ion-label>Top</ion-label> |
50 | 88 | </ion-segment-button> |
51 | 89 | </ion-segment> |
|
57 | 95 | </ion-segment-view> |
58 | 96 |
|
59 | 97 | <ion-toolbar> |
60 | | - <ion-segment disabled color="danger"> |
61 | | - <ion-segment-button content-id="bookmarks" value="Bookmarks"> |
| 98 | + <ion-segment disabled value="reading-list"> |
| 99 | + <ion-segment-button content-id="bookmarks" value="bookmarks"> |
62 | 100 | <ion-label>Bookmarks</ion-label> |
63 | 101 | </ion-segment-button> |
64 | | - <ion-segment-button content-id="reading-list" value="Reading List"> |
| 102 | + <ion-segment-button content-id="reading-list" value="reading-list"> |
65 | 103 | <ion-label>Reading List</ion-label> |
66 | 104 | </ion-segment-button> |
67 | | - <ion-segment-button content-id="shared-links" value="Shared Links"> |
| 105 | + <ion-segment-button content-id="shared-links" value="shared-links"> |
68 | 106 | <ion-label>Shared Links</ion-label> |
69 | 107 | </ion-segment-button> |
70 | 108 | </ion-segment> |
|
0 commit comments