sidebars.css 13 KB

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