dashboard.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  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. position: relative;
  20. padding-bottom: 25px;
  21. }
  22. /*
  23. Multi-strand use classes
  24. */
  25. .strand{
  26. flex-direction: column;
  27. height: 100vh;
  28. width: 100%;
  29. padding-bottom: 25px;
  30. box-sizing: border-box;
  31. }
  32. .strandHead{
  33. display: flex;
  34. justify-content: space-between;
  35. width: 100%;
  36. padding: 10px 50px 0 50px;
  37. align-items: center;
  38. box-sizing: border-box;
  39. height: 10%;
  40. }
  41. .strandTitle{
  42. text-align: left;
  43. margin: 15px;
  44. padding: 0;
  45. }
  46. #sidebarCloser{
  47. width: 30px;
  48. background: rgb(0, 27, 45);
  49. color: white;
  50. margin-right: auto;
  51. border: none;
  52. position: fixed;
  53. top: 15px;
  54. left: 15px;
  55. }
  56. .buttonBox{
  57. display: flex;
  58. justify-content: space-around;
  59. margin-top: 50px;
  60. }
  61. .buttonBox > *{
  62. margin-right: 10px;
  63. }
  64. .choosable{
  65. display: flex;
  66. justify-content: space-around;
  67. align-items: center;
  68. background: rgb(0, 27, 45);
  69. color: white;
  70. border-radius: 5px;
  71. margin: 2px;
  72. padding: 5px;
  73. text-align: center;
  74. cursor: pointer;
  75. width: 99%;
  76. box-sizing: border-box;
  77. border: none;
  78. font-size: 16px;
  79. }
  80. .choosable.tall{
  81. padding: 15px;
  82. }
  83. .choosable:hover{
  84. background: rgb(201, 201, 201);
  85. color: black;
  86. }
  87. .choosable.active{
  88. background: rgb(179, 191, 209);
  89. color: white;
  90. }
  91. .searchBar{
  92. display: flex;
  93. align-items: center;
  94. margin-bottom: 10px;
  95. }
  96. .searchButton{
  97. padding: 6px;
  98. background: rgb(0, 27, 45);
  99. cursor: pointer;
  100. color: white;
  101. border-top-left-radius: 10px;
  102. border-bottom-left-radius: 10px;
  103. }
  104. .searchButton:hover{
  105. background: rgb(201, 201, 201);
  106. color: black;
  107. }
  108. .searchButton:active{
  109. background: rgb(179, 191, 209);
  110. color: white;
  111. }
  112. .searchInput{
  113. border: 4px solid rgb(0, 27, 45);
  114. font-size: 20px;
  115. border-top-right-radius: 10px;
  116. border-bottom-right-radius: 10px;
  117. padding: 1px 0 1px 4px;
  118. }
  119. .dateRange{
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. }
  124. .dateRangeInput{
  125. display: flex;
  126. justify-content: space-between;
  127. }
  128. .dateRangeInput p{
  129. margin: 0 5px;
  130. font-size: 20px;
  131. font-weight: bold;
  132. }
  133. /*
  134. Home Strand
  135. */
  136. #homeStrand{
  137. display: flex;
  138. }
  139. .card{
  140. margin: 0 15px;
  141. border: 1px solid rgba(183, 183, 183, 0.9);
  142. border-radius: 7px;
  143. box-shadow: 1px 2px gray;
  144. flex-grow: 1;
  145. height: 100%;
  146. }
  147. .card > *{
  148. margin: 10px;
  149. }
  150. .card p:first-of-type{
  151. font-size: 14px;
  152. font-weight: bold;
  153. text-align: center;
  154. }
  155. .flexRow{
  156. display: flex;
  157. justify-content: space-around;
  158. width: 100%;
  159. flex-basis: 100px;
  160. flex-grow: 1;
  161. margin: 15px 0;
  162. }
  163. #revenueCard{
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: center;
  167. align-items: center;
  168. }
  169. #revenue{
  170. text-align: center;
  171. font-size: 30px;
  172. font-weight: bold;
  173. }
  174. #revenueChange{
  175. display: flex;
  176. }
  177. #revenueChange > p{
  178. font-weight: 100;
  179. }
  180. #revenueChange img{
  181. height: 15px;
  182. width: 15px;
  183. margin-right: 10px;
  184. }
  185. #graphCard{
  186. flex-grow: 5;
  187. display: flex;
  188. justify-content: center;
  189. }
  190. #inventoryCheckCard{
  191. display: flex;
  192. flex-direction: column;;
  193. justify-content: space-between;
  194. flex-basis: 100px;
  195. flex-grow: 1;
  196. }
  197. #inventoryCheckCard ul{
  198. list-style: none;
  199. }
  200. #inventoryCheckCard button{
  201. margin-left: auto;
  202. }
  203. .ingredientCheck{
  204. display: flex;
  205. align-items: center;
  206. margin: 5px 0;
  207. }
  208. .ingredientCheck p:first-of-type{
  209. width: 40%;
  210. font-weight: 300;
  211. font-size: 15px;
  212. margin-right: 25px;
  213. }
  214. .ingredientCheck p:last-of-type{
  215. width: 20%
  216. }
  217. .numberInput{
  218. display: flex;
  219. justify-content: center;
  220. width: 40%;
  221. margin-right: 25px;
  222. }
  223. .numberInput button{
  224. width: 30%;
  225. font-size: 23px;
  226. background: rgb(0, 27, 45);
  227. border: none;
  228. color: white;
  229. font-weight: bold;
  230. cursor: pointer;
  231. }
  232. .numberInput button:first-of-type{
  233. border-bottom-left-radius: 5px;
  234. border-top-left-radius: 5px;
  235. }
  236. .numberInput button:last-of-type{
  237. border-bottom-right-radius: 5px;
  238. border-top-right-radius: 5px;
  239. }
  240. .numberInput input{
  241. width: 55%;
  242. font-size: 15px;
  243. text-align: center;
  244. }
  245. .numberInput input::-webkit-outer-spin-button,
  246. .numberInput input::-webkit-inner-spin-button {
  247. -webkit-appearance: none;
  248. margin: 0;
  249. }
  250. .numberInput input[type=number] {
  251. -moz-appearance: textfield;
  252. }
  253. #popularIngredientsCard{
  254. display: flex;
  255. flex-direction: column;
  256. align-items: center;
  257. flex-basis: 100px;
  258. flex-grow: 2.5;
  259. padding: 5px;
  260. box-sizing: border-box;
  261. }
  262. #popularCanvas{
  263. margin: 0 35px;
  264. }
  265. .notice{
  266. color: red;
  267. font-size: 35px;
  268. font-weight: bold;
  269. }
  270. /*
  271. Ingredients Strand
  272. */
  273. #ingredientsStrand{
  274. display: none;
  275. align-items: center;
  276. height: 100%;
  277. box-sizing: border-box;
  278. }
  279. #categoryList{
  280. align-items:center;
  281. overflow-y: auto;
  282. width: 80%;
  283. }
  284. .categoryDiv{
  285. display: flex;
  286. flex-direction: column;
  287. align-items: center;
  288. }
  289. .categoryDiv > div:first-of-type{
  290. display: flex;
  291. cursor: pointer;
  292. width: 100%;
  293. }
  294. .categoryDiv > div:first-of-type p{
  295. display: flex;
  296. align-items: center;
  297. padding: 20px 0 20px 100px;
  298. background: rgb(240, 252, 255);
  299. border: 1px solid gray;
  300. border-radius: 5px;
  301. margin-right: 25px;
  302. flex-grow: 1;
  303. }
  304. .categoryDiv > div:first-of-type button{
  305. padding: 10px;
  306. background: rgb(240, 252, 255);
  307. border: 1px solid black;
  308. border-radius: 5px;
  309. width: 75px;
  310. height: 75px;
  311. cursor: pointer;
  312. }
  313. .ingredientsDiv{
  314. flex-direction: column;
  315. width: 50%;
  316. }
  317. .ingredientSpacer{
  318. border: none;
  319. border-top: 1px dashed black;
  320. margin: auto;
  321. }
  322. /*
  323. Recipe Book Strand
  324. */
  325. #recipeBookStrand{
  326. display: none;
  327. align-items: center;
  328. }
  329. #recipeList{
  330. display: flex;
  331. flex-direction: column;
  332. align-items: center;
  333. width: 50%;
  334. overflow-y: auto;
  335. }
  336. /*
  337. Analytics Strand
  338. */
  339. .switch{
  340. position: relative;
  341. display: inline-block;
  342. width: 239px;
  343. height: 34px;
  344. border: 3px solid rgb(0, 27, 45);
  345. color: white;
  346. }
  347. .switch input{
  348. opacity: 0;
  349. width: 0;
  350. height: 0;
  351. }
  352. .switch input:focus + .slider{
  353. box-shadow: 0 0 1px #2196F3;
  354. }
  355. .switch input:checked + .slider:before {
  356. -webkit-transform: translateX(105px);
  357. -ms-transform: translateX(92px);
  358. transform: translateX(125px);
  359. }
  360. .slider{
  361. display: flex;
  362. justify-content: space-between;
  363. align-items: center;
  364. position: absolute;
  365. cursor: pointer;
  366. top: 0;
  367. left: 0;
  368. right: 0;
  369. bottom: 0;
  370. padding: 0 24px 0 5px;
  371. background: rgb(255, 99, 107);
  372. transition: 0.2s;
  373. }
  374. .slider:before{
  375. position: absolute;
  376. content: "";
  377. height: 30px;
  378. width: 110px;
  379. left: 1px;
  380. bottom: 1px;
  381. background: rgba(255, 255, 255, 0.6);
  382. border: 1px solid rgb(0, 27, 45);
  383. transition: 0.2s;
  384. }
  385. .analContent{
  386. display: flex;
  387. justify-content: space-around;
  388. align-items:center;
  389. padding: 15px;
  390. box-sizing: border-box;
  391. height: 90%;
  392. }
  393. .itemsList{
  394. list-style-type: none;
  395. width: 15%;
  396. max-height: 95%;
  397. overflow-y: auto;
  398. }
  399. .analData{
  400. display: flex;
  401. flex-direction: column;
  402. justify-content: space-around;
  403. width: 100%;
  404. height: 100%;
  405. }
  406. #itemUseGraph{
  407. padding: 10px;
  408. height: 60%;
  409. flex-basis: 100px;
  410. flex-grow: 5;
  411. }
  412. .dataRow{
  413. display: flex;
  414. justify-content: space-between;
  415. flex-basis: 150px;
  416. flex-grow: 0;
  417. }
  418. .analCard{
  419. display: flex;
  420. flex-direction: column;
  421. justify-content: space-around;
  422. margin: 5px;
  423. height: inherit;
  424. }
  425. .analCard > *{
  426. margin: 0;
  427. }
  428. #analRecipeContent{
  429. display: flex;
  430. justify-content: space-around;
  431. align-items: center;
  432. padding: 15px;
  433. box-sizing: border-box;
  434. height: 90%;
  435. }
  436. /*
  437. Orders Strand
  438. */
  439. #ordersStrand{
  440. display: none;
  441. align-items: center;
  442. }
  443. #orderList{
  444. width: 50%;
  445. margin-top: 50px;
  446. overflow-y: auto;
  447. }
  448. /*
  449. Transactions Strand
  450. */
  451. .transactions{
  452. display: none;
  453. align-items: center;
  454. }
  455. .transactionsList{
  456. width: 50%;
  457. overflow-y: auto;
  458. margin-top: 50px;
  459. }
  460. @media screen and (max-width: 1000px){
  461. body{
  462. flex-direction: column;
  463. background: rgb(0, 27, 45);
  464. color: white;
  465. }
  466. .contentBlock{
  467. padding: 0;
  468. }
  469. .banner{
  470. display: none;
  471. }
  472. .strandHead{
  473. padding: 0;
  474. }
  475. .strandTitle{
  476. margin-top: 35px;
  477. }
  478. .mobileHide{
  479. display: none;
  480. }
  481. /*
  482. Home
  483. */
  484. .card{
  485. margin: 5px 10px;
  486. background: white;
  487. color: black;
  488. }
  489. #inventoryCheckCard{
  490. display: none;
  491. }
  492. #popularIngredientsCard{
  493. padding-bottom: 10px;
  494. }
  495. .flexRow{
  496. flex-direction: column;
  497. margin: 0;
  498. }
  499. /*
  500. Ingredients
  501. */
  502. #categoryList{
  503. width: 95%;
  504. color: black;
  505. }
  506. .categoryDiv > div:first-of-type p{
  507. padding: 5px 0 5px 5px;
  508. }
  509. .categoryDiv div:first-of-type button{
  510. height: 50px;
  511. width: 50px;
  512. }
  513. .ingredient{
  514. color: white;
  515. width: 75%;
  516. border: 2px solid rgb(201, 201, 201);
  517. padding: 5px;
  518. margin-top: 5px;
  519. margin-bottom: 5px;
  520. box-shadow: 1px 1px gray;
  521. }
  522. .ingredient > *{
  523. width: 50%;
  524. }
  525. /*
  526. Recipe Book
  527. */
  528. .searchBar{
  529. padding: 0;
  530. }
  531. #recipeSearch{
  532. border-radius: 5px;
  533. width: 100%;
  534. }
  535. #recipeList{
  536. width: 95%;
  537. }
  538. /*
  539. Orders
  540. */
  541. #orderList{
  542. width: 95%;
  543. }
  544. /*
  545. Transactions
  546. */
  547. .transactionsList{
  548. width: 100%;
  549. }
  550. }