3
3
// Chip
4
4
// --------------------------------------------------
5
5
6
+ $chip-background-color : rgba (0 ,0 ,0 ,0.12 ) !default ;
7
+ $chip-font-size : 13px !default ;
8
+ $chip-height : 32px !default ;
9
+ $chip-border-radius : 16px !default ;
10
+ $chip-padding : 0 12px !default ;
11
+ $chip-margin : 2px 0 !default ;
12
+
13
+ $chip-label-color : rgba (0 ,0 ,0 ,0.87 ) !default ;
14
+
15
+ $chip-icon-color : rgba (0 ,0 ,0 ,0.87 ) !default ;
6
16
7
17
ion-chip {
8
- font-size : 13px ;
9
- font-weight : normal ;
10
- background : rgba (0 ,0 ,0 ,0.12 );
18
+ background : $chip-background-color ;
11
19
display : inline-block ;
12
- height : 32px ;
13
- line-height : 32px ;
14
- border-radius : 16px ;
15
- padding : 0 12px ;
20
+ height : $chip-height ;
21
+ line-height : $chip-height ;
22
+ border-radius : $chip-border-radius ;
23
+ padding : $chip-padding ;
24
+ margin : $chip-margin ;
25
+
16
26
box-sizing : border-box ;
17
27
vertical-align : middle ;
18
28
display : inline-flex ;
19
29
align-self : center ;
20
30
21
- margin : 2px 0 ;
31
+ font-size : $chip-font-size ;
32
+ font-weight : normal ;
22
33
23
34
ion-label {
24
35
margin : 0 ;
25
- color : rgba ( 0 , 0 , 0 , 0.87 ) ;
36
+ color : $chip-label-color ;
26
37
}
27
38
28
- > ion-icon , > ion-avatar {
39
+ > ion-icon ,
40
+ > ion-avatar {
29
41
width : 32px ;
30
42
height : 32px ;
31
43
margin-left : -12px ;
32
44
vertical-align : top ;
33
45
border-radius : 50% ;
34
46
text-align : center ;
35
47
line-height : 32px ;
36
- color : rgba (0 ,0 ,0 ,0.87 );
37
- // .flex-shrink(0);
48
+ color : $chip-icon-color ;
38
49
font-size : 18px ;
39
- // .flexbox();
40
- // .align-items(center);
41
- // .justify-content(center);
50
+
42
51
img {
43
- max-width : 100% ;
44
- max-height : 100% ;
45
- width : 100% ;
46
- height : 100% ;
47
- border-radius : 50% ;
48
- display : block ;
52
+ max-width : 100% ;
53
+ max-height : 100% ;
54
+ width : 100% ;
55
+ height : 100% ;
56
+ border-radius : 50% ;
57
+ display : block ;
49
58
}
59
+
50
60
+ ion-label {
51
61
margin-left : 8px ;
52
62
}
@@ -58,9 +68,9 @@ ion-chip {
58
68
}
59
69
60
70
.button {
61
- min-height : inherit ;
71
+ height : inherit ;
72
+ margin : 0 ;
62
73
margin-right : -4px ;
63
- margin-left : 8px ;
64
74
}
65
75
66
76
ion-icon [name = " close-circle" ] {
0 commit comments