-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathIconButton.css
73 lines (60 loc) · 1.14 KB
/
IconButton.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
/**
* Pane Menu Icon
*/
.iconButton {
composes: interactionStylesControl from "../sharedStyles/interactionStyles.css";
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
outline: 0;
transition: opacity 0.4s;
border-radius: 0;
background: none;
color: var(--color-icon);
& + .iconButton {
margin-left: 0.25em;
}
}
.iconButton:disabled,
.iconButton[disabled]{
pointer-events: none;
}
/* To avoid global :visited color on anchor tags */
a.iconButton {
color: var(--color-icon);
}
.iconButtonInner {
composes: interactionStyles from "../sharedStyles/interactionStyles.css";
display: flex;
align-items: center;
pointer-events: none;
padding: 0.25em;
}
/**
* Size
*/
.small {
font-size: var(--font-size-small);
}
[dir="rtl"] {
& .iconButton {
& + .iconButton {
margin-left: 0;
margin-right: 0.25em;
}
}
}
/**
* With badge
*/
/* Let the button expand in width if we have a badge */
.iconButton.hasBadge {
width: auto;
}
/* Add spacing between icon and badge */
.hasBadge .icon::after {
content: '';
width: 0.3em;
display: inline-block;
}