sidebars.css 17 KB

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