components.css 11 KB

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