source: Innova/CSS/ProductPage.css@ 8c67304

Last change on this file since 8c67304 was 057badc, checked in by Vlado 222039 <vlado.popovski@…>, 2 months ago

Adding code

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[057badc]1*{
2 margin: 0;
3 padding: 0;
4 box-sizing: border-box;
5 scroll-behavior: smooth;
6 font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
7 list-style: none;
8 text-decoration: none;
9}
10
11:root {
12 /* Fonts */
13 font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
14 --fs-regular: 1rem;
15 --fw-regular: 400;
16 --fw-bold: 700;
17
18 /* Colors */
19 --primary-clr-orange: hsl(26, 100%, 55%);
20 --secondary-clr-orange: hsl(25, 100%, 94%);
21
22 --very-dark-blue: hsl(220, 13%, 13%);
23 --dark-grayish-blue: hsl(219, 9%, 45%);
24 --grayish-blue: hsl(220, 14%, 75%);
25 --opacity-grayish-blue: hsl(223, 64%, 98%);
26 --white: hsl(0, 0%, 100%);
27 --black: hsl(0, 0%, 0%);
28 --opacity-black: hsl(0, 0%, 0%, 75%);
29}
30
31 .product-container {
32 display: flex;
33 justify-content: start;
34 align-items: start;
35 gap: 40px;
36 margin-bottom: 100px;
37 }
38
39 .img-card {
40 position: relative;
41 }
42
43 .img-card img {
44 width: 100%;
45 flex-shrink: 0;
46 border-radius: 4px;
47 height: 520px;
48 object-fit: cover;
49 }
50
51 .small-Card {
52 display: flex;
53 justify-content: start;
54 align-items: center;
55 margin-top: 15px;
56 gap: 12px;
57 }
58
59 .small-Card img {
60 width: 104px;
61 height: 104px;
62 border-radius: 4px;
63 cursor: pointer;
64 }
65
66 .small-Card img:active {
67 border: 1px solid #17696a;
68 }
69
70 .sm-card {
71 border: 2px solid darkred;
72 }
73
74 #featured-image {
75 width: 580px;
76 object-fit: contain;
77 }
78
79 .product-info{
80 width: 60%;
81 }
82 .product-info h3 {
83 font-size: 32px;
84 font-family: Lato;
85 font-weight: 600;
86 line-height: 130%;
87 }
88
89 .product-info h5 {
90 font-size: 24px;
91 font-family: Lato;
92 font-weight: 500;
93 line-height: 130%;
94 color: #ff4242;
95 margin: 6px 0;
96 }
97
98 .product-info del {
99 color: #a9a9a9;
100 }
101
102 .product-info p {
103 color: #424551;
104 margin: 15px 0;
105 width: 70%;
106 }
107
108 .sizes p {
109 font-size: 22px;
110 color: black;
111 }
112
113 .size-option {
114 width: 200px;
115 height: 30px;
116 margin-bottom: 15px;
117 padding: 5px;
118 }
119
120 .quantity input {
121 width: 51px;
122 height: 33px;
123 margin-bottom: 15px;
124 padding: 6px;
125 }
126
127 button {
128 background: #17696a;
129 border-radius: 4px;
130 padding: 10px 37px;
131 border: none;
132 color: white;
133 font-weight: 600;
134 }
135
136 button:hover {
137 background: #ff4242;
138 transition: ease-in 0.4s;
139 }
140
141 .delivery {
142 display: flex;
143 justify-content: space-between;
144 align-items: center;
145 width: 70%;
146 color: #787a80;
147 font-size: 12px;
148 font-family: Lato;
149 line-height: 150%;
150 letter-spacing: 1px;
151 }
152
153 hr {
154 color: #787a80;
155 width: 58%;
156 opacity: 0.67;
157 }
158
159 .pagination {
160 color: #787a80;
161 margin: 15px 0;
162 cursor: pointer;
163 }
164
165 @media screen and (max-width: 576px) {
166 .product-container{
167 flex-direction: column;
168 }
169 .small-Card img{
170 width: 80px;
171 }
172 .product-info{
173 width: 100%;
174 }
175 .product-info p{
176 width: 100%;
177 }
178
179 .delivery{
180 width: 100%;
181 }
182
183 hr{
184 width: 100%;
185 }
186 }
187
188
189
190 /* ============================ */
191
192
193section{
194 padding: 0px 10%;
195}
196
197/*============================*/
198
199.info__pricing {
200 display: flex;
201 align-items: center;
202 margin-block: 1.5rem;
203}
204
205.info__pricing > * {
206 display: block;
207}
208
209.info__pricing--price {
210 font-size: 1.75rem;
211 font-weight: var(--fw-bold);
212 color: var(--black);
213}
214
215.info__pricing--discount {
216 margin-left: 1rem;
217 padding: .2rem .5rem;
218 font-weight: var(--fw-bold);
219 color: var(--primary-clr-orange);
220 background-color: var(--secondary-clr-orange);
221 border-radius: 6px;
222}
223
224.info__pricing--before {
225 margin-left: auto;
226 font-weight: var(--fw-bold);
227 color: var(--grayish-blue);
228}
229
230.info__pricing {
231 display: block;
232}
233
234.info__pricing > *:not(:last-child) {
235 display: inline-block;
236 vertical-align: middle;
237}
238
239.info__pricing--before {
240 margin-top: .5rem;
241}
242
243strike {
244 text-decoration: line-through;
245}
246
247.isAvailable i{
248 vertical-align: middle;
249}
250
251.bx-check {
252 font-size: 32px;
253 font-weight: bold;
254 color: rgb(60, 163, 50);
255}
256
257.bx-x {
258 color: rgb(247, 53, 53);
259 font-size: 32px;
260 font-weight: bold;
261}
262
263/*==================================*/
264
265.center-text h2{
266 color: #111;
267 font-size: 32px;
268 text-transform: capitalize;
269 text-align: center;
270 margin-bottom: 25px;
271}
272
273table{
274 border-collapse: collapse;
275 width: 100%;
276}
277
278table {
279 display: table;
280 box-sizing: border-box;
281 text-indent: initial;
282 border-color: gray;
283}
284
285.table-container{
286}
287
288table.product-table th{
289 background-color: #f0f2f2;
290 color: #0f1111;
291 font-weight: 400;
292 text-align: left;
293}
294
295tr {
296 border-top: 1px solid #8d8d8d;
297 border-bottom: 1px solid #8d8d8d;
298}
299
300th {
301 width: 40%;
302}
303
304td {
305 width: 30%;
306}
307
308th, td {
309 padding: 10px;
310}
311
312header {
313 position: static;
314}
315
316.dropdown-menu {
317 position: absolute;
318}
319
320#menu-3d {
321 position: absolute;
322 z-index: 2;
323 top: 12px;
324 left: -46px;
325 display: flex;
326 flex-direction: column;
327 gap: 8px;
328}
329
330#display-3d-button, #toggle-spin-button, #pause-play-video-button, #toggle-video-button{
331 padding: 0.25em;
332 font-size: 1.0em;
333 font-family: Arial, Helvetica, sans-serif;
334 color: rgb(58, 58, 58);
335 background-color: transparent;
336 border: 1px solid rgb(58, 58, 58);
337 border-radius: 4px;
338 width: 42px;
339 height: 42px;
340 transition: all 0.25s;
341}
342
343#display-3d-button:hover, #toggle-spin-button:hover, #pause-play-video-button:hover, #toggle-video-button:hover {
344 background-color: rgb(58, 58, 58);
345 color: white;
346}
347
348svg:hover path {
349 fill: white;
350}
351
352#viewport {
353 display: none;
354 position: absolute;
355 z-index: 3;
356 top: 0;
357}
Note: See TracBrowser for help on using the repository browser.