sidebars.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. font-size: 20px;
  195. text-align: center;
  196. margin: 0;
  197. }
  198. #ingredientDetails label p{
  199. font-size: 30px;
  200. font-weight: bold;
  201. padding: 10px;
  202. }
  203. .ingredientButtons{
  204. display: flex;
  205. justify-content: space-around;
  206. padding: 10px;
  207. }
  208. .unitButton{
  209. margin: 5px;
  210. padding: 3px;
  211. background: none;
  212. border: 1px solid black;
  213. font-size: 15px;
  214. font-weight: bold;
  215. cursor: pointer;
  216. border-radius: 5px;
  217. }
  218. .unitButton:hover{
  219. background: rgb(0, 27, 45);
  220. color: white;
  221. }
  222. .unitActive{
  223. background: rgb(255, 99, 107);
  224. }
  225. #defaultUnit{
  226. padding: 5px;
  227. font-size: 15px;
  228. }
  229. #ingredientRecipeList{
  230. text-align: center;
  231. list-style: none;
  232. overflow: auto;
  233. max-height: 150px;
  234. width: 100%;
  235. margin-left: auto;
  236. }
  237. #ingredientRecipeList > li{
  238. font-size: 15px;
  239. padding: 10px;
  240. border-radius: 5px;
  241. font-weight: bold;
  242. width: 75%;
  243. background: rgb(240, 252, 255);
  244. border: 1px solid black;
  245. cursor: pointer;
  246. margin: 1px auto;
  247. }
  248. #ingredientRecipeList > li:hover{
  249. background: rgb(0, 27, 45);
  250. color: white;
  251. }
  252. .buttonBox{
  253. display: flex;
  254. justify-content: space-around;
  255. width: 100%;
  256. margin-top: 50px;
  257. }
  258. /*
  259. Recipe Details
  260. */
  261. #recipeDetails{
  262. flex-direction: column;
  263. align-items: center;
  264. width: 100%;
  265. }
  266. #recipeNameIn{
  267. font-size: 32px;
  268. width: 75%;
  269. text-align: center;
  270. }
  271. #recipeIngredientList{
  272. width: 100%;
  273. }
  274. #recipePrice{
  275. display: flex;
  276. flex-direction: column;
  277. align-items: center;
  278. }
  279. #recipePrice p{
  280. font-size: 25px;
  281. font-weight: bold;
  282. }
  283. #recipeUpdate{
  284. margin: 25px 0 0 0;
  285. }
  286. .recipeIngredient{
  287. display: flex;
  288. justify-content: space-between;
  289. align-items: center;
  290. margin: 25px;
  291. text-align: center;
  292. }
  293. .recipeIngredient > *:first-of-type{
  294. text-align: left;
  295. }
  296. .recipeIngredientElement{
  297. width: 30%;
  298. }
  299. .addRecIngredient{
  300. display: flex;
  301. justify-content: center;
  302. margin-right: 3px;
  303. }
  304. .addRecIngredient input{
  305. max-width: 25%;
  306. margin-left: 3px;
  307. }
  308. /*
  309. Add Recipe
  310. */
  311. #addRecipe{
  312. display: flex;
  313. flex-direction: column;
  314. align-items: center;
  315. width: 100%;
  316. padding-bottom: 50px;
  317. }
  318. .recipeBasicInfo{
  319. width: 75%;
  320. background: rgb(240, 252, 255);
  321. padding: 15px;
  322. border-radius: 5px;
  323. border: 1px solid black;
  324. }
  325. .recipeBasicInfo label{
  326. display: flex;
  327. justify-content: space-between;
  328. margin: 15px 0;
  329. }
  330. .recipeBasicInfo input{
  331. width: 50%;
  332. }
  333. #addRecipe h2{
  334. margin-top: 10px;
  335. }
  336. #recipeInputIngredients{
  337. display: flex;
  338. flex-direction: column;
  339. align-items: center;
  340. box-sizing: border-box;
  341. margin: 0 0 25px 0;
  342. width:100%;
  343. overflow-y: auto;
  344. overflow-x: hidden;
  345. box-shadow: 0 0 2px gray;
  346. border-radius: 5px;
  347. }
  348. #recipeInputIngredients div{
  349. width: 75%;
  350. background: rgb(240, 252, 255);
  351. border: 1px solid black;
  352. padding: 10px;
  353. border-radius: 5px;
  354. margin: 10px 0;
  355. padding: 10px 15px;
  356. text-align: center;
  357. }
  358. #recipeInputIngredients div > label{
  359. display: flex;
  360. justify-content: space-between;
  361. margin-bottom: 2px;
  362. }
  363. #recipeInputIngredients input{
  364. width: 100px;
  365. }
  366. #recipeInputIngredients div h4{
  367. color: rgb(255, 99, 107);
  368. }
  369. #addRecipe button:last-of-type{
  370. margin-top: auto;
  371. }
  372. /* New Order */
  373. #newOrderIngredientList{
  374. display: flex;
  375. flex-direction: column;
  376. align-items: center;
  377. width: 40%;
  378. }
  379. .newOrderLabels{
  380. display: flex;
  381. flex-direction: column;
  382. width: 100%;
  383. margin-bottom: 25px;
  384. }
  385. .newOrderLabels label{
  386. display: flex;
  387. justify-content: space-between;
  388. align-items: center;
  389. font-size: 15px;
  390. }
  391. .newOrderLabels input{
  392. width: 50%;
  393. }
  394. #newOrderIngredients{
  395. display: flex;
  396. flex-direction: column;
  397. width: 90%;
  398. overflow-y: auto;
  399. }
  400. .newOrderIngredient{
  401. background: rgb(0, 27, 45);
  402. color: white;
  403. font-size: 17px;
  404. font-weight: bold;
  405. border: none;
  406. border-radius: 5px;
  407. padding: 5px;
  408. margin: 1px 0;
  409. cursor: pointer;
  410. }
  411. .newOrderIngredient:hover{
  412. background: rgb(201, 201, 201);
  413. color: black;
  414. }
  415. #newOrder{
  416. display: flex;
  417. flex-direction: column;
  418. align-items: center;
  419. width: 60%;
  420. border-left: 1px solid black;
  421. padding-left: 25px;
  422. }
  423. #newOrder > label{
  424. margin: 5px;
  425. }
  426. #selectedIngredientList{
  427. display: flex;
  428. flex-direction: column;
  429. align-items: center;
  430. height: 75%;
  431. overflow-y: auto;
  432. margin-bottom: 10px;
  433. }
  434. .selectedIngredient{
  435. display: flex;
  436. flex-direction: column;
  437. background: rgb(0, 27, 45);
  438. color: white;
  439. border-radius: 5px;
  440. margin: 5px 0;
  441. width: 95%;
  442. }
  443. .selectedIngredient > div{
  444. margin: 3px;
  445. display: flex;
  446. justify-content: space-between;
  447. align-items: center
  448. }
  449. .selectedIngredient p{
  450. font-weight: bold;
  451. font-size: 17px;
  452. }
  453. .newOrderRemove{
  454. background: rgb(0, 27, 45);
  455. border: 1px solid white;
  456. color: white;
  457. border-radius: 5px;
  458. font-size: 13px;
  459. font-weight: bold;
  460. padding: 5px;
  461. cursor: pointer;
  462. }
  463. .newOrderRemove:hover{
  464. background: rgb(201, 201, 201);
  465. color: black;
  466. }
  467. .selectedIngredient input{
  468. width: 45%;
  469. }
  470. /* New Ingredient */
  471. #newIngredient{
  472. display: flex;
  473. flex-direction: column;
  474. align-items: center;
  475. width: 100%;
  476. }
  477. #newIngredient label{
  478. display: flex;
  479. justify-content: space-between;
  480. align-items: center;
  481. width: 100%;
  482. background: rgb(240, 252, 255);
  483. border-radius: 5px;
  484. border: 1px solid black;
  485. padding: 10px;
  486. }
  487. #newIngredient .button{
  488. margin: 15px 0 0 auto;
  489. }
  490. /* Order Details */
  491. #orderDetails{
  492. display: flex;
  493. flex-direction: column;
  494. align-items: center;
  495. width: 100%;
  496. }
  497. .orderDiv{
  498. width: 50%;
  499. }
  500. .subOrderDiv{
  501. display: flex;
  502. justify-content: space-between;
  503. }
  504. #orderIngredients{
  505. width: 90%;
  506. overflow: auto;
  507. }
  508. #orderTotalPrice{
  509. display: flex;
  510. flex-direction: column;
  511. align-items: center;
  512. font-size: 25px;
  513. font-weight: bold;
  514. }
  515. .orderIngredient{
  516. display: flex;
  517. justify-content: space-between;
  518. width: 100%;
  519. box-sizing: border-box;
  520. background: rgb(240, 252, 255);
  521. border: 1px solid black;
  522. border-radius: 5px;
  523. padding: 10px;
  524. margin: 5px 0;
  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. New Transaction
  544. */
  545. .newTransaction{
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. width: 100%;
  550. }
  551. .newTransactionRecipes{
  552. width: 100%;
  553. height: 90%;
  554. overflow-y: auto;
  555. }
  556. @media screen and (max-width: 1400px){
  557. .sidebar{
  558. width: 30vw;
  559. }
  560. }
  561. @media screen and (max-width: 1000px){
  562. .sidebar{
  563. width: 100vw;
  564. }
  565. .sidebarIconButtons > .iconButton{
  566. display: none;
  567. }
  568. .menu{
  569. display: none;
  570. width: 100vw;
  571. height: 100vh;
  572. }
  573. .menuHead{
  574. padding: 0;
  575. margin-bottom: 15px;
  576. }
  577. .menuHead a{
  578. display: flex;
  579. justify-content: right;
  580. width: 70%;
  581. }
  582. .menuShifter{
  583. display: none;
  584. }
  585. .mobileMenuSelector{
  586. display: block;
  587. z-index: 20;
  588. }
  589. #orderIngredients{
  590. width: 100%;
  591. }
  592. .orderIngredient{
  593. color: black;
  594. }
  595. #ingredientRecipeList li{
  596. color: black;
  597. }
  598. }