-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcamera-1.css
More file actions
241 lines (208 loc) · 4.59 KB
/
camera-1.css
File metadata and controls
241 lines (208 loc) · 4.59 KB
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
238
239
240
241
body {
font-family: Arial, sans-serif;
background-color: #211d1a;
color: white;
margin: 0;
margin-top: 5%;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
header {
padding: 0.5em;
margin-bottom: -10px;
text-align: center;
font-weight: bold;
font-size: 50px;
}
.container {
width: 80%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
align-items: center;
}
.text-section {
text-align: left;
}
.text-section h1,
.text-section h2 {
font-size: 24px;
margin: 0;
}
.text-section p {
line-height: 1.5;
text-align: justify;
margin-right: 20px;
}
.image-section {
display: flex;
justify-content: center;
align-items: center;
height: 500px; /* Updated for larger main image */
}
.image-section img {
width: 500px; /* Fixed width */
height: 500px; /* Fixed height */
object-fit: cover; /* Ensures the image maintains aspect ratio and fills the space */
}
.features h2 {
margin: 0; /* Remove any default margins */
padding-bottom: 5px; /* Optional: Add slight spacing below the heading */
}
.features ul {
margin: 0; /* Remove default top and bottom margins */
padding-left: 50px; /* Add padding to align bullets nicely */
list-style-type: disc; /* Ensure bullets are visible */
}
.features li {
margin: 5px 0; /* Add space between bullet items */
}
.details {
display: flex;
flex-direction: column;
gap: 0px; /* Adds consistent spacing between child elements */
margin: 0;
padding: 0;
}
.color-options {
display: flex;
gap: 15px; /* Space between color option items */
align-self: center;
margin-bottom: 10px; /* Space below color options */
}
.price {
font-size: 18px;
font-weight: bold;
align-self: center;
margin-bottom: 5px; /* Space below the price */
}
.add-to-cart {
padding: 10px;
background-color: white;
color: black;
border: none;
cursor: pointer;
text-transform: uppercase;
font-weight: bold;
margin-top: 10px; /* Space above the button */
}
.color-options div {
width: 30px;
height: 30px;
border: 1px solid #333;
cursor: pointer;
}
.quantity {
display: flex;
align-items: center;
gap: 5px;
}
.quantity button {
width: 30px;
height: 30px;
background-color: white;
color: black;
border: none;
cursor: pointer;
}
.carousel {
position: relative; /* Needed for arrow positioning */
margin: 50px auto;
height: 200px;
width: 70%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background-color: #ffffffcc;
}
.carousel-arrow {
position: absolute;
top: 50%;
transform: translateY(-100%);
color: rgb(0, 0, 0);
border: none;
font-size: 44px;
width: 40px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 10;
border-radius: 50%; /* Makes it round */
}
.left-arrow {
left: 10px;
transform: translateY(-100%) rotate(180deg); /* Flip the arrow */
}
.right-arrow {
right: 10px; /* Position to the right */
transform: translateY(-100%);
}
.carousel-wrapper {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 10px; /* Larger space for noticeable white gaps */
height: 100%;
background-color: transparent; /* Ensure the wrapper background is transparent */
}
.carousel div {
width: 300px; /* Adjust size of individual carousel images */
height: 150px;
background-color: rgb(0, 0, 0); /* This is the image background color */
cursor: pointer;
border: 10px solid rgb(0, 0, 0); /* To make images stand out */
}
.quantity {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background-color: white;
padding: 5px 10px;
border: 1px solid lightgray;
}
.quantity button {
background: none;
border: none;
font-size: 18px;
color: gray;
cursor: pointer;
font-weight: bold;
}
.quantity button:disabled {
color: lightgray;
}
.quantity .value {
font-size: 16px;
font-weight: bold;
color: black;
}
#divider {
color: #211d1a;
margin: 0;
padding: 0;
}
#mute-btn {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #fff;
color: #211d1a;
border: none;
padding: 10px 15px;
font-size: 16px;
font-weight: bold;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
}
#mute-btn:hover {
background-color: #211d1a;
color: #fff;
}