-
Notifications
You must be signed in to change notification settings - Fork 0
/
commerce.css
134 lines (133 loc) · 2.3 KB
/
commerce.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
line-height: 1.4;
}
.product {
border: 4px solid black;
width: 825px;
margin: 50px auto;
position: relative;
}
.pro-img {
float: left;
margin-right: 40px;
}
.product-info {
/* ( one third of total product pixel including border- border on each side- image width- space between content[280-8-250-80]) */
width: 243px;
float: left;
margin-right: 40px;
margin-top: 20px;
}
.product-title {
text-align: center;
font-size: 22px;
background-color: #f7f7f7;
text-transform: uppercase;
padding: 15px;
}
.price {
font-size: 24px;
float: left;
}
.shipping {
font-size: 12px;
text-transform: uppercase;
font-weight: bold;
color: #777;
margin-bottom: 20px;
float: right;
margin-top:8px;
}
.pro-description {
clear: both;
margin-bottom:5px;
}
.more-info:link,
.more-info:visited {
color: black;
margin-bottom: 30px;
display: inline-block;
}
.colors {
margin-left: 10px;
}
.color {
background-color: black;
height: 22px;
width: 22px;
display: inline-block;
margin-right: 10px;
}
.color-blue {
background-color: blue;
}
.color-red {
background-color: red;
}
.color-yellow {
background-color: yellow;
}
.color-green {
background-color: green;
}
.color-brown {
background-color: brown;
}
.more-info:hover,
.more-info:active {
text-decoration: none;
}
.more-info {
margin-bottom: 10px;
}
.product-detail {
width: 243px;
float: left;
margin-top:20px;
}
.detail-title {
margin-bottom: 15px;
text-transform: uppercase;
font-size: 16px;
}
.detail-list {
list-style: square;
margin-left: 20px;
}
.detail-list li {
margin-bottom: 10px;
}
.add-cart {
background-color: black;
color: #fff;
border: none;
font-size: 20px;
text-transform: uppercase;
cursor: pointer;
padding: 15px;
width: 100%;
border-top: 4px solid black;
}
.add-cart:hover {
background-color: #fff;
color: #000;
}
.sale {
background-color: red;
position: absolute;
color: white;
padding: 7px 15px;
text-transform: uppercase;
letter-spacing: 2px;
top: -17px;
left: -34px;
font-size: 12px;
font-weight: bold;
display: inline-block;
}