sidebars.css 17 KB

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