dashboard.css 8.6 KB

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