components.css 9.7 KB

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