-
Notifications
You must be signed in to change notification settings - Fork 64
/
boxMenuItem.less
70 lines (57 loc) · 1.42 KB
/
boxMenuItem.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.boxmenu-item {
display: flex;
&__inner {
width: 100%;
margin: 0 @menu-item-padding-hoz @menu-item-padding-ver;
padding: @menu-item-inner-padding-ver @menu-item-inner-padding-hoz;
background-color: @menu-item;
color: @menu-item-inverted;
border: 1px solid @menu-item-border-color;
border-radius: @item-border-radius;
}
&__image-container {
margin-bottom: @menu-item-image-margin;
}
&__title {
margin-bottom: @menu-item-title-margin;
.menu-item-title;
}
&__body {
margin-bottom: @menu-item-body-margin;
.menu-item-body;
}
&__body a {
.link-text;
}
&__duration {
margin-bottom: @menu-item-duration-margin;
.menu-item-body;
}
&__progress {
margin-bottom: @menu-item-progress-margin;
}
&__button-container {
display: flex;
align-items: center;
}
&__button {
background-color: @menu-item-btn-color;
color: @menu-item-btn-color-inverted;
.no-touch &:not(.is-disabled):not(.is-locked):hover {
background-color: @menu-item-btn-color-hover;
color: @menu-item-btn-color-inverted-hover;
.transition(background-color @duration ease-in, color @duration ease-in;);
}
}
&__button.is-locked,
&__button.is-disabled {
background-color: @disabled;
color: @disabled-inverted;
}
&__status {
margin-left: @menu-item-status-margin;
}
&.has-img-zoom &__image-container {
.img-zoom();
}
}