sidebars.css 12 KB

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