forked from mdadeeljawaid/Pharmacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcartstyle.css
151 lines (130 loc) · 2.57 KB
/
cartstyle.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
146
147
148
149
150
151
#product-name {
color: rgb(8, 56, 119);
font-weight: bold;
font-size: 1.3em;
}
#product-details {
color: rgb(27, 79, 146);
font-weight: 600;
font-size: 1em;
}
.cart input[type="number"] {
outline: none;
color: rgb(27, 79, 146);
width: 50px;
font-weight: 600;
border: 2px solid rgb(58, 143, 143);
background-color: inherit;
border-radius: 5px;
text-align: center;
}
.cart input[type="number"]:hover {
border-color: rgb(108, 173, 173);
}
.empty-cart {
/* use javascript to switch display*/
display: none;
text-align: center;
text-decoration: none;
font-weight: bold;
color: rgb(18, 119, 145);
font-size: 26px;
}
.cart-item {
/* display: none; */
padding: 10px;
margin: 0 2% 0 2%;
border: 1px dotted rgb(162, 209, 209);
border-radius: 5px;
height: 130px;
margin-bottom: 5px;
}
.medicine-image {
float: left;
width: 20%;
}
.medicine-details {
float: left;
}
.medicine-right {
float: right;
}
.delete-item {
display: block;
margin-top: 10px;
border: none;
outline: none;
background-color: rgb(194, 18, 18);
/* background-color: darkblue; */
border-radius: 5px;
padding: 2% 6% 2% 6%;
color: white;
font-weight: 600;
width: 100px;
}
.delete-item:hover {
background-color: rgb(216, 34, 34);
}
.checkout-section {
border: 2px solid rgb(162, 209, 209);
width: 350px;
height: 330px;
border-radius: 5px;
padding: 5%;
color: rgb(27, 79, 146);
font-weight: 700;
text-align: left;
}
.checkout-section span {
float: right;
}
#checkout-btn {
border: none;
outline: none;
text-align: center;
width: 100%;
background-color: rgb(58, 143, 143);
color: white;
padding: 5px;
border-radius: 6px;
font-weight: 500;
}
#checkout-btn:hover {
background-color: rgb(67, 161, 161);
}
.checkout-msg {
font-size: 0.9em;
color: rgb(0, 0, 95);
font-weight: 400;
}
/* Media query for mobiles */
@media (max-width: 480px) {
.cart-item {
height: 200px;
width: 100%;
margin: 0;
margin-bottom: 5px;
}
.product-details {
font-weight: normal;
font-size: 0.9em;
}
.medicine-image {
width: 30%;
float: right;
}
.medicine-details,
.medicine-right {
float: none;
}
.delete-item {
display: inline;
float: right;
width: 80px;
}
.checkout-section {
border: 2px solid rgb(162, 209, 209);
width: 100%;
height: auto;
}
}