sidebars.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  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: 18px;
  63. margin: 15px 0;
  64. padding-left: 15px;
  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. margin-right: 25px;
  76. }
  77. .menuButton::-moz-focus-inner{
  78. border: 0;
  79. }
  80. .menuButton:hover{
  81. background: rgb(201, 201, 201);
  82. color: black;
  83. fill: black;
  84. }
  85. .menuButton:hover svg{
  86. stroke: black;
  87. }
  88. .menu > .active{
  89. background: rgb(179, 191, 209);
  90. cursor: default;
  91. }
  92. .menu > .active:hover{
  93. background: rgb(179, 191, 209);
  94. color: white;
  95. }
  96. .menu > .active:hover svg{
  97. stroke: white;
  98. }
  99. /* Minimized menu */
  100. .menuMinimized{
  101. width: 5vw;
  102. }
  103. .menuLogoMin{
  104. width: 4vw;
  105. }
  106. .menuHeadMin{
  107. display: none;
  108. flex-direction: column;
  109. }
  110. .menuMinimized .menuButton{
  111. justify-content: center;
  112. padding: 0;
  113. }
  114. .menuMinimized .menuButton svg{
  115. margin: 0;
  116. }
  117. .sidebar{
  118. display: flex;
  119. width: 25vw;
  120. height: 100vh;
  121. box-sizing: border-box;
  122. padding: 25px;
  123. transition: width 0.2s;
  124. overflow: hidden;
  125. box-shadow: -1px 0px 10px gray;
  126. }
  127. .sidebarWide{
  128. width: 40vw;
  129. }
  130. .sidebarHide{
  131. width: 0;
  132. transition: width 0.2s;
  133. margin: 0;
  134. padding: 0;
  135. overflow: hidden;
  136. box-shadow: -1px 0px 10px gray;
  137. }
  138. .sidebarHide > *{
  139. width: 0;
  140. transition: width 0.2s;
  141. visibility: hidden;
  142. }
  143. .sidebarIconButtons{
  144. display: flex;
  145. justify-content: space-between;
  146. width: 100%;
  147. margin-bottom: 10px;
  148. }
  149. .iconButton{
  150. display: flex;
  151. align-items: center;
  152. background: none;
  153. border: none;
  154. cursor: pointer;
  155. padding: 3px;
  156. border-radius: 5px;
  157. }
  158. .iconButton:hover{
  159. background: rgb(0, 27, 45);
  160. color: white;
  161. }
  162. .lineBorder{
  163. width: 100%;
  164. border-bottom: 1px solid gray;
  165. margin: 25px;
  166. }
  167. /*
  168. Ingredient Details
  169. */
  170. #ingredientDetails{
  171. flex-direction: column;
  172. align-items: center;
  173. width: 100%;
  174. }
  175. #ingredientDetails label{
  176. font-size: 20px;
  177. text-align: center;
  178. margin: 0;
  179. }
  180. #ingredientDetails label p{
  181. font-size: 30px;
  182. font-weight: bold;
  183. padding: 10px;
  184. }
  185. #ingredientRecipeList{
  186. display: flex;
  187. flex-direction: column;
  188. align-items: center;
  189. text-align: center;
  190. list-style: none;
  191. overflow: auto;
  192. max-height: 150px;
  193. width: 75%;
  194. }
  195. /*
  196. EDIT INGREDIENT
  197. */
  198. #editIngredient{
  199. flex-direction: column;
  200. align-items: center;
  201. width: 100%;
  202. }
  203. #editIngredient label{
  204. display: flex;
  205. flex-direction: column;
  206. align-items: center;
  207. }
  208. .unitbuttons{
  209. width: 100%;
  210. display: flex;
  211. justify-content: space-around;
  212. }
  213. .unitButton{
  214. margin: 5px;
  215. padding: 3px;
  216. background: none;
  217. border: 1px solid black;
  218. font-size: 15px;
  219. font-weight: bold;
  220. cursor: pointer;
  221. border-radius: 5px;
  222. }
  223. .unitButton:hover{
  224. background: rgb(0, 27, 45);
  225. color: white;
  226. }
  227. .unitActive{
  228. background: rgb(255, 99, 107);
  229. }
  230. /*
  231. Recipe Details
  232. */
  233. #recipeDetails{
  234. flex-direction: column;
  235. align-items: center;
  236. width: 100%;
  237. }
  238. #recipeIngredientList{
  239. width: 100%;
  240. }
  241. #recipePrice{
  242. display: flex;
  243. flex-direction: column;
  244. align-items: center;
  245. }
  246. #recipePrice p{
  247. font-size: 25px;
  248. font-weight: bold;
  249. }
  250. /*
  251. Add Recipe
  252. */
  253. #addRecipe{
  254. display: flex;
  255. flex-direction: column;
  256. align-items: center;
  257. width: 100%;
  258. padding-bottom: 50px;
  259. }
  260. .recipeBasicInfo{
  261. width: 75%;
  262. background: rgb(240, 252, 255);
  263. padding: 15px;
  264. border-radius: 5px;
  265. border: 1px solid black;
  266. }
  267. .recipeBasicInfo label{
  268. display: flex;
  269. justify-content: space-between;
  270. margin: 15px 0;
  271. }
  272. .recipeBasicInfo input{
  273. width: 50%;
  274. }
  275. #addRecipe h2{
  276. margin-top: 10px;
  277. }
  278. #recipeInputIngredients{
  279. display: flex;
  280. flex-direction: column;
  281. align-items: center;
  282. box-sizing: border-box;
  283. margin: 0 0 25px 0;
  284. width:100%;
  285. overflow-y: auto;
  286. overflow-x: hidden;
  287. box-shadow: 0 0 2px gray;
  288. border-radius: 5px;
  289. }
  290. #recipeInputIngredients div{
  291. width: 75%;
  292. background: rgb(240, 252, 255);
  293. border: 1px solid black;
  294. padding: 10px;
  295. border-radius: 5px;
  296. margin: 10px 0;
  297. padding: 10px 15px;
  298. text-align: center;
  299. }
  300. #recipeInputIngredients div > label{
  301. display: flex;
  302. justify-content: space-between;
  303. margin-bottom: 2px;
  304. }
  305. #recipeInputIngredients input{
  306. width: 100px;
  307. }
  308. #recipeInputIngredients div h4{
  309. color: rgb(255, 99, 107);
  310. }
  311. /*
  312. EDIT RECIPE
  313. */
  314. #editRecipe{
  315. display: flex;
  316. flex-direction: column;
  317. align-items: center;
  318. width: 100%;
  319. }
  320. #editRecipeIngList{
  321. width: 100%;
  322. max-height: 75%;
  323. overflow-y: auto;
  324. }
  325. .editRecipeIng{
  326. background: rgb(0, 27, 45);
  327. color: white;
  328. width: 90%;
  329. border-radius: 5px;
  330. text-align: center;
  331. padding: 5px;
  332. margin: 5px auto;
  333. position: relative;
  334. }
  335. .editRecipeIng button{
  336. color: white;
  337. position: absolute;
  338. right: 5px;
  339. }
  340. /* New Order */
  341. #newOrderIngredientList{
  342. display: flex;
  343. flex-direction: column;
  344. align-items: center;
  345. width: 40%;
  346. }
  347. .newOrderLabels{
  348. display: flex;
  349. flex-direction: column;
  350. width: 100%;
  351. margin-bottom: 25px;
  352. }
  353. .newOrderLabels label{
  354. display: flex;
  355. justify-content: space-between;
  356. align-items: center;
  357. font-size: 15px;
  358. }
  359. .newOrderLabels input{
  360. width: 50%;
  361. }
  362. #newOrderIngredients{
  363. display: flex;
  364. flex-direction: column;
  365. width: 90%;
  366. overflow-y: auto;
  367. }
  368. #newOrder{
  369. display: flex;
  370. flex-direction: column;
  371. align-items: center;
  372. width: 60%;
  373. border-left: 1px solid black;
  374. padding-left: 25px;
  375. }
  376. #newOrder > label{
  377. margin: 5px;
  378. }
  379. #selectedIngredientList{
  380. display: flex;
  381. flex-direction: column;
  382. align-items: center;
  383. height: 75%;
  384. overflow-y: auto;
  385. margin-bottom: 10px;
  386. }
  387. .selectedIngredient{
  388. display: flex;
  389. flex-direction: column;
  390. background: rgb(0, 27, 45);
  391. color: white;
  392. border-radius: 5px;
  393. margin: 5px 0;
  394. width: 95%;
  395. }
  396. .selectedIngredient > div{
  397. margin: 3px;
  398. display: flex;
  399. justify-content: space-between;
  400. align-items: center
  401. }
  402. .selectedIngredient p{
  403. font-weight: bold;
  404. font-size: 17px;
  405. }
  406. .newOrderRemove{
  407. background: rgb(0, 27, 45);
  408. border: 1px solid white;
  409. color: white;
  410. border-radius: 5px;
  411. font-size: 13px;
  412. font-weight: bold;
  413. padding: 5px;
  414. cursor: pointer;
  415. }
  416. .newOrderRemove:hover{
  417. background: rgb(201, 201, 201);
  418. color: black;
  419. }
  420. .selectedIngredient input{
  421. width: 45%;
  422. }
  423. /* New Ingredient */
  424. #newIngredient{
  425. display: flex;
  426. flex-direction: column;
  427. align-items: center;
  428. width: 100%;
  429. }
  430. #newIngredient label{
  431. display: flex;
  432. justify-content: space-between;
  433. align-items: center;
  434. width: 100%;
  435. background: rgb(240, 252, 255);
  436. border-radius: 5px;
  437. border: 1px solid black;
  438. padding: 10px;
  439. }
  440. #newIngredient .button{
  441. margin: 15px auto;
  442. }
  443. #newIngredient h2{
  444. text-align: center;
  445. margin-bottom: 25px;
  446. }
  447. /* Order Details */
  448. #orderDetails{
  449. display: flex;
  450. flex-direction: column;
  451. align-items: center;
  452. width: 100%;
  453. }
  454. .orderDiv{
  455. width: 50%;
  456. }
  457. .subOrderDiv{
  458. display: flex;
  459. justify-content: space-between;
  460. }
  461. #orderIngredients{
  462. width: 90%;
  463. overflow: auto;
  464. }
  465. #orderTotalPrice{
  466. display: flex;
  467. flex-direction: column;
  468. align-items: center;
  469. font-size: 25px;
  470. font-weight: bold;
  471. }
  472. /*
  473. ORDER FILTER
  474. */
  475. #orderFilter{
  476. display: flex;
  477. flex-direction: column;
  478. align-items: center;
  479. width: 100%;
  480. }
  481. .orderFilterDates{
  482. display: flex;
  483. flex-direction: column;
  484. width: 100%;
  485. }
  486. #orderFilterIngredients{
  487. width: 100%;
  488. max-height: 50%;
  489. overflow-y: auto;
  490. }
  491. /*
  492. ORDER CALCULATOR
  493. */
  494. #orderCalculator{
  495. display: flex;
  496. flex-direction: column;
  497. align-items: center;
  498. width: 100%;
  499. }
  500. #orderCalculator > *{
  501. margin: 15px 0;
  502. }
  503. /*
  504. TRANSACTION DETAILS
  505. */
  506. .transactionDetails{
  507. display: flex;
  508. flex-direction: column;
  509. align-items: center;
  510. width: 100%;
  511. }
  512. .transactionRecipes{
  513. width: 100%;
  514. }
  515. .totals{
  516. font-size: 25px;
  517. font-weight: bold;
  518. }
  519. /*
  520. TRANSACTION FILTER
  521. */
  522. .transactionFilter{
  523. display: flex;
  524. flex-direction: column;
  525. align-items: center;
  526. width: 100%;
  527. }
  528. #transFilterRecipeList{
  529. width: 100%;
  530. max-height: 50%;
  531. overflow-y: auto;
  532. }
  533. /*
  534. NEW TRANSACTION
  535. */
  536. .newTransaction{
  537. display: flex;
  538. flex-direction: column;
  539. align-items: center;
  540. width: 100%;
  541. }
  542. .newTransaction > h2{
  543. text-align: center;
  544. }
  545. .newTransactionRecipes{
  546. width: 100%;
  547. height: 90%;
  548. overflow-y: auto;
  549. }
  550. .newTransactionRecipe{
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. background: rgb(201, 201, 201);
  555. border-radius: 10px;
  556. margin: 10px 0;
  557. padding: 5px 0;
  558. }
  559. @media screen and (orientation: portrait){
  560. @media screen and (max-width: 1400px){
  561. .sidebar{
  562. width: 100vw;
  563. color: white;
  564. }
  565. .sidebarIconButtons{
  566. display: none;
  567. }
  568. /* MENU */
  569. #menu{
  570. display: none;
  571. width: 100vw;
  572. padding: 0;
  573. }
  574. .menuShifter{
  575. display: none;
  576. }
  577. .menuHead{
  578. justify-content: right;
  579. padding: 0;
  580. margin-bottom: 25px;
  581. }
  582. .menuHead a{
  583. justify-content: center;
  584. margin: auto;
  585. }
  586. .menuButton{
  587. padding-left: 0;
  588. justify-content: center;
  589. background: rgb(201, 201, 201);
  590. color: black;
  591. width: 90%;
  592. margin: 15px auto;
  593. border-radius: 5px;
  594. box-shadow: 0 0 5px white;
  595. }
  596. /* ORDER CALCULATOR */
  597. #orderCalcBtn{
  598. display: none;
  599. }
  600. }
  601. @media screen and (min-width: 601px){
  602. .menuHead a p{
  603. font-size: 40px;
  604. }
  605. }
  606. }
  607. @media screen and (orientation: landscape){
  608. @media screen and (max-width: 1200px){
  609. .sidebar{
  610. width: 100vw;
  611. color: white;
  612. padding: 3px 15px;
  613. }
  614. .sidebarIconButtons{
  615. display: none;
  616. }
  617. /* MENU */
  618. #menu{
  619. display: none;
  620. width: 100vw;
  621. height: 100vh;
  622. padding: 0;
  623. flex-wrap: wrap;
  624. flex-direction: row;
  625. justify-content: space-around;
  626. }
  627. .menuShifter{
  628. display: none;
  629. }
  630. .menuHead{
  631. justify-content: center;
  632. padding: 0;
  633. margin-bottom: 0;
  634. height: 50px;
  635. }
  636. .menuHead a{
  637. width: initial;
  638. justify-content: center;
  639. }
  640. .menuLogo{
  641. max-height: 50px;
  642. max-width: 50px;
  643. }
  644. .menuButton{
  645. width: 40%;
  646. justify-content: center;
  647. background: rgb(201, 201, 201);
  648. color: black;
  649. margin: 15px;
  650. padding-left: 0;
  651. border-radius: 5px;
  652. box-shadow: 0 0 5px white;
  653. height: 10vh;
  654. }
  655. /* ORDER CALCULATOR */
  656. #orderCalcBtn{
  657. display: none;
  658. }
  659. /* INGREDIENT DETAILS */
  660. #ingredientDetails > *{
  661. margin: 0;
  662. }
  663. #recipeListLabel, #ingredientRecipeList{
  664. display: none;
  665. }
  666. /* FILTER ORDERS */
  667. #orderFilter > *{
  668. margin: 0;
  669. }
  670. #orderFilter h1{
  671. padding: 0;
  672. }
  673. #filterOrderDateRange, #orderFilter .lineBorder{
  674. display: none;
  675. }
  676. .dateRange{
  677. padding-bottom: 3px;
  678. }
  679. #orderFilterSubmit{
  680. margin-top: 3px;
  681. }
  682. /* ORDER DETAILS */
  683. #orderIngredients{
  684. display: none;
  685. }
  686. /* TRANSACTION DETAILS */
  687. #transactionRecipesLabel, .transactionRecipes, #transactionDetails .lineBorder{
  688. display: none;
  689. }
  690. /* FILTER TRANSACTIONS */
  691. #transactionFilter > *{
  692. margin: 0;
  693. }
  694. #transactionFilterDateLabel{
  695. display: none;
  696. }
  697. #transactionFilter .dateRange{
  698. margin-bottom: 5px;
  699. }
  700. #transFilterSubmit{
  701. margin-top: 5px;
  702. }
  703. @media screen and (min-width: 1000px){
  704. .menuLogo{
  705. max-height: initial;
  706. max-width: 300px;
  707. }
  708. .menuHead a p{
  709. font-size: 35px;
  710. }
  711. #recipeListLabel, #ingredientRecipeList{
  712. display: flex;
  713. }
  714. /* ORDER FILTER */
  715. #orderFilterIngredients{
  716. max-height: 70%;
  717. }
  718. #orderFilterSubmit{
  719. margin-top: 15px;
  720. }
  721. /* ORDER DETAILS */
  722. #orderIngredients{
  723. display: flex;
  724. flex-direction: column;
  725. }
  726. /* TRANSACTION DETAILS */
  727. #transactionRecipesLabel, .transactionRecipes, #transactionDetails .lineBorder{
  728. display: flex;
  729. flex-direction: column;
  730. }
  731. /* TRANSACTION FILTER */
  732. #transFilterRecipeList{
  733. max-height: 70%;
  734. }
  735. }
  736. }
  737. }