-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathIcon.css
105 lines (84 loc) · 1.27 KB
/
Icon.css
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
vertical-align: -0.125em;
&:focus {
outline: none;
}
}
:global .stripes__icon {
flex-shrink: 0;
fill: currentcolor;
height: 1.1429em;
width: 1.1429em;
}
/**
* Sizes
*/
.small {
font-size: 0.83em;
}
.medium {
font-size: 1em;
}
.large {
font-size: 1.17em;
}
/**
* Coloring
*/
.status-error {
color: var(--error);
}
.status-warn {
color: var(--warn);
}
.status-success {
color: var(--success);
}
/**
* Label
*/
/* Positioning */
.icon-position-start svg {
order: 0;
}
.icon-position-end svg {
order: 1;
}
/**
* Icon styles
*/
/* Action icon style */
.icon.action svg {
fill: #fff;
background-color: var(--color-fill-current);
width: 1rem;
height: 1rem;
border-radius: 999px;
border: 1px solid var(--color-border);
padding: 0.1rem;
}
/**
* Flippable
* Icon should flip on dir="rtl"
*/
:global([dir="rtl"]) .icon.flippable svg {
transform: rotate(180deg);
}
/**
Spacing
Note: Using pseudo elements to add spacing for RTL support
**/
.label::before,
.label::after {
content: '';
display: none;
width: 0.35em;
}
.icon-position-start .label::before,
.icon-position-end .label::after {
display: inline-block;
}