-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathbutton.less
55 lines (46 loc) · 1.25 KB
/
button.less
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
.btn {
&__container {
margin-top: @btn-margin;
}
&-icon {
background-color: @btn-icon-color;
color: @btn-icon-color-inverted;
.no-touch &:not(.is-disabled):not(.is-locked):hover {
background-color: @btn-icon-color-hover;
color: @btn-icon-color-inverted-hover;
.transition(background-color @duration ease-in, color @duration ease-in;);
}
}
&-text {
.button-text;
}
&-text {
background-color: @btn-color;
color: @btn-color-inverted;
border-radius: @btn-border-radius;
.no-touch &:not(.is-disabled):not(.is-locked):hover {
background-color: @btn-color-hover;
color: @btn-color-inverted-hover;
.transition(background-color @duration ease-in, color @duration ease-in;);
}
}
&-icon.is-disabled,
&-text.is-disabled {
background-color: @disabled;
color: @disabled-inverted;
}
&-icon.is-locked,
&-text.is-locked {
background-color: @disabled;
color: @disabled-inverted;
cursor: not-allowed;
}
&__marking {
padding: @item-padding * 0.75;
border-radius: 50%;
}
.can-show-marking &__action.is-full-width,
.can-show-marking &__feedback.is-full-width {
margin-inline-end: @icon-size + (@item-margin * 2) + ((@item-padding * 0.75) * 2);
}
}