BasketItem.module.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @import "styles/_variables.scss";
  2. .item {
  3. border-top: 1px solid rgba($color: $dark-gray, $alpha: 0.15);
  4. display: flex;
  5. padding: 1rem;
  6. .img {
  7. width: 100px;
  8. height: 100px;
  9. border-radius: $border-radius;
  10. border: 1px solid rgba($color: $dark-gray, $alpha: 0.1);
  11. padding: 5px;
  12. > img {
  13. width: 100%;
  14. height: 100%;
  15. object-fit: contain;
  16. }
  17. }
  18. .detail {
  19. flex: 1;
  20. padding-left: 10px;
  21. .priceContainer {
  22. display: flex;
  23. margin-top: 10px;
  24. > small {
  25. font-weight: 600;
  26. padding: 5px 0;
  27. &:first-of-type {
  28. &::after {
  29. content: "X";
  30. margin-left: 5px;
  31. margin-right: 5px;
  32. }
  33. }
  34. &:last-of-type {
  35. margin-left: auto;
  36. font-weight: 600;
  37. &::before {
  38. content: "=";
  39. margin-right: 5px;
  40. }
  41. }
  42. }
  43. }
  44. }
  45. }
  46. .removeItem {
  47. > button {
  48. background-color: $red;
  49. color: $white;
  50. width: 20px;
  51. height: 20px;
  52. display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. border-radius: $border-radius;
  56. cursor: pointer;
  57. }
  58. }