File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 89
89
@include flex (1 );
90
90
display : block ;
91
91
overflow : hidden ;
92
-
92
+
93
93
max-width : $tab-item-max-width ;
94
94
height : 100% ;
95
95
157
157
.tab-item .badge {
158
158
position : absolute ;
159
159
padding : $tabs-badge-padding ;
160
- top : 2% ;
161
- right : 10% ;
160
+ top : 4% ;
161
+ right : 33% ; // fallback
162
+ right : calc (50% - 26px );
162
163
font-size : $tabs-badge-font-size ;
163
164
height : auto ;
164
165
line-height : $tabs-badge-font-size + 4 ;
167
168
/* Navigational tab */
168
169
169
170
/* Active state for tab */
170
- .tab-item.active ,
171
+ .tab-item.active ,
171
172
.tab-item :active {
172
173
opacity : 1 ;
173
174
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ $tabs-height: 49px !default;
231
231
$tabs-text-font-size : 14px !default ;
232
232
$tabs-text-font-size-side-icon : 12px !default ;
233
233
$tabs-icon-size : 32px !default ;
234
- $tabs-badge-padding : 2 px 6px !default ;
234
+ $tabs-badge-padding : 1 px 6px !default ;
235
235
$tabs-badge-font-size : 12px !default ;
236
236
$tabs-text-font-size : 14px !default ;
237
237
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ <h1>Icons On Top Of Text</h1>
25
25
</ ul >
26
26
27
27
</ main >
28
-
28
+
29
29
< nav id ="tab-bar " class ="tabs tabs-icon-top ">
30
30
< a class ="tab-item " href ="# ">
31
31
< i class ="icon ion-game-controller-a "> </ i >
@@ -40,7 +40,7 @@ <h1>Icons On Top Of Text</h1>
40
40
Simple
41
41
</ a >
42
42
< a class ="tab-item has-badge ">
43
- < i class ="badge "> 3</ i >
43
+ < i class ="badge badge-assertive "> 3</ i >
44
44
< i class ="icon ion-leaf "> </ i >
45
45
Light
46
46
</ a >
You can’t perform that action at this time.
0 commit comments