components.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. /* Menu */
  2. .menu{
  3. display: flex;
  4. flex-direction: column;
  5. align-items: center;
  6. background: rgb(0, 27, 45);
  7. width: 18vw;
  8. height: 100vh;
  9. transition: width 0.3s;
  10. flex-grow: 0;
  11. flex-shrink: 0;
  12. }
  13. .menuHead{
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. width: 100%;
  18. padding: 0 20px;
  19. margin-top: 10px;
  20. font-size: 22px;
  21. font-weight: bold;
  22. margin-bottom: 100px;
  23. text-decoration: none;
  24. }
  25. .menuLogo{
  26. width: 25%;
  27. height: 25%;
  28. }
  29. .menuHead a{
  30. display: flex;
  31. align-items: center;
  32. color: white;
  33. text-decoration: none;
  34. width: 80%;
  35. }
  36. .menuHead p{
  37. margin-left: 25px;
  38. }
  39. .menuHead button{
  40. background: none;
  41. border-style: none;
  42. color: white;
  43. font-size: 35px;
  44. cursor: pointer;
  45. outline: none;
  46. }
  47. .menuHead button:hover{
  48. color: rgb(201, 201, 201);
  49. }
  50. .menuHead > button::-moz-focus-inner{
  51. border: 0;
  52. }
  53. .menu > button svg{
  54. stroke: white;
  55. margin-right: 25px;
  56. }
  57. .menu > button{
  58. display: flex;
  59. align-items: center;
  60. background: none;
  61. border-style: none;
  62. color: white;
  63. font-size: 20px;
  64. margin: 15px 0;
  65. padding-left: 50px;
  66. width: 100%;
  67. height: 75px;
  68. cursor: pointer;
  69. text-align: left;
  70. border: 0;
  71. }
  72. .menu > button::-moz-focus-inner{
  73. border: 0;
  74. }
  75. .menu > button:hover{
  76. background: rgb(201, 201, 201);
  77. color: black;
  78. fill: black;
  79. }
  80. .menu > button:hover svg{
  81. stroke: black;
  82. }
  83. .menu > .active{
  84. background: rgb(179, 191, 209);
  85. cursor: default;
  86. }
  87. .menu > .active:hover{
  88. background: rgb(179, 191, 209);
  89. color: white;
  90. }
  91. .menu > .active:hover svg{
  92. stroke: white;
  93. }
  94. .logout{
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. position: absolute;
  99. bottom: 25px;
  100. color: white;
  101. text-decoration: none;
  102. font-size: 20px;
  103. border-radius: 5px;
  104. padding: 10px;
  105. }
  106. .logout img{
  107. height: 25px;
  108. width: 25px;
  109. }
  110. .logout > *{
  111. margin: 10px;
  112. }
  113. .logout:hover{
  114. background: rgb(179, 191, 209);
  115. color: black;
  116. }
  117. /* Minimized menu */
  118. .menuMinimized{
  119. width: 5vw;
  120. }
  121. .menuLogoMin{
  122. width: 4vw;
  123. }
  124. .menuHeadMin{
  125. display: none;
  126. flex-direction: column;
  127. }
  128. .menuMinimized button{
  129. justify-content: center;
  130. padding: 0;
  131. }
  132. .menuMinimized button svg{
  133. margin: 0;
  134. }
  135. .sidebar{
  136. display: flex;
  137. width: 25vw;
  138. height: 100vh;
  139. box-sizing: border-box;
  140. padding: 25px;
  141. transition: width 0.2s;
  142. overflow: hidden;
  143. box-shadow: -1px 0px 10px gray;
  144. }
  145. .sidebarHide{
  146. width: 0;
  147. transition: width 0.2s;
  148. margin: 0;
  149. padding: 0;
  150. overflow: hidden;
  151. box-shadow: -1px 0px 10px gray;
  152. }
  153. .sidebarHide > *{
  154. width: 0;
  155. transition: width 0.2s;
  156. visibility: hidden;
  157. }
  158. .sidebarIconButtons{
  159. display: flex;
  160. justify-content: space-between;
  161. width: 100%;
  162. margin-bottom: 50px;
  163. }
  164. .iconButton{
  165. display: flex;
  166. align-items: center;
  167. background: none;
  168. border: none;
  169. cursor: pointer;
  170. padding: 3px;
  171. border-radius: 5px;
  172. }
  173. .iconButton:hover{
  174. background: rgb(0, 27, 45);
  175. color: white;
  176. }
  177. .lineBorder{
  178. width: 100%;
  179. border-bottom: 1px solid gray;
  180. margin: 25px;
  181. }
  182. /* Add Ingredients */
  183. #addIngredients{
  184. flex-direction: column;
  185. width: 100%;
  186. }
  187. #addIngredientList{
  188. overflow-y: auto;
  189. margin-bottom: 15px;
  190. }
  191. .addIngredient{
  192. display: flex;
  193. justify-content: space-between;
  194. padding: 10px;
  195. background: rgb(240, 252, 255);
  196. border: 1px solid black;
  197. border-radius: 5px;
  198. }
  199. #ingredientDetails{
  200. flex-direction: column;
  201. align-items: center;
  202. width: 100%;
  203. }
  204. #ingredientDetails > p{
  205. border-radius: 10px;
  206. background: gray;
  207. color: white;
  208. padding: 0 3px;
  209. font-size: 14px;
  210. }
  211. #ingredientDetails label{
  212. font-size: 20px;
  213. text-align: center;
  214. }
  215. #ingredientDetails label p{
  216. font-size: 30px;
  217. font-weight: bold;
  218. padding: 10px;
  219. }
  220. .addIngredientsCategory{
  221. width: 90%;
  222. }
  223. .categoryHeader{
  224. display: flex;
  225. justify-content: space-between;
  226. align-items: center;
  227. width: 100%;
  228. border: 1px solid black;
  229. background: rgb(240, 252, 255);
  230. border-radius: 5px;
  231. padding: 5px;
  232. }
  233. .categoryHeader > button{
  234. display: flex;
  235. align-items: center;
  236. background: none;
  237. border: none;
  238. padding: 5px;
  239. border-radius: 5px;
  240. cursor: pointer;
  241. }
  242. .categoryHeader > button:hover{
  243. background: rgb(0, 27, 45);
  244. color: white;
  245. }
  246. .addIngredientsIngredients{
  247. flex-direction: column;
  248. padding: 0 20px;
  249. }
  250. .addIngredientsIngredient{
  251. display: flex;
  252. justify-content: left;
  253. align-items: center;
  254. margin: 5px;
  255. }
  256. .addIngredientsIngredient input[type=number]{
  257. width: 100px;
  258. margin-left: auto;
  259. }
  260. .buttonBox{
  261. display: flex;
  262. justify-content: space-between;
  263. }
  264. /* Recipe Details */
  265. #recipeDetails{
  266. flex-direction: column;
  267. align-items: center;
  268. width: 100%;
  269. }
  270. #recipeIngredientList{
  271. width: 100%;
  272. }
  273. .recipeIngredient{
  274. display: flex;
  275. justify-content: space-between;
  276. margin: 25px;
  277. }
  278. #recipePrice{
  279. display: flex;
  280. flex-direction: column;
  281. align-items: center;
  282. }
  283. #recipePrice p{
  284. font-size: 25px;
  285. font-weight: bold;
  286. }
  287. #addRecipe{
  288. display: flex;
  289. flex-direction: column;
  290. align-items: center;
  291. width: 100%;
  292. padding-bottom: 50px;
  293. }
  294. #addRecipe label{
  295. display: flex;
  296. justify-content: space-between;
  297. margin: 15px 0;
  298. }
  299. #addRecipe input{
  300. width: 50%;
  301. }
  302. #addRecipe h2{
  303. margin-top: 10px;
  304. }
  305. .recipeBasicInfo{
  306. width: 75%;
  307. background: rgb(240, 252, 255);
  308. padding: 15px;
  309. border-radius: 5px;
  310. border: 1px solid black;
  311. }
  312. #recipeInputIngredients{
  313. display: flex;
  314. flex-direction: column;
  315. align-items: center;
  316. box-sizing: border-box;
  317. margin: 0 0 25px 0;
  318. width:75%;
  319. overflow-y: auto;
  320. overflow-x: hidden;
  321. box-shadow: 0 0 2px gray;
  322. border-radius: 5px;
  323. }
  324. #recipeInputIngredients div{
  325. width: 75%;
  326. background: rgb(240, 252, 255);
  327. border: 1px solid black;
  328. padding: 10px;
  329. border-radius: 5px;
  330. margin: 10px 0;
  331. padding: 10px 15px;
  332. text-align: center;
  333. }
  334. #recipeInputIngredients div h4{
  335. color: rgb(255, 99, 107);
  336. }
  337. #addRecipe button:last-of-type{
  338. margin-top: auto;
  339. }
  340. #recipeUpdate{
  341. margin: 25px 0 0 0;
  342. }
  343. /* New Order */
  344. #newOrder{
  345. display: flex;
  346. flex-direction: column;
  347. align-items: center;
  348. width: 100%;
  349. }
  350. #newOrderCategories{
  351. display: flex;
  352. flex-direction: column;
  353. align-items: center;
  354. width: 100%;
  355. margin-bottom: 25px;
  356. overflow: auto;
  357. }
  358. /* New Ingredient */
  359. #newIngredient{
  360. display: flex;
  361. flex-direction: column;
  362. align-items: center;
  363. width: 100%;
  364. }
  365. #newIngredient label{
  366. display: flex;
  367. justify-content: space-between;
  368. align-items: center;
  369. width: 100%;
  370. background: rgb(240, 252, 255);
  371. border-radius: 5px;
  372. border: 1px solid black;
  373. padding: 10px;
  374. }
  375. #newIngredient .button{
  376. margin: 15px 0 0 auto;
  377. }
  378. /* Order Details */
  379. #orderDetails{
  380. display: flex;
  381. flex-direction: column;
  382. align-items: center;
  383. width: 100%;
  384. }
  385. #orderIngredients{
  386. width: 90%;
  387. overflow: auto;
  388. }
  389. .orderIngredient{
  390. display: flex;
  391. justify-content: space-between;
  392. width: 100%;
  393. box-sizing: border-box;
  394. background: rgb(240, 252, 255);
  395. border: 1px solid black;
  396. border-radius: 5px;
  397. padding: 10px;
  398. margin: 5px 0;
  399. }
  400. #orderTotalPrice{
  401. display: flex;
  402. flex-direction: column;
  403. align-items: center;
  404. }
  405. #orderTotalPrice{
  406. font-size: 25px;
  407. font-weight: bold;
  408. }
  409. /* Ingredient Details */
  410. #ingredientRecipeList{
  411. list-style: none;
  412. overflow: auto;
  413. }
  414. #ingredientRecipeList > li{
  415. font-size: 25px;
  416. font-weight: bold;
  417. padding: 10px;
  418. border-radius: 5px;
  419. cursor: pointer;
  420. }
  421. #ingredientRecipeList > li:hover{
  422. background: rgb(0, 27, 45);
  423. color: white;
  424. }