components.css 9.5 KB

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