components.css 10.0 KB

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