sidebars.css 14 KB

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