dashboard.css 3.4 KB

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