components.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  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: 10px;
  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. align-items: center;
  186. width: 100%;
  187. text-align: center;
  188. }
  189. #addIngredients > *{
  190. width: 100%;
  191. }
  192. #addIngredientList{
  193. display: flex;
  194. flex-direction: column;
  195. align-items: center;
  196. overflow-y: auto;
  197. margin-bottom: 15px;
  198. max-height: 35%;
  199. }
  200. #myIngredientsDiv{
  201. display: none;
  202. flex-direction: column;
  203. align-items: center;
  204. max-height: 40%;
  205. }
  206. #myIngredients{
  207. display: flex;
  208. flex-direction: column;
  209. width: 100%;
  210. overflow-y: auto;
  211. }
  212. #addIngredientsBtn{
  213. width: 25%;
  214. margin-left: auto;
  215. }
  216. .addIngredientsCategory{
  217. width: 90%;
  218. }
  219. .categoryHeader{
  220. display: flex;
  221. justify-content: space-between;
  222. align-items: center;
  223. width: 100%;
  224. border: 1px solid black;
  225. background: rgb(240, 252, 255);
  226. border-radius: 5px;
  227. padding: 5px;
  228. }
  229. .categoryHeader > button{
  230. display: flex;
  231. align-items: center;
  232. background: none;
  233. border: none;
  234. padding: 5px;
  235. border-radius: 5px;
  236. cursor: pointer;
  237. }
  238. .categoryHeader > button:hover{
  239. background: rgb(0, 27, 45);
  240. color: white;
  241. }
  242. .addIngredientsIngredients{
  243. flex-direction: column;
  244. padding: 0 20px;
  245. }
  246. .addIngredientsIngredient{
  247. display: flex;
  248. justify-content: left;
  249. align-items: center;
  250. margin: 5px;
  251. }
  252. .addIngredientsIngredient > *:nth-child(2){
  253. margin-left: auto;
  254. }
  255. .addIngredientsIngredient input[type=number]{
  256. width: 100px;
  257. }
  258. .addButton{
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. font-size: 25px;
  263. font-weight: bold;
  264. background: none;
  265. border: 1px solid black;
  266. border-radius: 5px;
  267. width: 30px;
  268. cursor: pointer;
  269. }
  270. .addButton:hover{
  271. background:rgb(0, 27, 45);
  272. color: white;
  273. }
  274. /* Ingredient Details */
  275. #ingredientDetails{
  276. flex-direction: column;
  277. align-items: center;
  278. width: 100%;
  279. }
  280. #ingredientDetails > p{
  281. border-radius: 10px;
  282. background: gray;
  283. color: white;
  284. padding: 0 3px;
  285. font-size: 14px;
  286. }
  287. #ingredientDetails label{
  288. font-size: 20px;
  289. text-align: center;
  290. }
  291. #ingredientDetails label p{
  292. font-size: 30px;
  293. font-weight: bold;
  294. padding: 10px;
  295. }
  296. /* Recipe Details */
  297. #recipeDetails{
  298. flex-direction: column;
  299. align-items: center;
  300. width: 100%;
  301. }
  302. #recipeNameIn{
  303. font-size: 32px;
  304. width: 75%;
  305. text-align: center;
  306. }
  307. #recipeIngredientList{
  308. width: 100%;
  309. }
  310. .recipeIngredient{
  311. display: flex;
  312. justify-content: space-between;
  313. align-items: center;
  314. margin: 25px;
  315. text-align: center;
  316. }
  317. .recipeIngredient > *:first-of-type{
  318. text-align: left;
  319. }
  320. .recipeIngredientElement{
  321. width: 30%;
  322. }
  323. .addRecIngredient{
  324. display: flex;
  325. justify-content: center;
  326. }
  327. .addRecIngredient{
  328. margin-right: 3px;
  329. }
  330. .addRecIngredient input{
  331. max-width: 25%;
  332. margin-left: 3px;
  333. }
  334. #recipePrice{
  335. display: flex;
  336. flex-direction: column;
  337. align-items: center;
  338. }
  339. #recipePrice p{
  340. font-size: 25px;
  341. font-weight: bold;
  342. }
  343. #addRecipe{
  344. display: flex;
  345. flex-direction: column;
  346. align-items: center;
  347. width: 100%;
  348. padding-bottom: 50px;
  349. }
  350. #addRecipe label{
  351. display: flex;
  352. justify-content: space-between;
  353. margin: 15px 0;
  354. }
  355. #addRecipe input{
  356. width: 50%;
  357. }
  358. #addRecipe h2{
  359. margin-top: 10px;
  360. }
  361. .recipeBasicInfo{
  362. width: 75%;
  363. background: rgb(240, 252, 255);
  364. padding: 15px;
  365. border-radius: 5px;
  366. border: 1px solid black;
  367. }
  368. #recipeInputIngredients{
  369. display: flex;
  370. flex-direction: column;
  371. align-items: center;
  372. box-sizing: border-box;
  373. margin: 0 0 25px 0;
  374. width:75%;
  375. overflow-y: auto;
  376. overflow-x: hidden;
  377. box-shadow: 0 0 2px gray;
  378. border-radius: 5px;
  379. }
  380. #recipeInputIngredients div{
  381. width: 75%;
  382. background: rgb(240, 252, 255);
  383. border: 1px solid black;
  384. padding: 10px;
  385. border-radius: 5px;
  386. margin: 10px 0;
  387. padding: 10px 15px;
  388. text-align: center;
  389. }
  390. #recipeInputIngredients div h4{
  391. color: rgb(255, 99, 107);
  392. }
  393. #addRecipe button:last-of-type{
  394. margin-top: auto;
  395. }
  396. #recipeUpdate{
  397. margin: 25px 0 0 0;
  398. }
  399. /* New Order */
  400. #newOrder{
  401. display: flex;
  402. flex-direction: column;
  403. align-items: center;
  404. width: 100%;
  405. }
  406. #newOrderCategories{
  407. display: flex;
  408. flex-direction: column;
  409. align-items: center;
  410. width: 100%;
  411. margin-bottom: 25px;
  412. max-height: 25%;
  413. overflow: auto;
  414. }
  415. #newOrderAdded{
  416. max-height: 25%;
  417. overflow: auto;
  418. }
  419. /* New Ingredient */
  420. #newIngredient{
  421. display: flex;
  422. flex-direction: column;
  423. align-items: center;
  424. width: 100%;
  425. }
  426. #newIngredient label{
  427. display: flex;
  428. justify-content: space-between;
  429. align-items: center;
  430. width: 100%;
  431. background: rgb(240, 252, 255);
  432. border-radius: 5px;
  433. border: 1px solid black;
  434. padding: 10px;
  435. }
  436. #newIngredient .button{
  437. margin: 15px 0 0 auto;
  438. }
  439. /* Order Details */
  440. #orderDetails{
  441. display: flex;
  442. flex-direction: column;
  443. align-items: center;
  444. width: 100%;
  445. }
  446. #orderIngredients{
  447. width: 90%;
  448. overflow: auto;
  449. }
  450. .orderIngredient{
  451. display: flex;
  452. justify-content: space-between;
  453. width: 100%;
  454. box-sizing: border-box;
  455. background: rgb(240, 252, 255);
  456. border: 1px solid black;
  457. border-radius: 5px;
  458. padding: 10px;
  459. margin: 5px 0;
  460. }
  461. #orderTotalPrice{
  462. display: flex;
  463. flex-direction: column;
  464. align-items: center;
  465. }
  466. #orderTotalPrice{
  467. font-size: 25px;
  468. font-weight: bold;
  469. }
  470. /* Ingredient Details */
  471. #ingredientRecipeList{
  472. list-style: none;
  473. overflow: auto;
  474. }
  475. #ingredientRecipeList > li{
  476. font-size: 25px;
  477. font-weight: bold;
  478. padding: 10px;
  479. border-radius: 5px;
  480. cursor: pointer;
  481. }
  482. #ingredientRecipeList > li:hover{
  483. background: rgb(0, 27, 45);
  484. color: white;
  485. }