-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct-styles.css
237 lines (206 loc) · 5.69 KB
/
product-styles.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/* Select menu styling */
select {
font-family: 'Arial', sans-serif; /* Change font family */
font-size: 14px; /* Adjust font size */
color: black; /* Adjust text color to a grayish tone */
padding: 12px; /* Adjust padding */
border-radius: 5px; /* Adjust border radius */
border: 1px solid #aaa; /* Adjust border */
background-color: #f5f5f5; /* Adjust background color to a light gray */
appearance: none; /* Remove default arrow icon */
background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); /* Add custom arrow icon */
background-repeat: no-repeat; /* Prevent repeating the icon */
background-position: right 10px center; /* Adjust icon position */
background-size: 20px; /* Adjust icon size */
}
/* Styling for when the select menu is focused */
select:focus {
outline: none; /* Remove outline */
border-color: #007bff; /* Change border color */
}
/* Styling for select dropdown options */
select option {
background-color: white; /* Dark background color */
color: black; /* Text color */
opacity: 0.15;
padding: 10px; /* Set opacity to 80% */
}
/* Add to Cart button styling */
.component button {
display: inline-block;
padding: 10px 20px; /* Adjust padding */
background-color: #007bff; /* Blue accent color */
color: #fff; /* White text color */
border: none;
border-radius: 5px; /* Adjust border radius */
cursor: pointer;
font-size: 12px; /* Adjust font size */
font-weight: bold; /* Set font weight to bold */
transition: background-color 0.3s ease; /* Add transition effect */
margin-top: 10px; /* Add margin top */
margin-left: 8px;
}
.component button:hover {
background-color: #0056b3; /* Darker blue hover color */
}
/* Base colors */
body {
background-color: #222; /* Dark gray background */
color: gray; /* Light gray text */
}
/* Common container styles */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Product and BuildYourOwnPC container styles */
.product-container,
.build-pc-container {
padding: 30px;
margin: 30px auto;
max-width: 650px;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Stronger shadow */
transition: box-shadow 0.3s ease;
font-family: 'Roboto', sans-serif; /* Consider a more modern font */
}
.product-container:hover,
.build-pc-container:hover {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Darker hover shadow */
}
.product-container h1,
.build-pc-container h1 {
font-size: 36px;
margin-bottom: 30px;
text-align: center;
position: relative;
z-index: 1;
font-weight: bold;
}
.product-container p,
.build-pc-container p {
font-size: 18px; /* Slightly smaller body text */
line-height: 1.6;
text-align: center;
}
/* BuildYourOwnPC component styles */
.build-pc-container {
background-color: rgba(0, 0, 0, 0.8); /* Darker grayish background */
border-radius: 10px; /* Slightly reduced border-radius */
box-shadow: 0 0 15px rgba(255, 0, 0, 0.2); /* Subtle red shadow */
}
.pc-components {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0 -10px;
}
.component {
background-color: #303030; /* Darker background for components */
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 5px rgba(0, 255, 255, 0.2); /* Subtle blue inner shadow */
font-family: 'Roboto', sans-serif;
}
.component h2 {
margin-top: 0;
font-size: 20px;
color: #fff; /* White heading text */
font-weight: bold;
}
.options {
margin-top: 20px;
}
.option label {
display: inline-flex;
align-items: center;
font-weight: bold;
font-size: 16px;
color: #aaa; /* Lighter label text color */
margin-bottom: 10px;
}
.option input[type="checkbox"] {
color: #fff; /* White checkbox color */
}
.build-button {
display: inline-block;
padding: 12px 30px;
background-color: #007bff; /* Blue accent color */
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
font-size: 18px;
transition: background-color 0.3s ease;
font-weight: bold;
}
.build-button:hover {
background-color: #0056b3; /* Darker blue hover color */
}
/* Checkbox label styling */
label {
display: inline-flex;
align-items: center;
font-weight: bold;
font-size: 16px;
color: #aaa; /* Lighter label text color */
margin-bottom: 10px;
}
/* Checkbox styling */
input[type="checkbox"] {
margin-right: 8px; /* Adjust margin-right for spacing between checkbox and label */
}
/* Component CSS */
.cart {
max-width: 700px;
margin: 0 auto;
padding: 30px;
background-color: rgba(7, 7, 7, 0.275);
border-radius: 10px;
font-family: 'Arial', sans-serif;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.cart h2 {
margin-top: 0;
font-size: 20px;
color: black;
font-weight: bold;
}
.cart ul {
list-style-type: none;
color: black;
padding: 0;
}
.cart li {
margin-bottom: 10px;
font-size: 16px;
color: black;
font-weight: lighter;
}
.cart button {
display: inline-block;
padding: 12px 30px;
background-color: #007bff; /* Blue accent color */
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px; /* Retain the margin-left */
margin-top: 20px;
margin-bottom: 10px;
font-size: 18px;
transition: background-color 0.3s ease;
font-weight: bold;
}
.cart button:hover {
background-color: #0056b3; /* Darker blue hover color */
}
.primary-storage-select option,
.secondary-storage-select option {
background-color: white; /* Dark background color */
color: black; /* Text color */
opacity: 0.15; /* Set opacity to 15% */
padding: 10px; /* Add padding to increase spacing */
}