forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchip.ios.scss
More file actions
66 lines (45 loc) · 1.71 KB
/
chip.ios.scss
File metadata and controls
66 lines (45 loc) · 1.71 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
// iOS Chip
// --------------------------------------------------
/// @prop - Margin of the chip
$chip-ios-margin: 2px 0 !default;
/// @prop - Height of the chip
$chip-ios-height: 32px !default;
/// @prop - Border radius of the chip
$chip-ios-border-radius: 16px !default;
/// @prop - Font size of the chip
$chip-ios-font-size: 13px !default;
/// @prop - Text color of the chip
$chip-ios-text-color: rgba(0, 0, 0, .87) !default;
/// @prop - Background color of the chip
$chip-ios-background-color: rgba(0, 0, 0, .12) !default;
/// @prop - Margin of the label in the chip
$chip-ios-label-margin: 0 10px !default;
/// @prop - Background color of the icon in the chip
$chip-ios-icon-background-color: color($colors-ios, primary) !default;
/// @prop - Text color of the icon in the chip
$chip-ios-icon-text-color: color-contrast($colors-ios, $chip-ios-icon-background-color) !default;
.chip-ios {
margin: $chip-ios-margin;
height: $chip-ios-height;
border-radius: $chip-ios-border-radius;
font-size: $chip-ios-font-size;
line-height: $chip-ios-height;
color: $chip-ios-text-color;
background: $chip-ios-background-color;
}
.chip-ios > ion-label {
margin: $chip-ios-label-margin;
}
.chip-ios > ion-icon {
color: $chip-ios-icon-text-color;
background-color: $chip-ios-icon-background-color;
}
// Generate iOS Chip Colors
// --------------------------------------------------
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
.chip-ios-#{$color-name},
.chip-ios .icon-ios-#{$color-name} {
color: $color-contrast;
background-color: $color-base;
}
}