sidebars.css 11 KB

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