style.css 4.6 KB

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