|
21 | 21 | --indicator-height: #{globals.$ionic-border-size-025}; |
22 | 22 | --indicator-transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); |
23 | 23 | --indicator-transform: none; |
24 | | - --padding-top: #{globals.$ionic-space-100}; |
| 24 | + --padding-top: #{globals.$ionic-space-200}; |
25 | 25 | --padding-end: #{globals.$ionic-space-200}; |
26 | | - --padding-bottom: #{globals.$ionic-space-100}; |
| 26 | + --padding-bottom: #{globals.$ionic-space-200}; |
27 | 27 | --padding-start: #{globals.$ionic-space-200}; |
28 | 28 | --transition: color 0.15s linear 0s, opacity 0.15s linear 0s; |
29 | 29 |
|
|
39 | 39 | } |
40 | 40 |
|
41 | 41 | .button-inner { |
42 | | - @include globals.padding( |
43 | | - globals.$ionic-space-100, |
44 | | - globals.$ionic-space-0, |
45 | | - globals.$ionic-space-100, |
46 | | - globals.$ionic-space-0 |
47 | | - ); |
48 | | - |
49 | 42 | gap: globals.$ionic-space-100; |
50 | 43 | } |
51 | 44 |
|
|
93 | 86 | // Ensures the indicator displays correctly above the border |
94 | 87 | z-index: 2; |
95 | 88 | } |
| 89 | + |
| 90 | +// Segment Button Layout |
| 91 | +// -------------------------------------------------- |
| 92 | + |
| 93 | +// Segments with icons above or below the label |
| 94 | +// should have a fixed height of 64px |
| 95 | +:host(.segment-button-layout-icon-top), |
| 96 | +:host(.segment-button-layout-icon-bottom) { |
| 97 | + height: globals.$ionic-scale-1600; |
| 98 | +} |
| 99 | + |
| 100 | +// Segments with icons at the start or end, or with only |
| 101 | +// icons or labels, should have a fixed height of 48px |
| 102 | +:host(.segment-button-has-label-only), |
| 103 | +:host(.segment-button-has-icon-only), |
| 104 | +:host(.segment-button-layout-icon-start), |
| 105 | +:host(.segment-button-layout-icon-end) { |
| 106 | + height: globals.$ionic-scale-1200; |
| 107 | +} |
0 commit comments