dashboard.css 8.1 KB

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