dashboard.css 11 KB

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