BasketSidebar.module.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @import "styles/_variables.scss";
  2. .sidebarContainer {
  3. position: fixed;
  4. top: 0;
  5. right: 0;
  6. bottom: 0;
  7. left: 0;
  8. background-color: rgba($color: $black, $alpha: 0.75);
  9. z-index: 1;
  10. .sidebar {
  11. width: 400px;
  12. height: 100%;
  13. background-color: $white;
  14. margin-left: auto;
  15. position: relative;
  16. .header {
  17. display: flex;
  18. align-items: center;
  19. padding: 1rem;
  20. small {
  21. font-weight: 500;
  22. text-transform: capitalize;
  23. }
  24. .close {
  25. margin-left: auto;
  26. background-color: $red;
  27. display: flex;
  28. align-items: center;
  29. justify-content: center;
  30. color: $white;
  31. border-radius: $border-radius;
  32. cursor: pointer;
  33. }
  34. }
  35. .items {
  36. display: flex;
  37. flex-direction: column;
  38. overflow-y: auto;
  39. max-height: 60%;
  40. }
  41. .basketTotal {
  42. position: absolute;
  43. width: 100%;
  44. height: 150px;
  45. bottom: 0;
  46. padding: 1rem;
  47. border-top: 1px solid rgba($color: $dark-gray, $alpha: 0.15);
  48. .total {
  49. display: flex;
  50. align-items: center;
  51. justify-content: space-between;
  52. }
  53. .totalPrice {
  54. margin-top: 20px;
  55. display: flex;
  56. align-items: baseline;
  57. justify-content: space-between;
  58. > small {
  59. text-transform: uppercase;
  60. font-weight: 700;
  61. }
  62. .price {
  63. display: flex;
  64. align-items: center;
  65. font-weight: 700;
  66. font-size: 1.25rem;
  67. }
  68. }
  69. .confirmBtn {
  70. width: 100%;
  71. margin-top: 10px;
  72. background-color: #019267;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. color: $white;
  77. font-family: inherit;
  78. font-size: 1.15rem;
  79. padding: 0 10px;
  80. height: 37px;
  81. font-weight: 500;
  82. border-radius: $border-radius;
  83. cursor: pointer;
  84. }
  85. }
  86. .emptyBasket {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: center;
  91. padding: 0 1rem;
  92. > img {
  93. width: 250px;
  94. height: 250px;
  95. object-fit: contain;
  96. object-position: center;
  97. }
  98. > button {
  99. width: 100%;
  100. height: 37px;
  101. border-radius: $border-radius;
  102. background-color: $red;
  103. color: $white;
  104. font-family: inherit;
  105. font-weight: 500;
  106. font-size: 1rem;
  107. cursor: pointer;
  108. }
  109. }
  110. }
  111. }
  112. .hide {
  113. display: none;
  114. }
  115. .show {
  116. display: block;
  117. }