forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchip.scss
More file actions
79 lines (54 loc) · 1.68 KB
/
chip.scss
File metadata and controls
79 lines (54 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@import "../../themes/ionic.globals";
// Chip
// --------------------------------------------------
/// @prop - Border radius of the button in the chip
$chip-button-border-radius: 50% !default;
/// @prop - Margin of the button in the chip
$chip-button-margin: 0 !default;
/// @prop - Width and height of the button in the chip
$chip-button-size: 32px !default;
/// @prop - Border radius of the icon in the chip
$chip-icon-border-radius: 50% !default;
/// @prop - Width and height of the icon in the chip
$chip-icon-size: 32px !default;
/// @prop - Font size of the icon in the chip
$chip-icon-font-size: 18px !default;
/// @prop - Width and height of the avatar in the chip
$chip-avatar-size: 32px !default;
/// @prop - Border radius of the avatar in the chip
$chip-avatar-border-radius: 50% !default;
ion-chip {
display: inline-flex;
align-self: center;
font-weight: normal;
vertical-align: middle;
box-sizing: border-box;
}
ion-chip .button {
margin: $chip-button-margin;
width: $chip-button-size;
height: $chip-button-size;
border-radius: $chip-button-border-radius;
}
ion-chip ion-icon {
width: $chip-icon-size;
height: $chip-icon-size;
border-radius: $chip-icon-border-radius;
font-size: $chip-icon-font-size;
line-height: $chip-icon-size;
}
ion-chip ion-avatar {
width: $chip-avatar-size;
min-width: $chip-avatar-size;
height: $chip-avatar-size;
min-height: $chip-avatar-size;
border-radius: $chip-avatar-border-radius;
}
ion-chip ion-avatar img {
display: block;
width: 100%;
max-width: 100%;
height: 100%;
max-height: 100%;
border-radius: $chip-avatar-border-radius;
}