sidebars.css 13 KB

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