Blame view
public/scss/pages/main/catalog.scss
19.9 KB
b80175387 Начальный проект ... |
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 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 |
@import "../../vars"; @import "../../mixins"; .catalog { padding-top: 70px; &__title { font-weight: 700; font-size: 48px; line-height: 100%; letter-spacing: -0.01em; color: $vmainGrey; align-self: start; } &__tabs { display: flex; margin-top: 40px; align-self: start; // .active { // font-weight: 800; // color: $vactiveOrange; // } } } .tab { margin-right: 22.5px; font-family: 'Muller'; font-style: normal; font-weight: 400; font-size: 15px; line-height: 15px; color: $vmainGrey; cursor: pointer; &.active { font-weight: 800; color: $vactiveOrange; } } .catalog-container { display: flex; flex-direction: column; justify-content: center; align-items: center; } .tabs__content { .tabs__item { display: none; &-active { display: block; margin-top: 8px; display: flex; flex-wrap: wrap; } // &:not(:nth-child(4n)) { // margin-right: 25px; // } .content__item { max-width: 315px; width: 100%; padding-bottom: 55px; margin-top: 20px; transition: box-shadow 0.2s ease; &:not(:nth-child(4n)) { margin-right: 6px; } &:hover { box-shadow: 0px 5px 12.5px rgba(0, 0, 0, 0.15); border-radius: 10px; } .swiper-pagination-bullet { width: 93px; height: 4px; border-radius: 26.6039px; background-color: #E0E0E0; } .swiper-pagination-bullet-active { background-color: #F5851A !important; } .swiper-icons { display: flex; justify-content: space-between; margin-top: 8px; margin-left: 8px; &__left { display: flex; .svg-clock { width: 15px; height: 15px; margin-right: 7px; } &-par { font-weight: 400; font-size: 12.7826px; line-height: 15px; letter-spacing: -0.01em; color: $vMain3; } } &__right { margin-right: 7px; .svg-compare { position: relative; &:after { position: absolute; content: ""; background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8497 18.5195H9.25085V3.2305H10.8497V18.5195ZM7.65201 15.7397H4.45432V6.01031H7.65201V4.62041H4.45432C3.56696 4.62041 2.85547 5.23891 2.85547 6.01031V15.7397C2.85547 16.5111 3.57495 17.1296 4.45432 17.1296H7.65201V15.7397ZM15.6462 7.40022V8.79012H17.2451V7.40022H15.6462ZM15.6462 6.01031H17.2451C17.2451 5.23891 16.5256 4.62041 15.6462 4.62041V6.01031ZM17.2451 12.9598H15.6462V14.3498H17.2451V12.9598ZM15.6462 10.18V11.5699H17.2451V10.18H15.6462ZM14.0474 4.62041H12.4485V6.01031H14.0474V4.62041ZM15.6462 17.1296C16.5336 17.1296 17.2451 16.5111 17.2451 15.7397H15.6462V17.1296ZM14.0474 15.7397H12.4485V17.1296H14.0474V15.7397Z' fill='%23ABB2BF'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: cover; bottom: -12px; right: 38px; width: 18px; height: 17px; cursor: pointer; } &_active { &:after { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.366 18H8.69281V2H10.366V18ZM7.01961 15.0909H3.6732V4.90909H7.01961V3.45455H3.6732C2.74458 3.45455 2 4.10182 2 4.90909V15.0909C2 15.8982 2.75294 16.5455 3.6732 16.5455H7.01961V15.0909ZM15.3856 6.36364V7.81818H17.0588V6.36364H15.3856ZM15.3856 4.90909H17.0588C17.0588 4.10182 16.3059 3.45455 15.3856 3.45455V4.90909ZM17.0588 12.1818H15.3856V13.6364H17.0588V12.1818ZM15.3856 9.27273V10.7273H17.0588V9.27273H15.3856ZM13.7124 3.45455H12.0392V4.90909H13.7124V3.45455ZM15.3856 16.5455C16.3142 16.5455 17.0588 15.8982 17.0588 15.0909H15.3856V16.5455ZM13.7124 15.0909H12.0392V16.5455H13.7124V15.0909Z' fill='%23333B49'/%3E%3C/svg%3E%0A"); } } } .svg-favorite { position: relative; &:after { position: absolute; content: ""; background-image: url("data:image/svg+xml,%3Csvg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97778 13.5586L8.88889 13.6458L8.79111 13.5586C4.56889 9.80054 1.77778 7.31553 1.77778 4.79564C1.77778 3.05177 3.11111 1.74387 4.88889 1.74387C5.96474 1.74387 7.01863 2.28245 7.64925 3.08872C7.95671 3.48182 8.38983 3.80164 8.88889 3.80164C9.38795 3.80164 9.82107 3.48182 10.1285 3.08872C10.7591 2.28245 11.813 1.74387 12.8889 1.74387C14.6667 1.74387 16 3.05177 16 4.79564C16 7.31553 13.2089 9.80054 8.97778 13.5586ZM12.8889 0C11.3422 0 9.85778 0.706267 8.88889 1.81362C7.92 0.706267 6.43555 0 4.88889 0C2.15111 0 0 2.10136 0 4.79564C0 8.08283 3.02222 10.7771 7.6 14.849L8.88889 16L10.1778 14.849C14.7556 10.7771 17.7778 8.08283 17.7778 4.79564C17.7778 2.10136 15.6267 0 12.8889 0Z' fill='%23ABB2BF'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: cover; bottom: -11px; right: 3px; width: 15px; height: 13px; cursor: pointer; } &_active { &:after { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.8889 2C12.3422 2 10.8578 2.70627 9.88889 3.81362C8.92 2.70627 7.43555 2 5.88889 2C3.15111 2 1 4.10136 1 6.79564C1 10.0828 4.02222 12.7771 8.6 16.849L9.88889 18L11.1778 16.849C15.7556 12.7771 18.7778 10.0828 18.7778 6.79564C18.7778 4.10136 16.6267 2 13.8889 2Z' fill='%23333B49'/%3E%3C/svg%3E%0A"); } } } } } //старое .content__text { display: flex; flex-direction: column; max-width: 288px; width: 100%; margin: 0 auto; &-title { font-weight: 600; font-size: 14.6087px; line-height: 20px; letter-spacing: -0.01em; color: #000000; margin-top: 20px; } &-specs { display: flex; margin-top: 18px; .spec-one { &__par { font-size: 12px; line-height: 14px; letter-spacing: -0.01em; color: $vMain3; margin-bottom: 4px; .spec-one__title { font-weight: 600; } } } .spec-two { font-size: 12px; line-height: 14px; letter-spacing: -0.01em; color: $vMain3; display: flex; flex-direction: column; margin-left: 15px; .spec-two__title { font-weight: 600; margin-bottom: 4px; } .country__wrapper { display: flex; position: relative; .country { position: absolute; top: 1px; left: 0; width: 13px; height: 10px; display: inline-block; } .spec-par { padding-left: 22px; } } } } &-down { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; position: relative; .price-before { position: absolute; top: -12px; left: 0; font-size: 14px; line-height: 17px; display: flex; align-items: center; letter-spacing: -0.01em; text-decoration-line: line-through; color: $vMain3; display: none; &_active { display: inline-block; } } &__price { font-weight: 600; font-size: 21.913px; line-height: 26px; letter-spacing: -0.01em; color: $vactiveOrange; } &__button { @include btn-orange; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; width: 108px; height: 35px; &:hover { @include btn-orange-hover; } } &__calculate { @include btn-orange; width: 100%; height: 35px; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; &:hover { @include btn-orange-hover; } } } &-five { font-family: 'Muller'; font-style: normal; font-weight: 400; font-size: 12.9738px; line-height: 17px; color: #636B78; margin-top: 18px; } } } } } .tabs-item-main { > :not(:nth-child(4n)) { margin-right: 15px; } } // каталог item исправленный .content-item { max-width: 315px; width: 100%; height: 550px; margin-top: 20px; transition: box-shadow 0.2s ease; &:hover { box-shadow: 0px 5px 12.5px rgba(0, 0, 0, 0.15); border-radius: 10px; .content-info, .content-text__title { display: none; } .content-text-hover { display: block; } } } .content-text-hover { display: none; font-family: "Muller"; font-style: normal; font-weight: 400; font-size: 12.9738px; line-height: 17px; color: #636B78; margin-top: 18px; z-index: 3; } .swiper-catalog { background: #F7F7F9; border-radius: 9.13041px; max-width: 304px; width: 100%; max-height: 302px; height: 100%; margin-top: 6px; } .swiper-icons { display: flex; justify-content: space-between; margin-top: 8px; margin-left: 8px; &-left { display: flex; &__clock { width: 15px; height: 15px; margin-right: 7px; } &__text { font-weight: 400; font-size: 12.7826px; line-height: 15px; letter-spacing: -0.01em; color: $vMain3; } } } .swiper-icons-right { margin-right: 7px; &__compare { position: relative; &:after { position: absolute; content: ""; background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8497 18.5195H9.25085V3.2305H10.8497V18.5195ZM7.65201 15.7397H4.45432V6.01031H7.65201V4.62041H4.45432C3.56696 4.62041 2.85547 5.23891 2.85547 6.01031V15.7397C2.85547 16.5111 3.57495 17.1296 4.45432 17.1296H7.65201V15.7397ZM15.6462 7.40022V8.79012H17.2451V7.40022H15.6462ZM15.6462 6.01031H17.2451C17.2451 5.23891 16.5256 4.62041 15.6462 4.62041V6.01031ZM17.2451 12.9598H15.6462V14.3498H17.2451V12.9598ZM15.6462 10.18V11.5699H17.2451V10.18H15.6462ZM14.0474 4.62041H12.4485V6.01031H14.0474V4.62041ZM15.6462 17.1296C16.5336 17.1296 17.2451 16.5111 17.2451 15.7397H15.6462V17.1296ZM14.0474 15.7397H12.4485V17.1296H14.0474V15.7397Z' fill='%23ABB2BF'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: cover; bottom: -12px; right: 38px; width: 18px; height: 17px; cursor: pointer; } &_active { &:after { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.366 18H8.69281V2H10.366V18ZM7.01961 15.0909H3.6732V4.90909H7.01961V3.45455H3.6732C2.74458 3.45455 2 4.10182 2 4.90909V15.0909C2 15.8982 2.75294 16.5455 3.6732 16.5455H7.01961V15.0909ZM15.3856 6.36364V7.81818H17.0588V6.36364H15.3856ZM15.3856 4.90909H17.0588C17.0588 4.10182 16.3059 3.45455 15.3856 3.45455V4.90909ZM17.0588 12.1818H15.3856V13.6364H17.0588V12.1818ZM15.3856 9.27273V10.7273H17.0588V9.27273H15.3856ZM13.7124 3.45455H12.0392V4.90909H13.7124V3.45455ZM15.3856 16.5455C16.3142 16.5455 17.0588 15.8982 17.0588 15.0909H15.3856V16.5455ZM13.7124 15.0909H12.0392V16.5455H13.7124V15.0909Z' fill='%23333B49'/%3E%3C/svg%3E%0A"); } } } &__favorite { position: relative; &:after { position: absolute; content: ""; background-image: url("data:image/svg+xml,%3Csvg width='18' height='16' viewBox='0 0 18 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97778 13.5586L8.88889 13.6458L8.79111 13.5586C4.56889 9.80054 1.77778 7.31553 1.77778 4.79564C1.77778 3.05177 3.11111 1.74387 4.88889 1.74387C5.96474 1.74387 7.01863 2.28245 7.64925 3.08872C7.95671 3.48182 8.38983 3.80164 8.88889 3.80164C9.38795 3.80164 9.82107 3.48182 10.1285 3.08872C10.7591 2.28245 11.813 1.74387 12.8889 1.74387C14.6667 1.74387 16 3.05177 16 4.79564C16 7.31553 13.2089 9.80054 8.97778 13.5586ZM12.8889 0C11.3422 0 9.85778 0.706267 8.88889 1.81362C7.92 0.706267 6.43555 0 4.88889 0C2.15111 0 0 2.10136 0 4.79564C0 8.08283 3.02222 10.7771 7.6 14.849L8.88889 16L10.1778 14.849C14.7556 10.7771 17.7778 8.08283 17.7778 4.79564C17.7778 2.10136 15.6267 0 12.8889 0Z' fill='%23ABB2BF'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: cover; bottom: -11px; right: 3px; width: 15px; height: 13px; cursor: pointer; } &_active { &:after { background-image: url("data:image/svg+xml,%3Csvg width='18' height='17' viewBox='0 0 18 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.883 0.911133C11.4051 0.911133 9.9866 1.58601 9.06077 2.64416C8.13493 1.58601 6.71646 0.911133 5.23852 0.911133C2.62241 0.911133 0.566895 2.91911 0.566895 5.49366C0.566895 8.63477 3.45481 11.2093 7.82916 15.1003L9.06077 16.2001L10.2924 15.1003C14.6667 11.2093 17.5546 8.63477 17.5546 5.49366C17.5546 2.91911 15.4991 0.911133 12.883 0.911133Z' fill='%23F2994A'/%3E%3C/svg%3E"); } } } } .swiper-pagination-bullet { width: 93px; height: 4px; border-radius: 26.6039px; background-color: #E0E0E0; } .swiper-pagination-bullet-active { background-color: #F5851A !important; } // исправленный нейминг .content-text { display: flex; flex-direction: column; max-width: 288px; width: 100%; margin: 0 auto; &__title { font-weight: 600; font-size: 14.6087px; line-height: 20px; letter-spacing: -0.01em; color: #000000; margin-top: 20px; } } .content-info { display: flex; margin-top: 18px; } .info-one { &__par { font-size: 12px; line-height: 14px; letter-spacing: -0.01em; color: $vMain3; margin-bottom: 4px; span { font-weight: 600; } } } .info-two { font-size: 12px; line-height: 14px; letter-spacing: -0.01em; color: $vMain3; display: flex; flex-direction: column; margin-left: 15px; &__title { font-weight: 600; margin-bottom: 4px; } &-wrapper { display: flex; position: relative; &__country { position: absolute; top: 1px; left: 0; width: 13px; height: 10px; display: inline-block; } &__name { padding-left: 22px; } } } .content-text-down { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; position: relative; &__before { position: absolute; top: -12px; left: 0; font-size: 14px; line-height: 17px; display: flex; align-items: center; letter-spacing: -0.01em; text-decoration-line: line-through; color: $vMain3; display: none; &--active { display: inline-block; } } &__price { font-weight: 600; font-size: 21.913px; line-height: 26px; letter-spacing: -0.01em; color: $vactiveOrange; } &__button { @include btn-orange; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; padding: 12px 25px 10px 24px; &:hover { @include btn-orange-hover; padding: 12px 25px 10px 24px; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; } } &__calculate { @include btn-orange; padding: 12px 81px; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; &:hover { @include btn-orange-hover; padding: 12px 81px; font-family: 'Muller'; font-style: normal; font-weight: 500; font-size: 12.3973px; line-height: 12px; } } } .catalog-button { @include btn-orange-hover; padding: 16px 40px; font-weight: 600; font-size: 14px; line-height: 16px; letter-spacing: -0.01em; border-radius: 10px; margin-top: 56px; &:hover { @include btn-orange; font-weight: 600; font-size: 14px; line-height: 16px; } } .slide-3 { margin-top: 45px; } .slide-4 { margin-top: 40px; margin-left: 32px; } .slide-5 { margin-top: 0px; margin-left: 42px; } .slide-6 { margin-top: -11px; margin-left: 36px; } .slide-7 { margin-top: 55px; margin-left: 0px; } .slide-8 { margin-top: 8px; margin-left: 39px; } |