main.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. .main-container {
  2. display: flex;
  3. width: 100%;
  4. height: 100vh;
  5. }
  6. #aside {
  7. display: flex;
  8. flex-direction: column;
  9. background-color: #eb0000;
  10. padding: 10px;
  11. width: 15%;
  12. position: fixed;
  13. }
  14. #aside a {
  15. text-decoration: none;
  16. color: white;
  17. margin: 10px 0;
  18. transition: all 0.5s;
  19. }
  20. #main {
  21. display: flex;
  22. flex-direction: column;
  23. width: 85%;
  24. margin-left: 20%;
  25. margin-top: 20px;
  26. }
  27. #main h2 {
  28. margin-left: 20px;
  29. }
  30. .cards {
  31. display: flex;
  32. flex-wrap: wrap;
  33. justify-content: flex-start;
  34. width: 100%;
  35. padding: 20px;
  36. text-align: center;
  37. }
  38. .cards a {
  39. text-decoration: none;
  40. color: #000;
  41. margin: 15px;
  42. border-radius: 10px;
  43. width: 25%;
  44. transition: all 0.5s;
  45. box-shadow: 0 0 2px rgb(8, 8, 8);
  46. }
  47. .cards a:hover {
  48. transform: scale(1.05);
  49. }
  50. .card img {
  51. max-width: 80%;
  52. margin: 10px 0;
  53. }
  54. .card {
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. justify-content: space-between;
  59. height: 100%;
  60. padding: 15px;
  61. }
  62. button {
  63. box-sizing: border-box;
  64. background-color: transparent;
  65. border: 2px solid #e74c3c;
  66. border-radius: 0.6em;
  67. color: #e74c3c;
  68. cursor: pointer;
  69. line-height: 1;
  70. margin: 10px;
  71. padding: 0.5em;
  72. text-decoration: none;
  73. text-align: center;
  74. text-transform: uppercase;
  75. transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
  76. }
  77. button:hover {
  78. color: #fff;
  79. outline: 0;
  80. box-shadow: 0 0 40px 40px #e74c3c inset;
  81. }
  82. input {
  83. width: 40px;
  84. height: 35px;
  85. text-align: center;
  86. border: 2px solid #e74c3c;
  87. border-radius: 0.6em;
  88. }
  89. #cart {
  90. position: relative;
  91. color: #000;
  92. margin-right: 20px;
  93. }
  94. #cart span {
  95. position: absolute;
  96. top: 0;
  97. right: -5px;
  98. border: 1px solid #000;
  99. background-color: #fff;
  100. border-radius: 10px;
  101. padding: 0 4px;
  102. font-size: 12px;
  103. text-align: center;
  104. }
  105. .cart-item {
  106. display: flex;
  107. align-items: center;
  108. font-size: 18px;
  109. border-bottom: 1px solid #8d8d8d;
  110. }
  111. .btn-plus,
  112. .btn-minus,
  113. .btn-del {
  114. position: relative;
  115. width: 25px;
  116. height: 25px;
  117. border-radius: 55%;
  118. border: none;
  119. }
  120. .btn-plus::before,
  121. .btn-plus::after,
  122. .btn-minus::before,
  123. .btn-del::before,
  124. .btn-del::after {
  125. content: "";
  126. display: block;
  127. position: absolute;
  128. width: 2px;
  129. height: 12px;
  130. background-color: #e74c3c;
  131. top: 50%;
  132. left: 50%;
  133. margin-right: -50%;
  134. transition: background-color 0.3s;
  135. }
  136. .btn-plus::before,
  137. .btn-minus::before {
  138. transform: translate(-50%, -50%) rotate(90deg);
  139. }
  140. .btn-plus::after {
  141. transform: translate(-50%, -50%);
  142. }
  143. .btn-del::before {
  144. transform: translate(-50%, -50%) rotate(45deg);
  145. }
  146. .btn-del::after {
  147. transform: translate(-50%, -50%) rotate(-45deg);
  148. }
  149. .btn-plus:hover::after,
  150. .btn-plus:hover::before,
  151. .btn-minus:hover::before,
  152. .btn-del:hover::after,
  153. .btn-del:hover::before {
  154. background-color: #fff;
  155. }
  156. .btn-plus:active,
  157. .btn-minus:active,
  158. .btn-del:active {
  159. transform: scale(0.95);
  160. }
  161. .btn-minus:disabled,
  162. .form button:disabled {
  163. border-color: grey;
  164. color: grey;
  165. cursor: default;
  166. box-shadow: none;
  167. }
  168. .btn-minus:disabled::before {
  169. background-color: grey;
  170. }
  171. .cart-item-count {
  172. color: #e74c3c;
  173. width: 30px;
  174. height: 30px;
  175. }
  176. .btn-clear {
  177. color: #706e6e;
  178. border-color: #706e6e;
  179. }
  180. .btn-clear:hover {
  181. box-shadow: 0 0 40px 40px #706e6e inset;
  182. }
  183. #userpanel {
  184. display: flex;
  185. align-items: center;
  186. position: absolute;
  187. right: 10px;
  188. justify-content: space-between;
  189. width: 30vw;
  190. }
  191. #userpanel a {
  192. text-decoration: none;
  193. color: inherit;
  194. margin: 0 10px;
  195. transition: all 0.3s;
  196. }
  197. #userpanel a:hover {
  198. color: grey;
  199. }
  200. #userpanel button {
  201. color: #000;
  202. border: none;
  203. margin-right: 0;
  204. }
  205. #userpanel button:hover {
  206. box-shadow: none;
  207. color: grey;
  208. }
  209. #userpanel span {
  210. font-weight: 600;
  211. text-transform: uppercase;
  212. }
  213. .form {
  214. display: flex;
  215. flex-direction: column;
  216. align-items: flex-start;
  217. justify-content: space-around;
  218. padding: 5px;
  219. color: #424141;
  220. }
  221. .form input {
  222. width: unset;
  223. margin: 10px 0;
  224. }
  225. .form button {
  226. order: 1;
  227. margin: 0;
  228. margin-top: 15px;
  229. transition: all 0.3s ease-in-out;
  230. }