-
Notifications
You must be signed in to change notification settings - Fork 4
/
store.less
103 lines (100 loc) · 2.92 KB
/
store.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
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
@import "_imports/colors.less";
.store {
.product-image-tile {
@width: 300px;
width: @width;
height: @width;
background-color: @white;
display: table-cell;
vertical-align: middle;
text-align: center;
}
}
.products-list {
padding: 0px;
margin: 0px;
a {
text-decoration: none;
}
.product-tile {
position: relative;
display: inline-block;
background-color: @white;
@width: 300px;
width: @width;
height: @width;
@margin: 15px;
margin-right: @margin;
margin-bottom: @margin;
.image-container {
width: @width;
height: @width;
.hover-container {
width: 100%;
height: 100%;
cursor: pointer;
.image {
position: absolute;
width: 100%;
height: 100%;
background-position: 50%;
background-repeat: no-repeat;
}
.actions-container {
position: absolute;
display: none;
}
.details-container {
color: @black;
position: absolute;
width: 100%;
height: 100%;
text-align: center;
opacity: 0;
display: table-cell;
vertical-align: middle;
.details {
height: 100%;
margin-top: 30%;
padding: 5px;
}
}
&:hover {
.actions-container {
display: block;
}
.details-container {
background-color: fade(@white, 70%);
opacity: 1;
transition-property: opacity;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
.details {
align-items: center;
}
}
}
}
}
.price-tag {
position: absolute;
top: 0px;
right: 0px;
background-color: @color-flatui-emerald;
color: @white;
text-align: center;
width: 50px;
height: 30px;
&:hover {
width: 75px;
transition-duration: 0.2s;
transition-property: width;
transition-timing-function: ease-in-out;
&:after {
font-family: FontAwesome;
content: "\f061"; // fa-arrow-right
}
}
}
}
}