dashboard.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. html{
  2. height: 100%;
  3. max-width: 100%;
  4. }
  5. body{
  6. display: flex;
  7. flex-direction: row;
  8. font-family: 'Saira', sans-serif;
  9. height: 100%;
  10. max-width: 100%;
  11. }
  12. .contentBlock{
  13. width: 100%;
  14. height: 100vh;
  15. flex: 1;
  16. box-sizing: border-box;
  17. padding: 50px;
  18. }
  19. .strand{
  20. flex-direction: column;
  21. max-height: 100%;
  22. width: 100%;
  23. }
  24. .strand > *:first-of-type{
  25. text-align: left;
  26. margin: 15px;
  27. }
  28. /* Cards */
  29. .card{
  30. margin: 15px;
  31. border: 1px solid rgba(183, 183, 183, 0.9);
  32. border-radius: 7px;
  33. box-sizing: border-box;
  34. box-shadow: 1px 2px gray;
  35. padding: 25px;
  36. flex-grow: 1;
  37. }
  38. .card > *{
  39. margin: 10px;
  40. }
  41. .card p:first-of-type{
  42. font-size: 14px;
  43. font-weight: bold;
  44. text-align: center;
  45. }
  46. /* Home Strand */
  47. #homeStrand{
  48. display: flex;
  49. }
  50. .flexRow{
  51. display: flex;
  52. justify-content: space-around;
  53. width: 100%;
  54. }
  55. .flexColumn{
  56. display: flex;
  57. flex-direction: column;
  58. justify-content: space-between;
  59. }
  60. #revenueCard{
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: center;
  64. }
  65. #revenue{
  66. text-align: center;
  67. font-size: 30px;
  68. font-weight: bold;
  69. }
  70. #revenueChange{
  71. display: flex;
  72. }
  73. #revenueChange > p{
  74. font-weight: 100;
  75. }
  76. #revenueChange img{
  77. height: 15px;
  78. width: 15px;
  79. margin-right: 10px;
  80. }
  81. #graphCard{
  82. flex-grow: 1;
  83. max-height: 40vh;
  84. height: 100%;
  85. }
  86. #graphCard canvas{
  87. height: 95%;
  88. width: 100%;
  89. }
  90. #inventoryCheckCard{
  91. flex-grow: 0.1;
  92. }
  93. #inventoryCheckCard ul{
  94. list-style: none;
  95. }
  96. #inventoryCheckCard li{
  97. margin: 15px 0;
  98. }
  99. #inventoryCheckCard li > p{
  100. font-weight: 300;
  101. font-size: 15px;
  102. margin-right: 25px;
  103. }
  104. #inventoryCheckCard li > p:nth-of-type(1){
  105. width: 50%;
  106. }
  107. #inventoryCheckCard li input{
  108. width: 75px;
  109. margin-right: 25px;
  110. font-size: 20px;
  111. text-align: center;
  112. }
  113. #inventoryCheckCard li p:nth-of-type(2){
  114. width: 25%;
  115. min-width: 75px;
  116. }
  117. #inventoryCheckCard button{
  118. margin: 0;
  119. margin-top: 10px;
  120. float: right;
  121. height: 25px;
  122. padding: 0 29px;
  123. font-size: 15px;
  124. }
  125. #popularIngredientsCard{
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. height: 100%;
  130. }
  131. /* Ingredients Strand */
  132. #ingredientsStrand{
  133. display: none;
  134. height: 100vh;
  135. box-sizing: border-box;
  136. padding-right: 100px;
  137. }
  138. #ingredientsStrand > h1{
  139. margin-bottom: 100px;
  140. }
  141. #ingredientHead{
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. margin-bottom: 100px;
  146. }
  147. #ingredientHead button{
  148. display: flex;
  149. align-items: center;
  150. }
  151. #ingredientHead svg{
  152. margin-right: 5px;
  153. }
  154. .categoryDiv > div:first-of-type{
  155. display: flex;
  156. margin-left: 15px;
  157. width: 100%;
  158. }
  159. .categoryDiv > div:first-of-type p{
  160. display: flex;
  161. align-items: center;
  162. padding: 20px 0 20px 100px;
  163. background: rgb(240, 252, 255);
  164. border: 1px solid gray;
  165. border-radius: 5px;
  166. margin-right: 25px;
  167. flex-grow: 1;
  168. }
  169. .categoryDiv > div:first-of-type button{
  170. padding: 10px;
  171. background: rgb(240, 252, 255);
  172. border: 1px solid black;
  173. border-radius: 5px;
  174. width: 75px;
  175. height: 75px;
  176. cursor: pointer;
  177. }
  178. .ingredientsDiv{
  179. flex-direction: column;
  180. }
  181. .ingredient{
  182. display: flex;
  183. width: 40%;
  184. padding: 15px;
  185. margin-left: 150px;
  186. cursor: pointer;
  187. border-radius: 5px;
  188. }
  189. .ingredient:hover{
  190. background: rgb(0, 27, 45);
  191. color: white;
  192. }
  193. .ingredient > *{
  194. width: 33%;
  195. margin-right: 15px;
  196. }
  197. .ingredient > p:last-of-type{
  198. text-align: right;
  199. }
  200. /* Recipe Book Strand */
  201. #recipeBookStrand{
  202. display: none;
  203. }
  204. /* Orders Strand */
  205. #ordersStrand{
  206. display: none;
  207. }