dashboard.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. General page styling
  3. */
  4. html{
  5. height: 100%;
  6. max-width: 100%;
  7. }
  8. body{
  9. display: flex;
  10. flex-direction: row;
  11. height: 100%;
  12. max-width: 100%;
  13. }
  14. .contentBlock{
  15. width: 100%;
  16. height: 100vh;
  17. flex: 1;
  18. box-sizing: border-box;
  19. padding: 50px;
  20. padding-top: 0;
  21. }
  22. /*
  23. Multi-strand use classes
  24. */
  25. .strand{
  26. flex-direction: column;
  27. height: 100%;
  28. width: 100%;
  29. }
  30. .strandHead{
  31. display: flex;
  32. justify-content: space-between;
  33. width: 100%;
  34. align-items: center;
  35. }
  36. .strandTitle{
  37. text-align: left;
  38. margin: 15px;
  39. padding: 0;
  40. }
  41. .itemDisplay{
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. padding: 20px;
  46. width: 100%;
  47. background: rgb(240, 252, 255);
  48. border-radius: 5px;
  49. border: 1px solid gray;
  50. cursor: pointer;
  51. box-sizing: border-box;
  52. }
  53. .itemDisplay:hover{
  54. background: rgb(0, 27, 45);
  55. color: white;
  56. }
  57. .itemDisplay > *:first-of-type{
  58. font-size: 20px;
  59. font-weight: bold;
  60. }
  61. .smallItemDisplay{
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. padding: 10px;
  66. margin: 5px 0;
  67. width: 100%;
  68. background: rgb(240, 252, 255);
  69. border-radius: 5px;
  70. border: 1px solid gray;
  71. box-sizing: border-box;
  72. }
  73. .searchBar{
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. margin-bottom: 3px;
  78. width: 80%;
  79. padding: 10px 25px;
  80. box-sizing: border-box;
  81. background: rgb(0, 27,45);
  82. border-radius: 5px;
  83. }
  84. .searchAndIcon{
  85. display: flex;
  86. width: 25%;
  87. }
  88. .searchAndIcon svg{
  89. background: rgb(201, 201, 201);
  90. border-bottom-left-radius: 5px;
  91. border-top-left-radius: 5px;
  92. color: gray;
  93. padding: 5px 0 5px 5px;
  94. width: 30px;
  95. z-index: 10;
  96. }
  97. .searchAndIcon input{
  98. background: rgb(201, 201, 201);
  99. border: none;
  100. height: 30px;
  101. border-bottom-right-radius: 5px;
  102. border-top-right-radius: 5px;
  103. font-size: 20px;
  104. padding: 5px 0 5px 10px;
  105. max-width: 200px;
  106. }
  107. .clearButton{
  108. background: none;
  109. border: none;
  110. color: rgb(255, 99, 107);
  111. cursor: pointer;
  112. }
  113. .clearButton:hover{
  114. background: rgb(0, 27, 45);
  115. }
  116. .searchBar select{
  117. background: rgb(201, 201, 201);
  118. font-size: 20px;
  119. border-radius: 5px;
  120. border: none;
  121. height: 30px;
  122. padding: 5px 0;
  123. box-sizing: content-box;
  124. -webkit-appearance: none;
  125. -moz-appearance: none;
  126. background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  127. background-repeat: no-repeat;
  128. background-position-x: 100%;
  129. background-position-y: 50%;
  130. cursor: pointer;
  131. }
  132. .button2Link{
  133. background: none;
  134. border: none;
  135. color: blue;
  136. text-decoration: underline;
  137. font-size: 15px;
  138. margin-top: auto;
  139. cursor: pointer;
  140. }
  141. #sidebarCloser{
  142. width: 30px;
  143. background: rgb(0, 27, 45);
  144. color: white;
  145. margin-right: auto;
  146. border: none;
  147. position: fixed;
  148. top: 15px;
  149. left: 15px;
  150. }
  151. /*
  152. Home Strand
  153. */
  154. #homeStrand{
  155. display: flex;
  156. }
  157. .card{
  158. margin: 0 15px;
  159. border: 1px solid rgba(183, 183, 183, 0.9);
  160. border-radius: 7px;
  161. box-shadow: 1px 2px gray;
  162. flex-grow: 1;
  163. height: 100%;
  164. }
  165. .card > *{
  166. margin: 10px;
  167. }
  168. .card p:first-of-type{
  169. font-size: 14px;
  170. font-weight: bold;
  171. text-align: center;
  172. }
  173. .flexRow{
  174. display: flex;
  175. justify-content: space-around;
  176. width: 100%;
  177. flex-basis: 100px;
  178. flex-grow: 1;
  179. margin: 15px 0;
  180. }
  181. #revenueCard{
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: center;
  185. align-items: center;
  186. }
  187. #revenue{
  188. text-align: center;
  189. font-size: 30px;
  190. font-weight: bold;
  191. }
  192. #revenueChange{
  193. display: flex;
  194. }
  195. #revenueChange > p{
  196. font-weight: 100;
  197. }
  198. #revenueChange img{
  199. height: 15px;
  200. width: 15px;
  201. margin-right: 10px;
  202. }
  203. #graphCard{
  204. flex-grow: 5;
  205. display: flex;
  206. justify-content: center;
  207. }
  208. #inventoryCheckCard{
  209. display: flex;
  210. flex-direction: column;;
  211. justify-content: space-between;
  212. flex-basis: 100px;
  213. flex-grow: 1;
  214. }
  215. #inventoryCheckCard ul{
  216. list-style: none;
  217. }
  218. #inventoryCheckCard button{
  219. margin-left: auto;
  220. }
  221. .ingredientCheck{
  222. display: flex;
  223. align-items: center;
  224. margin: 5px 0;
  225. }
  226. .ingredientCheck p:first-of-type{
  227. width: 37%;
  228. font-weight: 300;
  229. font-size: 15px;
  230. margin-right: 25px;
  231. }
  232. .ingredientCheck p:last-of-type{
  233. width: 25%
  234. }
  235. .numberInput{
  236. display: flex;
  237. justify-content: center;
  238. width: 37%;
  239. margin-right: 25px;
  240. }
  241. .numberInput button{
  242. width: 30%;
  243. font-size: 23px;
  244. background: rgb(0, 27, 45);
  245. border: none;
  246. color: white;
  247. font-weight: bold;
  248. cursor: pointer;
  249. }
  250. .numberInput button:first-of-type{
  251. border-bottom-left-radius: 5px;
  252. border-top-left-radius: 5px;
  253. }
  254. .numberInput button:last-of-type{
  255. border-bottom-right-radius: 5px;
  256. border-top-right-radius: 5px;
  257. }
  258. .numberInput input{
  259. width: 40%;
  260. font-size: 15px;
  261. text-align: center;
  262. }
  263. .numberInput input::-webkit-outer-spin-button,
  264. .numberInput input::-webkit-inner-spin-button {
  265. -webkit-appearance: none;
  266. margin: 0;
  267. }
  268. .numberInput input[type=number] {
  269. -moz-appearance: textfield;
  270. }
  271. #popularIngredientsCard{
  272. display: flex;
  273. flex-direction: column;
  274. align-items: center;
  275. flex-basis: 100px;
  276. flex-grow: 2.5;
  277. }
  278. #popularCanvas{
  279. margin: 0 35px;
  280. }
  281. .notice{
  282. color: red;
  283. font-size: 35px;
  284. font-weight: bold;
  285. }
  286. /*
  287. Ingredients Strand
  288. */
  289. #ingredientsStrand{
  290. display: none;
  291. align-items: center;
  292. height: 100%;
  293. box-sizing: border-box;
  294. }
  295. #categoryList{
  296. align-items:center;
  297. overflow-y: auto;
  298. width: 80%;
  299. }
  300. .categoryDiv > div:first-of-type{
  301. display: flex;
  302. }
  303. .categoryDiv > div:first-of-type p{
  304. display: flex;
  305. align-items: center;
  306. padding: 20px 0 20px 100px;
  307. background: rgb(240, 252, 255);
  308. border: 1px solid gray;
  309. border-radius: 5px;
  310. margin-right: 25px;
  311. flex-grow: 1;
  312. }
  313. .categoryDiv > div:first-of-type button{
  314. padding: 10px;
  315. background: rgb(240, 252, 255);
  316. border: 1px solid black;
  317. border-radius: 5px;
  318. width: 75px;
  319. height: 75px;
  320. cursor: pointer;
  321. }
  322. .ingredientsDiv{
  323. flex-direction: column;
  324. }
  325. .ingredient{
  326. display: flex;
  327. width: 50%;
  328. padding: 15px;
  329. margin: auto;
  330. cursor: pointer;
  331. border-radius: 5px;
  332. }
  333. .ingredient:hover{
  334. background: rgb(0, 27, 45);
  335. color: white;
  336. }
  337. .ingredient > *{
  338. width: 33%;
  339. margin-right: 15px;
  340. }
  341. .ingredient > p:last-of-type{
  342. text-align: right;
  343. }
  344. .ingredientSpacer{
  345. border: none;
  346. border-top: 1px dashed black;
  347. margin: auto;
  348. }
  349. /*
  350. Recipe Book Strand
  351. */
  352. #recipeBookStrand{
  353. display: none;
  354. align-items: center;
  355. }
  356. #recipeBookStrand .searchBar{
  357. width: 50%;
  358. }
  359. #recipeSearch{
  360. width: 50%;
  361. }
  362. #recipeSelect{
  363. width: 25%;
  364. }
  365. #recipeList{
  366. display: flex;
  367. flex-direction: column;
  368. align-items: center;
  369. width: 50%;
  370. overflow-y: auto;
  371. }
  372. /*
  373. Orders Strand
  374. */
  375. #ordersStrand{
  376. display: none;
  377. align-items: center;
  378. }
  379. #orderList{
  380. width: 50%;
  381. margin-top: 50px;
  382. overflow-y: auto;
  383. }
  384. /*
  385. Transactions Strand
  386. */
  387. .transactions{
  388. display: none;
  389. align-items: center;
  390. }
  391. .transactionsList{
  392. width: 50%;
  393. overflow-y: auto;
  394. margin-top: 50px;
  395. }
  396. @media screen and (max-width: 1000px){
  397. body{
  398. flex-direction: column;
  399. background: rgb(0, 27, 45);
  400. color: white;
  401. }
  402. .banner{
  403. display: none;
  404. }
  405. .contentBlock{
  406. padding: 0;
  407. }
  408. .strandTitle{
  409. margin-top: 35px;
  410. }
  411. .mobileHide{
  412. display: none;
  413. }
  414. .itemDisplay{
  415. color: black;
  416. padding: 5px;
  417. margin-top: 2px;
  418. margin-bottom: 2px;
  419. }
  420. .itemDisplay:hover{
  421. background: rgb(240, 252, 255);
  422. color: black;
  423. }
  424. /*
  425. Home
  426. */
  427. .card{
  428. margin: 5px 10px;
  429. background: white;
  430. color: black;
  431. }
  432. #inventoryCheckCard{
  433. display: none;
  434. }
  435. #popularIngredientsCard{
  436. padding-bottom: 10px;
  437. }
  438. .flexRow{
  439. flex-direction: column;
  440. margin: 0;
  441. }
  442. /*
  443. Ingredients
  444. */
  445. #categoryList{
  446. width: 95%;
  447. color: black;
  448. }
  449. #ingredientSearch{
  450. border-radius: 5px;
  451. }
  452. .categoryDiv > div:first-of-type p{
  453. padding: 5px 0 5px 5px;
  454. }
  455. .categoryDiv div:first-of-type button{
  456. height: 50px;
  457. width: 50px;
  458. }
  459. .ingredient{
  460. color: white;
  461. width: 75%;
  462. border: 2px solid rgb(201, 201, 201);
  463. padding: 5px;
  464. margin-top: 5px;
  465. margin-bottom: 5px;
  466. box-shadow: 1px 1px gray;
  467. }
  468. .ingredient > *{
  469. width: 50%;
  470. }
  471. /*
  472. Recipe Book
  473. */
  474. .searchBar{
  475. padding: 0;
  476. }
  477. .searchAndIcon{
  478. width: 100%;
  479. }
  480. #recipeSearch{
  481. border-radius: 5px;
  482. width: 100%;
  483. }
  484. #recipeList{
  485. width: 95%;
  486. }
  487. /*
  488. Orders
  489. */
  490. #orderList{
  491. width: 95%;
  492. }
  493. }