Detail.module.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. @import "styles/_variables.scss";
  2. .detail {
  3. padding: 1rem;
  4. display: flex;
  5. justify-content: center;
  6. .content {
  7. width: 768px;
  8. margin-top: 1rem;
  9. .top {
  10. display: flex;
  11. width: 100%;
  12. .img {
  13. min-width: 300px;
  14. max-width: 300px;
  15. height: 300px;
  16. padding: 10px;
  17. border: 1px solid rgba($color: $dark-gray, $alpha: 0.1);
  18. border-radius: $border-radius;
  19. img {
  20. width: 100%;
  21. height: 100%;
  22. object-fit: contain;
  23. }
  24. }
  25. .info {
  26. padding-left: 10px;
  27. width: 100%;
  28. .title {
  29. color: $dark-gray;
  30. }
  31. .category {
  32. margin-top: 10px;
  33. font-weight: 500;
  34. }
  35. .rating {
  36. margin-top: 10px;
  37. display: flex;
  38. align-items: center;
  39. justify-content: flex-end;
  40. .stars {
  41. display: flex;
  42. gap: 2px;
  43. }
  44. }
  45. .price {
  46. display: flex;
  47. font-weight: 500;
  48. font-size: 1.45rem;
  49. p {
  50. width: 100%;
  51. border-radius: $border-radius;
  52. color: $black;
  53. }
  54. }
  55. .addToBasketAndQuantity {
  56. display: inline-flex;
  57. align-items: center;
  58. margin-top: 10px;
  59. .addToBasket {
  60. padding: 0 10px;
  61. flex: 1;
  62. height: 37px;
  63. border-radius: $border-radius;
  64. text-transform: uppercase;
  65. font-family: inherit;
  66. font-weight: 600;
  67. cursor: pointer;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. gap: 5px;
  72. transition: all 0.5s;
  73. color: $white;
  74. background-color: rgba($color: $red, $alpha: 0.8);
  75. }
  76. .quantityBox {
  77. margin-right: 10px;
  78. }
  79. }
  80. }
  81. }
  82. .bottom {
  83. margin-top: 30px;
  84. .desc {
  85. font-size: 0.95rem;
  86. font-weight: 400;
  87. border-top: 1px solid rgba($color: $dark-gray, $alpha: 0.1);
  88. padding-top: 10px;
  89. }
  90. }
  91. }
  92. }
  93. @media (max-width: 768px) {
  94. .detail {
  95. .content {
  96. width: 100%;
  97. }
  98. }
  99. }
  100. @media (max-width: 600px) {
  101. .detail {
  102. .content {
  103. .top {
  104. flex-direction: column;
  105. .img {
  106. min-width: 100%;
  107. }
  108. .addToBasketAndQuantity {
  109. width: 100%;
  110. }
  111. .info {
  112. margin-top: 10px;
  113. }
  114. }
  115. }
  116. }
  117. }