-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
149 lines (143 loc) · 2.05 KB
/
style.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
body
{
margin: 0;
padding: 0;
background: #333;
color: white;
font-family: sans-serif;
}
.product
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 240px;
height: 340px;
background: #fff;
box-shadow: 0 5px 15px rgba(0,0,0,.25);
border-radius: 5px;
overflow: hidden;
}
.product .imgbox
{
height: 100%;
box-sizing: border-box;
}
.product .imgbox img
{
display: block;
max-width: 100%;
max-height: 100%;
margin: 20px auto 0;
}
.details
{
position: absolute;
width: 100%;
bottom: -130px;
background:#fff;
color: rgba(14, 13, 13, 0.966);
padding: 10px;
box-sizing: border-box;
box-shadow: 0 0 0 rgba(0,0,0,0);
transition: .5s;
}
.product:hover .details
{
bottom: 0;
box-shadow: 0 -5px 15px rgba(0,0,0,.25);
}
.details h2
{
margin: 0;
padding: 0;
font-size: 16px;
width: 100%;
}
.details h2 span
{
font-size: 12px;
color: #ccc;
font-weight: normal;
}
.details .price
{
position: absolute;
top: 10px;
right: 20px;
font-weight: bold;
color: #333;
font-size: 20px
}
label
{
display: block;
margin-top: 5px;
font-weight: bold;
font-size: 14px;
}
ul
{
display: flex;
margin: 0;
padding: 0;
}
ul li
{
list-style: none;
margin: 5px 5px 0;
font-size:12px;
font-weight: normal;
color: #ccc;
}
ul li :first-child
{
margin-left: 0;
}
ul.colors li
{
width: 16px;
height: 16px;
}
ul.colors li
{
width: 16px;
height: 16px;
}
ul.colors li:nth-child(1)
{
background: #ff0;
}
ul.colors li:nth-child(2)
{
background: #f00;
}
ul.colors li:nth-child(3)
{
background: #f0f;
}
ul.colors li:nth-child(4)
{
background: #0ff;
}
ul.colors li:nth-child(5)
{
background: #00f;
}
a
{
display: block;
padding: 5px;
color: #AAC789;
margin: 15px 0 0;
background: #1E4147;
text-align: center;
text-decoration: none;
transition: .3s;
cursor: pointer;
}
a:hover
{
background: #437356;
}