components.css 10 KB

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