Skip to content

Commit 5d44536

Browse files
Create style.css
1 parent 088b00c commit 5d44536

File tree

1 file changed

+139
-0
lines changed

1 file changed

+139
-0
lines changed

style.css

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
2+
*{
3+
padding: 0;
4+
margin: 0;
5+
}
6+
7+
body{
8+
color: #FFF;
9+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
10+
background-color: #1E1F23;
11+
}
12+
13+
.product{
14+
position: absolute;
15+
top: 50%;
16+
left: 50%;
17+
transform: translate(-50%, -50%);
18+
19+
width: 300px;
20+
height: 400px;
21+
background-color: #FFF;
22+
border-radius: 5px;
23+
overflow: hidden;
24+
}
25+
26+
.product .imagebox{
27+
height: 100%;
28+
box-sizing: border-box;
29+
}
30+
31+
.product .imagebox img{
32+
display: block;
33+
width: 80%;
34+
margin: 10px auto 0;
35+
}
36+
37+
.specs{
38+
position: absolute;
39+
width: 100%;
40+
bottom: -140px;
41+
background-color: #FFF;
42+
padding: 10px;
43+
box-sizing: border-box;
44+
color: #000;
45+
transition: .5s;
46+
}
47+
48+
.specs:hover{
49+
bottom: 0;
50+
}
51+
52+
.specs h2{
53+
font-size: 25px;
54+
width: 100%;
55+
}
56+
57+
.specs h2 span{
58+
font-size: 18px;
59+
color: #808080;
60+
font-weight: normal;
61+
}
62+
63+
.specs .price{
64+
position: absolute;
65+
top: 12px;
66+
right: 25px;
67+
font-weight: bold;
68+
font-size: 30px;
69+
}
70+
71+
label{
72+
display: block;
73+
margin-top: 5px;
74+
font-weight: bold;
75+
font-size: 15px;
76+
}
77+
78+
ul{
79+
display: flex;
80+
}
81+
82+
ul li {
83+
width: 50px;
84+
height: 20px;
85+
list-style: none;
86+
margin: 5px 5px 0;
87+
font-size: 15px;
88+
color: #808080;
89+
text-align: center;
90+
cursor: pointer;
91+
transition: color 0.5s;
92+
}
93+
94+
ul li:hover{
95+
color: #000;
96+
}
97+
98+
ul li:first-child{
99+
margin-left: 0;
100+
}
101+
102+
ul.color li{
103+
width: 50px;
104+
height: 20px;
105+
}
106+
107+
ul.color li:nth-child(1){
108+
background-color: #FF0;
109+
}
110+
ul.color li:nth-child(2){
111+
background-color: #000;
112+
}
113+
ul.color li:nth-child(3){
114+
background-color: #F00;
115+
}
116+
ul.color li:nth-child(4){
117+
background-color: #00F;
118+
}
119+
ul.color li:nth-child(5){
120+
background-color: #F0F;
121+
}
122+
123+
a{
124+
display: block;
125+
padding: 5px;
126+
color: #FFF;
127+
margin: 10px 0 0;
128+
background-color: #48a519;
129+
text-align: center;
130+
text-decoration: none;
131+
border-radius: 8px;
132+
cursor: pointer;
133+
transition: .2s;
134+
}
135+
136+
a:hover{
137+
background-color: #5ebf31;
138+
color: #000;
139+
}

0 commit comments

Comments
 (0)