index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <style>
  7. html, body {
  8. margin: 0;
  9. padding: 0;
  10. }
  11. #main {
  12. max-width: 70%;
  13. }
  14. .header {
  15. display: flex;
  16. justify-content: space-between;
  17. align-items: center;
  18. position: sticky;
  19. top: 0;
  20. min-height: 60px;
  21. padding-left: 20px;
  22. padding-right: 20px;
  23. background-color: #afafaf;
  24. }
  25. .good-images {
  26. display: flex;
  27. align-items: center;
  28. column-gap: 50px;
  29. margin-top: 50px;
  30. }
  31. .good-images__element {
  32. max-width: 100%;
  33. max-height: 300px;
  34. }
  35. .card__image {
  36. max-width: 100%;
  37. max-height: 300px;
  38. }
  39. #mainContainer {
  40. display: flex;
  41. padding: 20px;
  42. }
  43. .cart,
  44. .order-cart-group,
  45. .order-cart__elements {
  46. display: flex;
  47. flex-direction: column;
  48. row-gap: 20px;
  49. }
  50. .cart__element,
  51. .order-cart__element {
  52. padding: 20px;
  53. border: 1px solid #ebebeb;
  54. }
  55. .cart__figure,
  56. .order-cart__figure {
  57. display: flex;
  58. column-gap: 30px;
  59. margin: 0;
  60. }
  61. .cart__image,
  62. .order-cart__image {
  63. max-width: 100px;
  64. max-height: 100px;
  65. }
  66. .cart__price {
  67. display: block;
  68. margin-top: 20px;
  69. }
  70. .cart__name {
  71. font-size: 18px;
  72. display: block;
  73. }
  74. fieldset {
  75. margin: 0;
  76. padding: 0;
  77. border: 0 none;
  78. }
  79. .cart__quantity {
  80. display: flex;
  81. height: 40px;
  82. }
  83. .cart__quantity-button {
  84. background-color: #fff;
  85. border: 1px solid #ebebeb;
  86. color: #333;
  87. font-size: 18px;
  88. height: inherit;
  89. transition: background-color 225ms ease;
  90. width: 40px;
  91. cursor: pointer;
  92. }
  93. .cart__quantity-button:disabled {
  94. background-color: rgba(51, 51, 51, 0.15);
  95. cursor: not-allowed;
  96. }
  97. .cart__quantity-button--decrease {
  98. border-radius: 3px 0 0 3px;
  99. border-right: 0;
  100. }
  101. .cart__quantity-button--increase {
  102. border-left: 0;
  103. border-radius: 0 3px 3px 0;
  104. }
  105. .cart__quantity-amount {
  106. box-sizing: border-box;
  107. appearance: none;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. background-color: #fff;
  112. border: 1px solid #ebebeb;
  113. color: #333;
  114. font-size: 13px;
  115. border-radius: 0;
  116. height: inherit;
  117. padding: 0 5px;
  118. text-align: center;
  119. width: 50px;
  120. transition: border-color 225ms ease;
  121. }
  122. .cart__delete-button {
  123. margin-top: 20px;
  124. width: 120px;
  125. height: 40px;
  126. cursor: pointer;
  127. }
  128. .cart-button {
  129. font-size: 18px;
  130. width: 200px;
  131. height: 60px;
  132. cursor: pointer;
  133. }
  134. #aside {
  135. width: 30%;
  136. }
  137. #aside > a{
  138. display: block;
  139. }
  140. </style>
  141. </head>
  142. <body>
  143. <header class="header">
  144. <div id='cartIcon'></div>
  145. <div id='authSection'></div>
  146. </header>
  147. <div id='mainContainer'>
  148. <aside id='aside'>
  149. Категории
  150. </aside>
  151. <main id='main'>
  152. Контент
  153. </main>
  154. </div>
  155. <script src="index.js"></script>
  156. </body>
  157. </html>