dashboard.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. /*
  15. Multi-strand use classes
  16. */
  17. .contentBlock{
  18. width: 100%;
  19. height: 100vh;
  20. flex: 1;
  21. box-sizing: border-box;
  22. padding: 50px;
  23. padding-top: 0;
  24. }
  25. .strand{
  26. flex-direction: column;
  27. height: 100%;
  28. width: 100%;
  29. }
  30. .strandTitle{
  31. text-align: left;
  32. margin: 15px;
  33. padding: 0;
  34. }
  35. .strandHead{
  36. display: flex;
  37. justify-content: space-between;
  38. width: 100%;
  39. align-items: center;
  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. .searchBar{
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. margin-bottom: 3px;
  66. width: 80%;
  67. padding: 10px 25px;
  68. box-sizing: border-box;
  69. background: rgb(0, 27,45);
  70. border-radius: 5px;
  71. }
  72. .searchAndIcon{
  73. display: flex;
  74. }
  75. .searchAndIcon svg{
  76. background: rgb(201, 201, 201);
  77. border-bottom-left-radius: 5px;
  78. border-top-left-radius: 5px;
  79. color: gray;
  80. padding: 5px;
  81. }
  82. .searchAndIcon input{
  83. background: rgb(201, 201, 201);
  84. border: none;
  85. height: 30px;
  86. border-bottom-right-radius: 5px;
  87. border-top-right-radius: 5px;
  88. font-size: 20px;
  89. padding: 5px 0 5px 10px;
  90. }
  91. .clearButton{
  92. background: none;
  93. border: none;
  94. color: rgb(255, 99, 107);
  95. cursor: pointer;
  96. }
  97. .clearButton:hover{
  98. background: rgb(0, 27, 45);
  99. }
  100. .searchBar select{
  101. background: rgb(201, 201, 201);
  102. font-size: 20px;
  103. border-radius: 5px;
  104. border: none;
  105. height: 30px;
  106. padding: 5px 0;
  107. box-sizing: content-box;
  108. -webkit-appearance: none;
  109. -moz-appearance: none;
  110. 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>");
  111. background-repeat: no-repeat;
  112. background-position-x: 100%;
  113. background-position-y: 50%;
  114. cursor: pointer;
  115. }
  116. /*
  117. Home Strand
  118. */
  119. #homeStrand{
  120. display: flex;
  121. }
  122. .card{
  123. margin: 0 15px;
  124. border: 1px solid rgba(183, 183, 183, 0.9);
  125. border-radius: 7px;
  126. box-shadow: 1px 2px gray;
  127. flex-grow: 1;
  128. height: 100%;
  129. }
  130. .card > *{
  131. margin: 10px;
  132. }
  133. .card p:first-of-type{
  134. font-size: 14px;
  135. font-weight: bold;
  136. text-align: center;
  137. }
  138. .flexRow{
  139. display: flex;
  140. justify-content: space-around;
  141. width: 100%;
  142. flex-basis: 100px;
  143. flex-grow: 1;
  144. margin: 15px 0;
  145. }
  146. #revenueCard{
  147. display: flex;
  148. flex-direction: column;
  149. justify-content: center;
  150. align-items: center;
  151. }
  152. #revenue{
  153. text-align: center;
  154. font-size: 30px;
  155. font-weight: bold;
  156. }
  157. #revenueChange{
  158. display: flex;
  159. }
  160. #revenueChange > p{
  161. font-weight: 100;
  162. }
  163. #revenueChange img{
  164. height: 15px;
  165. width: 15px;
  166. margin-right: 10px;
  167. }
  168. #graphCard{
  169. flex-grow: 5;
  170. display: flex;
  171. justify-content: center;
  172. }
  173. #inventoryCheckCard{
  174. display: flex;
  175. flex-direction: column;;
  176. justify-content: space-between;
  177. flex-basis: 100px;
  178. flex-grow: 1;
  179. }
  180. #inventoryCheckCard ul{
  181. list-style: none;
  182. }
  183. #inventoryCheckCard button{
  184. margin-left: auto;
  185. }
  186. .ingredientCheck{
  187. display: flex;
  188. align-items: center;
  189. margin: 5px 0;
  190. }
  191. .ingredientCheck p:first-of-type{
  192. width: 37%;
  193. font-weight: 300;
  194. font-size: 15px;
  195. margin-right: 25px;
  196. }
  197. .ingredientCheck p:last-of-type{
  198. width: 25%
  199. }
  200. .numberInput{
  201. display: flex;
  202. justify-content: center;
  203. width: 37%;
  204. margin-right: 25px;
  205. }
  206. .numberInput button{
  207. width: 30%;
  208. font-size: 23px;
  209. background: rgb(0, 27, 45);
  210. border: none;
  211. color: white;
  212. font-weight: bold;
  213. cursor: pointer;
  214. }
  215. .numberInput button:first-of-type{
  216. border-bottom-left-radius: 5px;
  217. border-top-left-radius: 5px;
  218. }
  219. .numberInput button:last-of-type{
  220. border-bottom-right-radius: 5px;
  221. border-top-right-radius: 5px;
  222. }
  223. .numberInput input{
  224. width: 40%;
  225. font-size: 15px;
  226. text-align: center;
  227. }
  228. .numberInput input::-webkit-outer-spin-button,
  229. .numberInput input::-webkit-inner-spin-button {
  230. -webkit-appearance: none;
  231. margin: 0;
  232. }
  233. .numberInput input[type=number] {
  234. -moz-appearance: textfield;
  235. }
  236. #popularIngredientsCard{
  237. display: flex;
  238. flex-direction: column;
  239. align-items: center;
  240. flex-basis: 100px;
  241. flex-grow: 2.5;
  242. }
  243. #popularCanvas{
  244. margin: 0 35px;
  245. }
  246. .notice{
  247. color: red;
  248. font-size: 35px;
  249. font-weight: bold;
  250. }
  251. /* Ingredients Strand */
  252. #ingredientsStrand{
  253. display: none;
  254. align-items: center;
  255. height: 100%;
  256. box-sizing: border-box;
  257. }
  258. #ingredientsStrand > h1{
  259. margin-bottom: 100px;
  260. }
  261. #ingredientHead button{
  262. display: flex;
  263. align-items: center;
  264. }
  265. #ingredientHead svg{
  266. margin-right: 5px;
  267. }
  268. #categoryList{
  269. align-items:center;
  270. overflow-y: auto;
  271. width: 80%;
  272. }
  273. .categoryDiv > div:first-of-type{
  274. display: flex;
  275. }
  276. .categoryDiv > div:first-of-type p{
  277. display: flex;
  278. align-items: center;
  279. padding: 20px 0 20px 100px;
  280. background: rgb(240, 252, 255);
  281. border: 1px solid gray;
  282. border-radius: 5px;
  283. margin-right: 25px;
  284. flex-grow: 1;
  285. }
  286. .categoryDiv > div:first-of-type button{
  287. padding: 10px;
  288. background: rgb(240, 252, 255);
  289. border: 1px solid black;
  290. border-radius: 5px;
  291. width: 75px;
  292. height: 75px;
  293. cursor: pointer;
  294. }
  295. .ingredientsDiv{
  296. flex-direction: column;
  297. }
  298. .ingredient{
  299. display: flex;
  300. width: 50%;
  301. padding: 15px;
  302. margin: auto;
  303. cursor: pointer;
  304. border-radius: 5px;
  305. }
  306. .ingredient:hover{
  307. background: rgb(0, 27, 45);
  308. color: white;
  309. }
  310. .ingredient > *{
  311. width: 33%;
  312. margin-right: 15px;
  313. }
  314. .ingredient > p:last-of-type{
  315. text-align: right;
  316. }
  317. .ingredientSpacer{
  318. border: none;
  319. border-top: 1px dashed black;
  320. margin: auto;
  321. }
  322. /* Recipe Book Strand */
  323. #recipeBookStrand{
  324. display: none;
  325. align-items: center;
  326. }
  327. #recipeBookStrand .searchBar{
  328. width: 50%;
  329. }
  330. #recipeSearch{
  331. width: 50%;
  332. }
  333. #recipeSelect{
  334. width: 25%;
  335. }
  336. #recipeHead{
  337. display: flex;
  338. justify-content: space-between;
  339. width: 100%;
  340. align-items: center;
  341. }
  342. #recipeHead svg{
  343. margin-right: 5px
  344. }
  345. #recipeList{
  346. display: flex;
  347. flex-direction: column;
  348. align-items: center;
  349. width: 50%;
  350. overflow-y: auto;
  351. }
  352. /* Orders Strand */
  353. #ordersStrand{
  354. display: none;
  355. align-items: center;
  356. }
  357. #orderList{
  358. width: 50%;
  359. margin-top: 50px;
  360. overflow: auto;
  361. }
  362. #orderList p:first-of-type{
  363. font-weight: bold;
  364. font-size: 20px;
  365. }