sidebars.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  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. 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. display: flex;
  177. flex-direction: column;
  178. align-items: center;
  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. .scroller{
  504. max-height: 90%;
  505. overflow-y: auto;
  506. }
  507. .calculatorItems{
  508. width: 100%;
  509. }
  510. .calculatorItems thead tr th:nth-child(1){
  511. text-align: left;
  512. }
  513. .calculatorItems thead tr th:nth-child(2){
  514. text-align: right;
  515. }
  516. .calculatorItem:nth-child(odd){
  517. background: rgb(201, 201, 201);
  518. }
  519. .calcUsage{
  520. display: table-cell;
  521. vertical-align: middle;
  522. text-align: right;
  523. font-weight: bold;
  524. padding: 5px;
  525. }
  526. /*
  527. TRANSACTION DETAILS
  528. */
  529. .transactionDetails{
  530. display: flex;
  531. flex-direction: column;
  532. align-items: center;
  533. width: 100%;
  534. }
  535. .transactionRecipes{
  536. width: 100%;
  537. }
  538. .totals{
  539. font-size: 25px;
  540. font-weight: bold;
  541. }
  542. /*
  543. TRANSACTION FILTER
  544. */
  545. .transactionFilter{
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. width: 100%;
  550. }
  551. #transFilterRecipeList{
  552. width: 100%;
  553. max-height: 50%;
  554. overflow-y: auto;
  555. }
  556. /*
  557. NEW TRANSACTION
  558. */
  559. .newTransaction{
  560. display: flex;
  561. flex-direction: column;
  562. align-items: center;
  563. width: 100%;
  564. }
  565. .newTransaction > h2{
  566. text-align: center;
  567. }
  568. .newTransactionRecipes{
  569. width: 100%;
  570. height: 90%;
  571. overflow-y: auto;
  572. }
  573. .newTransactionRecipe{
  574. display: flex;
  575. flex-direction: column;
  576. align-items: center;
  577. background: rgb(201, 201, 201);
  578. border-radius: 10px;
  579. margin: 10px 0;
  580. padding: 5px 0;
  581. }
  582. @media screen and (orientation: portrait){
  583. @media screen and (max-width: 1400px){
  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. }
  613. @media screen and (min-width: 601px){
  614. .menuHead a p{
  615. font-size: 40px;
  616. }
  617. }
  618. }
  619. @media screen and (orientation: landscape){
  620. @media screen and (max-width: 1200px){
  621. /* MENU */
  622. #menu{
  623. display: none;
  624. width: 100vw;
  625. height: 100vh;
  626. padding: 0;
  627. flex-wrap: wrap;
  628. flex-direction: row;
  629. justify-content: space-around;
  630. }
  631. .menuShifter{
  632. display: none;
  633. }
  634. .menuHead{
  635. justify-content: center;
  636. padding: 0;
  637. margin-bottom: 0;
  638. height: 50px;
  639. }
  640. .menuHead a{
  641. width: initial;
  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: 35px;
  657. }
  658. }
  659. }