5
5
// --------------------------------------------------
6
6
7
7
// Background color of the tabbar
8
- $tabs-md-background : $toolbar-md-background !default ;
8
+ $tabs-md-background : $toolbar-md-background !default ;
9
9
10
10
// Padding on the tab button
11
- $tabs-md-tab-padding : 8px 0 10px 0 !default ;
11
+ $tabs-md-tab-padding : 8px 0 10px 0 !default ;
12
12
13
13
// Min height of the tab button
14
- $tabs-md-tab-min-height : 5.6rem !default ;
14
+ $tabs-md-tab-min-height : 5.6rem !default ;
15
15
16
16
// Font size of the inactive tab button text
17
- $tabs-md-tab-font-size : 1.4 rem !default ;
17
+ $tabs-md-tab-font-size : 1.2 rem !default ;
18
18
19
19
// Font weight of the tab button text
20
- $tabs-md-tab-font-weight : normal !default ;
20
+ $tabs-md-tab-font-weight : normal !default ;
21
21
22
22
// Opacity of the inactive tab button
23
- $tabs-md-tab-opacity : .7 !default ;
23
+ $tabs-md-tab-opacity : .7 !default ;
24
24
25
25
// Text color of the inactive tab button
26
- $tabs-md-tab-color : rgba ($toolbar-md-inactive-color , $tabs-md-tab-opacity ) !default ;
26
+ $tabs-md-tab-color : rgba ($toolbar-md-inactive-color , $tabs-md-tab-opacity ) !default ;
27
27
28
28
// Padding of the active tab button
29
- $tabs-md-tab-padding-active : 6px 0 10px 0 !default ;
29
+ $tabs-md-tab-padding-active : 6px 0 10px 0 !default ;
30
30
31
31
// Font size of the active tab button text
32
- $tabs-md-tab-font-size-active : 1.5 rem !default ;
32
+ $tabs-md-tab-font-size-active : 1.4 rem !default ;
33
33
34
34
// Text color of the active tab button
35
- $tabs-md-tab-color-active : $toolbar-md-active-color !default ;
35
+ $tabs-md-tab-color-active : $toolbar-md-active-color !default ;
36
36
37
37
// Margin on the tab button text
38
- $tabs-md-tab-text-margin : 6px 0 !default ;
38
+ $tabs-md-tab-text-margin : 6px 0 !default ;
39
39
40
- // Text transformation for the tab button text
41
- $tabs-md-tab-text-transform : none !default ;
40
+ // Capitalization of the tab button text
41
+ $tabs-md-tab-text-capitalization : none !default ;
42
+
43
+ // Transform for the tab button text
44
+ $tabs-md-tab-text-transform : scale (.85 ) !default ;
45
+
46
+ // Transform origin for the tab button text
47
+ $tabs-md-tab-text-transform-origin : bottom center !default ;
48
+
49
+ // Margin on the active tab button text
50
+ $tabs-md-tab-text-margin-active : 7px 0 !default ;
51
+
52
+ // Transform for the active tab button text
53
+ $tabs-md-tab-text-transform-active : scale (1 ) !default ;
54
+
55
+ // Text transition for the tab button text
56
+ $tabs-md-tab-text-transition : transform 200ms ease-in-out !default ;
42
57
43
58
// Size of the tab button icon
44
- $tabs-md-tab-icon-size : 2.4rem !default ;
59
+ $tabs-md-tab-icon-size : 2.4rem !default ;
45
60
46
61
47
62
ion-tabbar {
@@ -53,7 +68,6 @@ ion-tabbar {
53
68
54
69
min-height : $tabs-md-tab-min-height ;
55
70
56
- font-size : $tabs-md-tab-font-size ;
57
71
font-weight : $tabs-md-tab-font-weight ;
58
72
color : $tabs-md-tab-color ;
59
73
@@ -68,7 +82,16 @@ ion-tabbar {
68
82
.tab-button-text {
69
83
margin : $tabs-md-tab-text-margin ;
70
84
71
- text-transform : $tabs-md-tab-text-transform ;
85
+ text-transform : $tabs-md-tab-text-capitalization ;
86
+ transform : $tabs-md-tab-text-transform ;
87
+ transform-origin : $tabs-md-tab-text-transform-origin ;
88
+
89
+ transition : $tabs-md-tab-text-transition ;
90
+ }
91
+
92
+ .tab-button [aria-selected = true ] .tab-button-text {
93
+ margin : $tabs-md-tab-text-margin-active ;
94
+ transform : $tabs-md-tab-text-transform-active ;
72
95
}
73
96
74
97
.tab-button-icon {
@@ -77,20 +100,18 @@ ion-tabbar {
77
100
font-size : $tabs-md-tab-icon-size ;
78
101
}
79
102
80
- [tabsLayout = icon-top ] {
81
- .has-icon .tab-button-text {
82
- margin-bottom : 0 ;
83
- }
103
+ [tabsLayout = icon-top ] .has-icon .tab-button-text {
104
+ margin-bottom : 0 ;
84
105
}
85
106
86
107
[tabsLayout = icon-bottom ] {
87
108
.tab-button {
88
109
padding-top : 8px ;
89
110
padding-bottom : 8px ;
90
- }
91
111
92
- .tab-button-text {
93
- margin-top : 0 ;
112
+ .tab-button-text {
113
+ margin-top : 0 ;
114
+ }
94
115
}
95
116
}
96
117
0 commit comments