sidebars.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  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. display: flex;
  195. flex-direction: column;
  196. align-items: center;
  197. font-size: 20px;
  198. text-align: center;
  199. margin: 0;
  200. }
  201. #ingredientDetails label p{
  202. font-size: 30px;
  203. font-weight: bold;
  204. padding: 10px;
  205. }
  206. .ingredientButtons{
  207. display: flex;
  208. justify-content: space-around;
  209. padding: 10px;
  210. }
  211. .unitButton{
  212. margin: 5px;
  213. padding: 3px;
  214. background: none;
  215. border: 1px solid black;
  216. font-size: 15px;
  217. font-weight: bold;
  218. cursor: pointer;
  219. border-radius: 5px;
  220. }
  221. .unitButton:hover{
  222. background: rgb(0, 27, 45);
  223. color: white;
  224. }
  225. .unitActive{
  226. background: rgb(255, 99, 107);
  227. }
  228. #defaultUnit{
  229. padding: 5px;
  230. font-size: 15px;
  231. }
  232. #ingredientRecipeList{
  233. display: flex;
  234. flex-direction: column;
  235. align-items: center;
  236. text-align: center;
  237. list-style: none;
  238. overflow: auto;
  239. max-height: 150px;
  240. width: 100%;
  241. margin-left: auto;
  242. }
  243. #ingredientRecipeList > *{
  244. width: 75%;
  245. }
  246. /*
  247. EDIT INGREDIENT
  248. */
  249. #editIngredient{
  250. flex-direction: column;
  251. align-items: center;
  252. width: 100%;
  253. }
  254. #editIngredient label{
  255. display: flex;
  256. flex-direction: column;
  257. align-items: center;
  258. }
  259. .unitbuttons{
  260. width: 100%;
  261. display: flex;
  262. justify-content: space-around;
  263. }
  264. /*
  265. Recipe Details
  266. */
  267. #recipeDetails{
  268. flex-direction: column;
  269. align-items: center;
  270. width: 100%;
  271. }
  272. #recipeNameIn{
  273. font-size: 32px;
  274. width: 75%;
  275. text-align: center;
  276. }
  277. #recipeIngredientList{
  278. width: 100%;
  279. }
  280. #recipePrice{
  281. display: flex;
  282. flex-direction: column;
  283. align-items: center;
  284. }
  285. #recipePrice p{
  286. font-size: 25px;
  287. font-weight: bold;
  288. }
  289. #recipeUpdate{
  290. margin: 25px 0 0 0;
  291. }
  292. .recipeIngredient{
  293. display: flex;
  294. justify-content: space-between;
  295. align-items: center;
  296. margin: 25px;
  297. text-align: center;
  298. }
  299. .recipeIngredient > *:first-of-type{
  300. text-align: left;
  301. }
  302. .recipeIngredientElement{
  303. width: 30%;
  304. }
  305. .addRecIngredient{
  306. display: flex;
  307. justify-content: center;
  308. margin-right: 3px;
  309. }
  310. .addRecIngredient input{
  311. max-width: 25%;
  312. margin-left: 3px;
  313. }
  314. /*
  315. Add Recipe
  316. */
  317. #addRecipe{
  318. display: flex;
  319. flex-direction: column;
  320. align-items: center;
  321. width: 100%;
  322. padding-bottom: 50px;
  323. }
  324. .recipeBasicInfo{
  325. width: 75%;
  326. background: rgb(240, 252, 255);
  327. padding: 15px;
  328. border-radius: 5px;
  329. border: 1px solid black;
  330. }
  331. .recipeBasicInfo label{
  332. display: flex;
  333. justify-content: space-between;
  334. margin: 15px 0;
  335. }
  336. .recipeBasicInfo input{
  337. width: 50%;
  338. }
  339. #addRecipe h2{
  340. margin-top: 10px;
  341. }
  342. #recipeInputIngredients{
  343. display: flex;
  344. flex-direction: column;
  345. align-items: center;
  346. box-sizing: border-box;
  347. margin: 0 0 25px 0;
  348. width:100%;
  349. overflow-y: auto;
  350. overflow-x: hidden;
  351. box-shadow: 0 0 2px gray;
  352. border-radius: 5px;
  353. }
  354. #recipeInputIngredients div{
  355. width: 75%;
  356. background: rgb(240, 252, 255);
  357. border: 1px solid black;
  358. padding: 10px;
  359. border-radius: 5px;
  360. margin: 10px 0;
  361. padding: 10px 15px;
  362. text-align: center;
  363. }
  364. #recipeInputIngredients div > label{
  365. display: flex;
  366. justify-content: space-between;
  367. margin-bottom: 2px;
  368. }
  369. #recipeInputIngredients input{
  370. width: 100px;
  371. }
  372. #recipeInputIngredients div h4{
  373. color: rgb(255, 99, 107);
  374. }
  375. #addRecipe button:last-of-type{
  376. margin-top: auto;
  377. }
  378. /*
  379. EDIT RECIPE
  380. */
  381. #editRecipe{
  382. display: flex;
  383. flex-direction: column;
  384. align-items: center;
  385. width: 100%;
  386. }
  387. #editRecipeIngList{
  388. width: 100%;
  389. max-height: 75%;
  390. overflow-y: auto;
  391. }
  392. .editRecipeIng{
  393. background: rgb(0, 27, 45);
  394. color: white;
  395. width: 90%;
  396. border-radius: 5px;
  397. text-align: center;
  398. padding: 5px;
  399. margin: 5px auto;
  400. position: relative;
  401. }
  402. .editRecipeIng button{
  403. color: white;
  404. position: absolute;
  405. right: 5px;
  406. }
  407. /* New Order */
  408. #newOrderIngredientList{
  409. display: flex;
  410. flex-direction: column;
  411. align-items: center;
  412. width: 40%;
  413. }
  414. .newOrderLabels{
  415. display: flex;
  416. flex-direction: column;
  417. width: 100%;
  418. margin-bottom: 25px;
  419. }
  420. .newOrderLabels label{
  421. display: flex;
  422. justify-content: space-between;
  423. align-items: center;
  424. font-size: 15px;
  425. }
  426. .newOrderLabels input{
  427. width: 50%;
  428. }
  429. #newOrderIngredients{
  430. display: flex;
  431. flex-direction: column;
  432. width: 90%;
  433. overflow-y: auto;
  434. }
  435. .newOrderIngredient{
  436. background: rgb(0, 27, 45);
  437. color: white;
  438. font-size: 17px;
  439. font-weight: bold;
  440. border: none;
  441. border-radius: 5px;
  442. padding: 5px;
  443. margin: 1px 0;
  444. cursor: pointer;
  445. }
  446. .newOrderIngredient:hover{
  447. background: rgb(201, 201, 201);
  448. color: black;
  449. }
  450. #newOrder{
  451. display: flex;
  452. flex-direction: column;
  453. align-items: center;
  454. width: 60%;
  455. border-left: 1px solid black;
  456. padding-left: 25px;
  457. }
  458. #newOrder > label{
  459. margin: 5px;
  460. }
  461. #selectedIngredientList{
  462. display: flex;
  463. flex-direction: column;
  464. align-items: center;
  465. height: 75%;
  466. overflow-y: auto;
  467. margin-bottom: 10px;
  468. }
  469. .selectedIngredient{
  470. display: flex;
  471. flex-direction: column;
  472. background: rgb(0, 27, 45);
  473. color: white;
  474. border-radius: 5px;
  475. margin: 5px 0;
  476. width: 95%;
  477. }
  478. .selectedIngredient > div{
  479. margin: 3px;
  480. display: flex;
  481. justify-content: space-between;
  482. align-items: center
  483. }
  484. .selectedIngredient p{
  485. font-weight: bold;
  486. font-size: 17px;
  487. }
  488. .newOrderRemove{
  489. background: rgb(0, 27, 45);
  490. border: 1px solid white;
  491. color: white;
  492. border-radius: 5px;
  493. font-size: 13px;
  494. font-weight: bold;
  495. padding: 5px;
  496. cursor: pointer;
  497. }
  498. .newOrderRemove:hover{
  499. background: rgb(201, 201, 201);
  500. color: black;
  501. }
  502. .selectedIngredient input{
  503. width: 45%;
  504. }
  505. /* New Ingredient */
  506. #newIngredient{
  507. display: flex;
  508. flex-direction: column;
  509. align-items: center;
  510. width: 100%;
  511. }
  512. #newIngredient label{
  513. display: flex;
  514. justify-content: space-between;
  515. align-items: center;
  516. width: 100%;
  517. background: rgb(240, 252, 255);
  518. border-radius: 5px;
  519. border: 1px solid black;
  520. padding: 10px;
  521. }
  522. #newIngredient .button{
  523. margin: 15px 0 0 auto;
  524. }
  525. /* Order Details */
  526. #orderDetails{
  527. display: flex;
  528. flex-direction: column;
  529. align-items: center;
  530. width: 100%;
  531. }
  532. .orderDiv{
  533. width: 50%;
  534. }
  535. .subOrderDiv{
  536. display: flex;
  537. justify-content: space-between;
  538. }
  539. #orderIngredients{
  540. width: 90%;
  541. overflow: auto;
  542. }
  543. #orderTotalPrice{
  544. display: flex;
  545. flex-direction: column;
  546. align-items: center;
  547. font-size: 25px;
  548. font-weight: bold;
  549. }
  550. /*
  551. ORDER FILTER
  552. */
  553. #orderFilter{
  554. display: flex;
  555. flex-direction: column;
  556. align-items: center;
  557. width: 100%;
  558. }
  559. .orderFilterDates{
  560. display: flex;
  561. flex-direction: column;
  562. width: 100%;
  563. }
  564. /*
  565. TRANSACTION DETAILS
  566. */
  567. .transactionDetails{
  568. display: flex;
  569. flex-direction: column;
  570. align-items: center;
  571. width: 100%;
  572. }
  573. .transactionRecipes{
  574. width: 100%;
  575. }
  576. .totals{
  577. font-size: 25px;
  578. font-weight: bold;
  579. }
  580. /*
  581. New Transaction
  582. */
  583. .newTransaction{
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. width: 100%;
  588. }
  589. .newTransactionRecipes{
  590. width: 100%;
  591. height: 90%;
  592. overflow-y: auto;
  593. }
  594. @media screen and (max-width: 1400px){
  595. .sidebar{
  596. width: 30vw;
  597. }
  598. }
  599. @media screen and (max-width: 1000px){
  600. .sidebar{
  601. width: 100vw;
  602. }
  603. .sidebarIconButtons > .iconButton{
  604. display: none;
  605. }
  606. .menu{
  607. display: none;
  608. width: 100vw;
  609. height: 100vh;
  610. }
  611. .menuHead{
  612. padding: 0;
  613. margin-bottom: 15px;
  614. }
  615. .menuHead a{
  616. display: flex;
  617. justify-content: right;
  618. width: 70%;
  619. }
  620. .menuShifter{
  621. display: none;
  622. }
  623. .mobileMenuSelector{
  624. display: block;
  625. z-index: 20;
  626. }
  627. #orderIngredients{
  628. width: 100%;
  629. }
  630. .orderIngredient{
  631. color: black;
  632. }
  633. #ingredientRecipeList li{
  634. color: black;
  635. }
  636. }