style.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. :root {
  2. box-sizing: border-box;
  3. font-size: 16px;
  4. line-height: 20px;
  5. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  6. }
  7. body {
  8. background-color: #fff;
  9. }
  10. .container {
  11. max-width: 1200px;
  12. padding: 0 15px;
  13. margin: 0 auto;
  14. }
  15. #user {
  16. display: flex;
  17. justify-content: flex-end;
  18. align-items: center;
  19. }
  20. header {
  21. display: flex;
  22. align-items: center;
  23. justify-content: space-between;
  24. }
  25. header a {
  26. color: #000;
  27. text-decoration: none;
  28. }
  29. #userBox {
  30. width: 50%;
  31. height: 50%;
  32. padding: 20px 15px;
  33. border-radius: 15px;
  34. z-index: 5;
  35. position: absolute;
  36. top: 50%;
  37. left: 50%;
  38. transform: translate(-50%, -50%);
  39. background-color: #fff;
  40. display: flex;
  41. flex-wrap: wrap;
  42. align-content: flex-start;
  43. justify-content: center;
  44. }
  45. #userBox input {
  46. width: 100%;
  47. margin-bottom: 10px;
  48. padding: 10px 5px;
  49. font-size: 1.5em;
  50. line-height: 1em;
  51. }
  52. button {
  53. cursor: pointer;
  54. padding: 10px 5px;
  55. }
  56. #overlay {
  57. background-color: rgba(0, 0, 0, 0.3);
  58. position: absolute;
  59. left: 0;
  60. right: 0;
  61. top: 0;
  62. bottom: 0;
  63. display: none;
  64. }
  65. #userBox .close {
  66. position: absolute;
  67. top: 10px;
  68. right: 10px;
  69. background-color: #ececec;
  70. text-decoration: none;
  71. text-align: center;
  72. border: none;
  73. border-radius: 50%;
  74. padding: 0;
  75. margin: 0;
  76. width: 25px;
  77. height: 25px;
  78. }
  79. ul {
  80. list-style: none;
  81. padding: 0;
  82. margin: 0;
  83. }
  84. .menuBtn {
  85. background-color: transparent;
  86. border: none;
  87. font-weight: 700;
  88. margin: 0;
  89. padding: 0;
  90. border-bottom: 1px solid #000;
  91. margin-bottom: 10px;
  92. transition: all 0.3s;
  93. }
  94. .menuBtn:hover {
  95. color: red;
  96. }
  97. .products {
  98. display: flex;
  99. justify-content: space-between;
  100. }
  101. .itemBox {
  102. display: flex;
  103. justify-content: space-between;
  104. width: 75%;
  105. }
  106. #aside {
  107. background-color: rgb(95, 137, 243);
  108. }
  109. .catalog__link {
  110. background-color: rgb(14, 0, 63);
  111. }
  112. #aside a,
  113. .catalog__link {
  114. color: #fff;
  115. font-size: 1.4em;
  116. text-decoration: none;
  117. display: block;
  118. padding: 15px 5px;
  119. transition: all 0.3s;
  120. border-bottom: 1px solid transparent;
  121. }
  122. #aside a:hover,
  123. .catalog__link:hover {
  124. background-color: rgb(252, 0, 0);
  125. border-bottom: 1px solid #000;
  126. }
  127. .user__link {
  128. text-decoration: none;
  129. font-size: 1.2em;
  130. display: inline-block;
  131. color: #000;
  132. padding: 2px 5px;
  133. margin: 0 10px;
  134. }
  135. .user__box {
  136. display: flex;
  137. justify-content: flex-end;
  138. padding: 10px 0;
  139. }
  140. .user__box h3 {
  141. font-size: 1.4em;
  142. margin: 0;
  143. padding: 10px 20px;
  144. }
  145. #logOut button {
  146. background-color: #ececec;
  147. border: none;
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. transition: all 0.3s;
  152. border-radius: 5px;
  153. }
  154. #logOut button:hover {
  155. box-shadow: 0px 0px 5px rgb(230, 105, 105) inset;
  156. }
  157. #main h1 {
  158. font-size: 2em;
  159. line-height: 1em;
  160. margin: 0;
  161. padding: 10px 0;
  162. }
  163. .sub-catigories {
  164. display: flex;
  165. justify-content: space-around;
  166. align-items: center;
  167. background-color: rgb(92, 110, 131);
  168. }
  169. .sub-catigories a {
  170. text-decoration: none;
  171. padding: 5px;
  172. color: #fff;
  173. font-size: 1em;
  174. transition: all 0.3s;
  175. }
  176. .sub-catigories a:hover {
  177. background-color: rgb(61, 31, 92);
  178. }
  179. .product {
  180. padding: 10px 5px;
  181. }
  182. .product button,
  183. .productBtn {
  184. width: 85px;
  185. height: 45px;
  186. background-color: #ececec;
  187. border: none;
  188. display: flex;
  189. align-items: center;
  190. justify-content: center;
  191. transition: all 0.3s;
  192. border-radius: 5px;
  193. }
  194. .product button:hover,
  195. .productBtn:hover {
  196. box-shadow: 0px 0px 5px rgb(230, 105, 105) inset;
  197. }
  198. .product-title__link,
  199. .product-one_title,
  200. .product-one__inner a {
  201. display: inline-block;
  202. text-decoration: none;
  203. font-size: 1.6em;
  204. line-height: 1.2em;
  205. margin: 0;
  206. padding: 5px;
  207. color: rgb(20, 80, 0);
  208. transition: all 0.3s;
  209. border-bottom: 1px solid transparent;
  210. margin-bottom: 5px;
  211. }
  212. .product-title__link:hover,
  213. .product-one__inner a:hover {
  214. color: rgb(128, 0, 0);
  215. border-bottom: 1px solid rgb(128, 0, 0);
  216. }
  217. .product__inner {
  218. display: flex;
  219. align-items: flex-start;
  220. margin-bottom: 10px;
  221. margin-right: 25px;
  222. }
  223. .product__inner img {
  224. width: 25vw;
  225. margin-right: 15px;
  226. }
  227. .order {
  228. position: relative;
  229. margin-right: 25px;
  230. display: block;
  231. margin-left: 25px;
  232. }
  233. .order-count {
  234. display: flex;
  235. align-items: center;
  236. justify-content: center;
  237. position: absolute;
  238. top: 0;
  239. right: 0;
  240. border-radius: 50%;
  241. background-color: #ececce;
  242. font-size: 0.9em;
  243. width: 25px;
  244. height: 25px;
  245. }
  246. .order-box {
  247. display: flex;
  248. width: 150px;
  249. justify-content: flex-end;
  250. }
  251. .product-one__img {
  252. padding: 25px 0 10px;
  253. width: 100%;
  254. }
  255. .product-one__img img {
  256. margin: 0 auto;
  257. display: block;
  258. max-height: 350px;
  259. }
  260. .product-one__price {
  261. margin: 0;
  262. padding: 0;
  263. }
  264. .clean-order {
  265. display: block;
  266. margin-left: auto;
  267. margin-top: 15px;
  268. margin-bottom: 10px;
  269. background-color: transparent;
  270. border: none;
  271. font-size: 1.3em;
  272. border-bottom: 1px solid transparent;
  273. padding: 5px 10px;
  274. transition: all 0.3s;
  275. }
  276. .clean-order:hover {
  277. border-bottom: 1px solid #000;
  278. }
  279. .product-order__inner {
  280. display: flex;
  281. justify-content: space-between;
  282. align-items: center;
  283. margin-bottom: 25px;
  284. }
  285. .product-order__inner img {
  286. max-width: 75px;
  287. width: 10vw;
  288. margin-right: 2vw;
  289. }
  290. .product-order__inner a {
  291. font-size: 1em;
  292. margin-right: 2vw;
  293. margin-bottom: 0;
  294. max-width: 250px;
  295. width: 20vw;
  296. }
  297. .product-order__inner input {
  298. font-size: 1.2em;
  299. padding: 2px 5px;
  300. max-width: 50px;
  301. text-align: center;
  302. margin-right: 2vw;
  303. }
  304. .product-order__inner span {
  305. margin-right: 2vw;
  306. }
  307. .product-order__inner button {
  308. width: 25px;
  309. height: 25px;
  310. padding: 0;
  311. margin: 0;
  312. border: none;
  313. display: flex;
  314. align-items: center;
  315. justify-content: center;
  316. font-weight: 500;
  317. font-size: 1.2em;
  318. background-color: #ff0000;
  319. border-radius: 3px;
  320. }
  321. .order-sent__btn {
  322. padding: 10px 35px;
  323. display: block;
  324. margin-left: auto;
  325. border: none;
  326. border-radius: 5px;
  327. background-color: #c4e438;
  328. transition: all 0.3s;
  329. }
  330. .order-sent__btn:hover {
  331. background-color: rgb(255, 129, 33);
  332. }
  333. #preLoader {
  334. position: fixed;
  335. top: 50%;
  336. transform: translateY(-50%);
  337. left: 0;
  338. opacity: 0.8;
  339. }