style.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. *,
  2. *::before,
  3. *::after {
  4. box-sizing: border-box;
  5. }
  6. html {
  7. font-family: 'Roboto', sans-serif;
  8. color: black;
  9. font-size: 16px;
  10. line-height: 1.3;
  11. font-weight: 400;
  12. }
  13. body {
  14. margin: 0;
  15. }
  16. #mainContainer {
  17. display: flex;
  18. position: relative;
  19. width: 100%;
  20. padding: 20px;
  21. }
  22. #aside {
  23. min-width: 260px;
  24. max-width: 260px;
  25. margin-right: 30px;
  26. }
  27. #aside > a {
  28. display: block;
  29. text-decoration: none;
  30. color: black;
  31. border-bottom: 1px solid gray;
  32. padding: 10px 20px;
  33. margin-bottom: 8px;
  34. }
  35. #aside > a:hover {
  36. color: gray;
  37. transition: color 0.3s;
  38. }
  39. #main {
  40. max-width: 1000px;
  41. width: 100%;
  42. }
  43. header {
  44. min-height: 100px;
  45. height: 100%;
  46. background-color: black;
  47. color: #fff;
  48. display: flex;
  49. justify-content: space-between;
  50. align-items: center;
  51. padding: 0 20px;
  52. }
  53. header .button {
  54. border: none;
  55. background-color: white;
  56. border-radius: 10px;
  57. padding: 6px 12px;
  58. cursor: pointer;
  59. color: black;
  60. font-size: 16px;
  61. transition: color 0.3s;
  62. }
  63. header .button:hover,
  64. header a:hover {
  65. color: rgb(165, 189, 251);
  66. }
  67. header a {
  68. color: #fff;
  69. text-decoration: none;
  70. transition: color 0.3s;
  71. }
  72. header a img {
  73. display: flex;
  74. width: 200px;
  75. }
  76. .header-info {
  77. display: flex;
  78. align-items: center;
  79. }
  80. .header-info > * {
  81. margin: 0 14px;
  82. }
  83. .cart-section {
  84. position: relative;
  85. }
  86. .cart-icon {
  87. width: 34px;
  88. cursor: pointer;
  89. }
  90. #cartIconEl {
  91. border-radius: 50%;
  92. background-color: white;
  93. color: black;
  94. padding: 1px 6px;
  95. font-size: 14px;
  96. position: absolute;
  97. transform: translate(-12px, 19px);
  98. }
  99. .login-block button:first-child {
  100. margin-right: 8px;
  101. }
  102. .good-cart .image-container {
  103. cursor: pointer;
  104. }
  105. .image-container {
  106. width: 200px;
  107. height: 200px;
  108. }
  109. .icon-container {
  110. width: 20px;
  111. text-align: center;
  112. height: 20px;
  113. padding: 0;
  114. border: none;
  115. background: none;
  116. cursor: pointer;
  117. }
  118. .count-container {
  119. display: flex;
  120. justify-content: flex-end;
  121. }
  122. .count-container > * {
  123. margin: 8px;
  124. }
  125. .count-container input,
  126. .good-cart input,
  127. .good-section input {
  128. max-width: 50px;
  129. width: 100%;
  130. text-align: center;
  131. padding: 4px 0;
  132. }
  133. input[type='number']::-webkit-outer-spin-button,
  134. input[type='number']::-webkit-inner-spin-button {
  135. -webkit-appearance: none;
  136. }
  137. .error {
  138. position: absolute;
  139. top: 10px;
  140. right: 10px;
  141. background-color: #ecb3b3;
  142. border: 1px solid #eb5858;
  143. padding: 10px 15px;
  144. }
  145. .icon-container img {
  146. width: 100%;
  147. height: 100%;
  148. }
  149. .banner-image {
  150. width: 80%;
  151. }
  152. .good-image {
  153. width: 100%;
  154. height: 100%;
  155. object-fit: contain;
  156. }
  157. .info-about-category > * {
  158. margin: 0 8px;
  159. font-weight: 300;
  160. }
  161. .link-style {
  162. color: rgb(18, 139, 199);
  163. }
  164. .link-style:hover {
  165. color: rgb(255, 42, 42);
  166. transition: color 0.3s;
  167. }
  168. .goods-container {
  169. display: flex;
  170. flex-wrap: wrap;
  171. justify-content: center;
  172. gap: 24px 12px;
  173. margin-top: 20px;
  174. }
  175. .good-cart {
  176. flex-basis: 270px;
  177. border-radius: 16px;
  178. padding: 16px;
  179. position: relative;
  180. box-shadow: 0px 0px 13px -8px rgba(66, 68, 90, 1);
  181. display: flex;
  182. flex-direction: column;
  183. align-items: center;
  184. }
  185. .good-cart > * {
  186. margin: 6px;
  187. }
  188. .good-cart > a {
  189. text-decoration: none;
  190. text-align: center;
  191. color: rgba(66, 68, 90, 1);
  192. font-weight: 300;
  193. line-height: 20px;
  194. height: 40px;
  195. }
  196. .price {
  197. font-size: 18px;
  198. font-weight: 500;
  199. color: rgb(15, 29, 67);
  200. }
  201. .button {
  202. border: none;
  203. color: #fff;
  204. background-color: rgb(22, 29, 168);
  205. padding: 8px 10px;
  206. border-radius: 6px;
  207. max-width: 140px;
  208. width: 100%;
  209. font-size: 16px;
  210. }
  211. .button:hover {
  212. color: rgb(233, 233, 73);
  213. }
  214. .title {
  215. font-size: 32px;
  216. text-align: center;
  217. font-weight: 300;
  218. margin: 20px 0;
  219. }
  220. .goods-out-stock,
  221. .cart-is-empty {
  222. font-size: 24px;
  223. text-align: center;
  224. font-weight: 300;
  225. margin: 20px 0;
  226. }
  227. .good-section {
  228. display: flex;
  229. margin: 20px 0;
  230. }
  231. .good-section > * {
  232. width: 50%;
  233. }
  234. .good-section .image-container {
  235. width: 100%;
  236. max-height: 400px;
  237. height: 100%;
  238. }
  239. .good-info {
  240. padding: 20px;
  241. display: flex;
  242. flex-direction: column;
  243. align-items: center;
  244. }
  245. .good-info input {
  246. margin: 20px 0;
  247. }
  248. .good-info .buttons-container {
  249. text-align: center;
  250. }
  251. .good-info .buttons-container :first-child {
  252. margin-bottom: 20px;
  253. }
  254. .description {
  255. font-weight: 300;
  256. margin-bottom: 20px;
  257. }
  258. .order-container {
  259. border-radius: 10px;
  260. box-shadow: 0px 0px 23px -8px rgb(155, 157, 176);
  261. padding: 20px;
  262. margin: 20px 0;
  263. font-weight: 300;
  264. }
  265. .order-container > * {
  266. margin: 3px 0;
  267. }
  268. .total-amount {
  269. text-align: end;
  270. }
  271. .order-button {
  272. margin-top: 20px;
  273. float: right;
  274. }
  275. .form {
  276. border: 1px solid gray;
  277. display: flex;
  278. flex-direction: column;
  279. align-items: center;
  280. border-radius: 10px;
  281. max-width: 300px;
  282. width: 100%;
  283. margin: 100px auto 0;
  284. padding: 20px;
  285. }
  286. .form > * {
  287. margin: 4px;
  288. }
  289. .warning-message {
  290. margin-top: 70px;
  291. display: none;
  292. font-style: italic;
  293. }