sidebars.css 17 KB

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