sidebars.css 14 KB

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