dashboard.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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. .itemDisplay{
  47. display: flex;
  48. justify-content: space-between;
  49. align-items: center;
  50. padding: 20px;
  51. width: 100%;
  52. background: rgb(240, 252, 255);
  53. border-radius: 5px;
  54. border: 1px solid gray;
  55. cursor: pointer;
  56. box-sizing: border-box;
  57. }
  58. .itemDisplay:hover{
  59. background: rgb(0, 27, 45);
  60. color: white;
  61. }
  62. .itemDisplay > *:first-of-type{
  63. font-size: 20px;
  64. font-weight: bold;
  65. }
  66. .smallItemDisplay{
  67. display: flex;
  68. justify-content: space-between;
  69. align-items: center;
  70. padding: 10px;
  71. margin: 5px 0;
  72. width: 100%;
  73. background: rgb(240, 252, 255);
  74. border-radius: 5px;
  75. border: 1px solid gray;
  76. box-sizing: border-box;
  77. }
  78. .searchBar{
  79. display: flex;
  80. justify-content: space-between;
  81. align-items: center;
  82. margin-bottom: 3px;
  83. width: 80%;
  84. padding: 10px 25px;
  85. box-sizing: border-box;
  86. background: rgb(0, 27,45);
  87. border-radius: 5px;
  88. }
  89. .searchAndIcon{
  90. display: flex;
  91. width: 25%;
  92. }
  93. .searchAndIcon svg{
  94. background: rgb(201, 201, 201);
  95. border-bottom-left-radius: 5px;
  96. border-top-left-radius: 5px;
  97. color: gray;
  98. padding: 5px 0 5px 5px;
  99. width: 30px;
  100. z-index: 10;
  101. }
  102. .searchAndIcon input{
  103. background: rgb(201, 201, 201);
  104. border: none;
  105. height: 30px;
  106. border-bottom-right-radius: 5px;
  107. border-top-right-radius: 5px;
  108. font-size: 20px;
  109. padding: 5px 0 5px 10px;
  110. max-width: 200px;
  111. }
  112. .clearButton{
  113. background: none;
  114. border: none;
  115. color: rgb(255, 99, 107);
  116. cursor: pointer;
  117. }
  118. .clearButton:hover{
  119. background: rgb(0, 27, 45);
  120. }
  121. .searchBar select{
  122. background: rgb(201, 201, 201);
  123. font-size: 20px;
  124. border-radius: 5px;
  125. border: none;
  126. height: 30px;
  127. padding: 5px 0;
  128. box-sizing: content-box;
  129. -webkit-appearance: none;
  130. -moz-appearance: none;
  131. 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>");
  132. background-repeat: no-repeat;
  133. background-position-x: 100%;
  134. background-position-y: 50%;
  135. cursor: pointer;
  136. }
  137. .button2Link{
  138. background: none;
  139. border: none;
  140. color: blue;
  141. text-decoration: underline;
  142. font-size: 15px;
  143. margin-top: auto;
  144. cursor: pointer;
  145. }
  146. #sidebarCloser{
  147. width: 30px;
  148. background: rgb(0, 27, 45);
  149. color: white;
  150. margin-right: auto;
  151. border: none;
  152. position: fixed;
  153. top: 15px;
  154. left: 15px;
  155. }
  156. /*
  157. Home Strand
  158. */
  159. #homeStrand{
  160. display: flex;
  161. }
  162. .card{
  163. margin: 0 15px;
  164. border: 1px solid rgba(183, 183, 183, 0.9);
  165. border-radius: 7px;
  166. box-shadow: 1px 2px gray;
  167. flex-grow: 1;
  168. height: 100%;
  169. }
  170. .card > *{
  171. margin: 10px;
  172. }
  173. .card p:first-of-type{
  174. font-size: 14px;
  175. font-weight: bold;
  176. text-align: center;
  177. }
  178. .flexRow{
  179. display: flex;
  180. justify-content: space-around;
  181. width: 100%;
  182. flex-basis: 100px;
  183. flex-grow: 1;
  184. margin: 15px 0;
  185. }
  186. #revenueCard{
  187. display: flex;
  188. flex-direction: column;
  189. justify-content: center;
  190. align-items: center;
  191. }
  192. #revenue{
  193. text-align: center;
  194. font-size: 30px;
  195. font-weight: bold;
  196. }
  197. #revenueChange{
  198. display: flex;
  199. }
  200. #revenueChange > p{
  201. font-weight: 100;
  202. }
  203. #revenueChange img{
  204. height: 15px;
  205. width: 15px;
  206. margin-right: 10px;
  207. }
  208. #graphCard{
  209. flex-grow: 5;
  210. display: flex;
  211. justify-content: center;
  212. }
  213. #inventoryCheckCard{
  214. display: flex;
  215. flex-direction: column;;
  216. justify-content: space-between;
  217. flex-basis: 100px;
  218. flex-grow: 1;
  219. }
  220. #inventoryCheckCard ul{
  221. list-style: none;
  222. }
  223. #inventoryCheckCard button{
  224. margin-left: auto;
  225. }
  226. .ingredientCheck{
  227. display: flex;
  228. align-items: center;
  229. margin: 5px 0;
  230. }
  231. .ingredientCheck p:first-of-type{
  232. width: 40%;
  233. font-weight: 300;
  234. font-size: 15px;
  235. margin-right: 25px;
  236. }
  237. .ingredientCheck p:last-of-type{
  238. width: 15%
  239. }
  240. .numberInput{
  241. display: flex;
  242. justify-content: center;
  243. width: 45%;
  244. margin-right: 25px;
  245. }
  246. .numberInput button{
  247. width: 30%;
  248. font-size: 23px;
  249. background: rgb(0, 27, 45);
  250. border: none;
  251. color: white;
  252. font-weight: bold;
  253. cursor: pointer;
  254. }
  255. .numberInput button:first-of-type{
  256. border-bottom-left-radius: 5px;
  257. border-top-left-radius: 5px;
  258. }
  259. .numberInput button:last-of-type{
  260. border-bottom-right-radius: 5px;
  261. border-top-right-radius: 5px;
  262. }
  263. .numberInput input{
  264. width: 55%;
  265. font-size: 15px;
  266. text-align: center;
  267. }
  268. .numberInput input::-webkit-outer-spin-button,
  269. .numberInput input::-webkit-inner-spin-button {
  270. -webkit-appearance: none;
  271. margin: 0;
  272. }
  273. .numberInput input[type=number] {
  274. -moz-appearance: textfield;
  275. }
  276. #popularIngredientsCard{
  277. display: flex;
  278. flex-direction: column;
  279. align-items: center;
  280. flex-basis: 100px;
  281. flex-grow: 2.5;
  282. }
  283. #popularCanvas{
  284. margin: 0 35px;
  285. }
  286. .notice{
  287. color: red;
  288. font-size: 35px;
  289. font-weight: bold;
  290. }
  291. /*
  292. Ingredients Strand
  293. */
  294. #ingredientsStrand{
  295. display: none;
  296. align-items: center;
  297. height: 100%;
  298. box-sizing: border-box;
  299. }
  300. #categoryList{
  301. align-items:center;
  302. overflow-y: auto;
  303. width: 80%;
  304. }
  305. .categoryDiv > div:first-of-type{
  306. display: flex;
  307. }
  308. .categoryDiv > div:first-of-type p{
  309. display: flex;
  310. align-items: center;
  311. padding: 20px 0 20px 100px;
  312. background: rgb(240, 252, 255);
  313. border: 1px solid gray;
  314. border-radius: 5px;
  315. margin-right: 25px;
  316. flex-grow: 1;
  317. }
  318. .categoryDiv > div:first-of-type button{
  319. padding: 10px;
  320. background: rgb(240, 252, 255);
  321. border: 1px solid black;
  322. border-radius: 5px;
  323. width: 75px;
  324. height: 75px;
  325. cursor: pointer;
  326. }
  327. .ingredientsDiv{
  328. flex-direction: column;
  329. }
  330. .ingredient{
  331. display: flex;
  332. width: 50%;
  333. padding: 15px;
  334. margin: auto;
  335. cursor: pointer;
  336. border-radius: 5px;
  337. }
  338. .ingredient:hover{
  339. background: rgb(0, 27, 45);
  340. color: white;
  341. }
  342. .ingredient > *{
  343. width: 33%;
  344. margin-right: 15px;
  345. }
  346. .ingredient > p:last-of-type{
  347. text-align: right;
  348. }
  349. .ingredientSpacer{
  350. border: none;
  351. border-top: 1px dashed black;
  352. margin: auto;
  353. }
  354. /*
  355. Recipe Book Strand
  356. */
  357. #recipeBookStrand{
  358. display: none;
  359. align-items: center;
  360. }
  361. #recipeBookStrand .searchBar{
  362. width: 50%;
  363. }
  364. #recipeSearch{
  365. width: 50%;
  366. }
  367. #recipeSelect{
  368. width: 25%;
  369. }
  370. #recipeList{
  371. display: flex;
  372. flex-direction: column;
  373. align-items: center;
  374. width: 50%;
  375. overflow-y: auto;
  376. }
  377. /*
  378. Analytics Strand
  379. */
  380. .analContent{
  381. display: flex;
  382. justify-content: space-around;
  383. align-items:center;
  384. padding: 15px;
  385. box-sizing: border-box;
  386. height: 90%;
  387. }
  388. .itemsList{
  389. list-style-type: none;
  390. width: 15%;
  391. max-height: 95%;
  392. overflow-y: auto;
  393. }
  394. .itemButton{
  395. background: rgb(0, 27, 45);
  396. color: white;
  397. border-radius: 5px;
  398. padding: 5px;
  399. margin: 2px;
  400. width: 90%;
  401. text-align: center;
  402. cursor: pointer;
  403. }
  404. .itemButton:hover{
  405. background: rgb(201, 201, 201);
  406. color: black;
  407. }
  408. .analItemActive{
  409. background: rgb(179, 191, 209);
  410. cursor: default;
  411. }
  412. .analData{
  413. display: flex;
  414. flex-direction: column;
  415. justify-content: space-around;
  416. width: 85%;
  417. height: 100%;
  418. }
  419. #itemUseGraph{
  420. padding: 10px;
  421. height: 60%;
  422. flex-grow: 0;
  423. }
  424. .dataRow{
  425. display: flex;
  426. justify-content: space-around;
  427. height: 15%;
  428. }
  429. .analCard{
  430. display: flex;
  431. flex-direction: column;
  432. justify-content: space-around;
  433. }
  434. /*
  435. Orders Strand
  436. */
  437. #ordersStrand{
  438. display: none;
  439. align-items: center;
  440. }
  441. #orderList{
  442. width: 50%;
  443. margin-top: 50px;
  444. overflow-y: auto;
  445. }
  446. .filterForm{
  447. padding: 5px;
  448. margin: 0;
  449. align-items: center;
  450. max-height: 150px;
  451. }
  452. .filterForm > div{
  453. display: flex;
  454. justify-content: space-around;
  455. width: 100%;
  456. }
  457. .filterForm input[type=submit]{
  458. max-height: 30px;
  459. padding: 0;
  460. font-size: 15px;
  461. }
  462. /*
  463. Transactions Strand
  464. */
  465. .transactions{
  466. display: none;
  467. align-items: center;
  468. }
  469. .transactionsList{
  470. width: 50%;
  471. overflow-y: auto;
  472. margin-top: 50px;
  473. }
  474. #transactionFilter{
  475. padding: 5px;
  476. margin: 0;
  477. align-items: center;
  478. max-height: 150px;
  479. }
  480. #transactionFilter > div{
  481. display: flex;
  482. justify-content: space-around;
  483. width: 100%;
  484. }
  485. .dropdown{
  486. display: flex;
  487. flex-direction: column;
  488. align-items: center;
  489. position: relative;
  490. margin: 0;
  491. }
  492. .dropdown button{
  493. display: flex;
  494. align-items: center;
  495. justify-content: center;
  496. height: 25px;
  497. width: 25px;
  498. border-radius: 5px;
  499. border: 1px solid black;
  500. background: none;
  501. cursor: pointer;
  502. }
  503. .dropdownHead{
  504. display: flex;
  505. }
  506. .dropdown button:hover{
  507. background: rgb(0, 27, 45);
  508. color: white;
  509. }
  510. .dropdownContents{
  511. text-align: left;
  512. position: absolute;
  513. top: 25px;
  514. background: rgb(240, 252, 255);
  515. z-index: 1;
  516. padding: 2px;
  517. border: 1px solid black;
  518. border-radius: 5px;
  519. padding: 5px;
  520. white-space: nowrap;
  521. }
  522. .dropDownContents label{
  523. margin: 0;
  524. }
  525. @media screen and (max-width: 1000px){
  526. body{
  527. flex-direction: column;
  528. background: rgb(0, 27, 45);
  529. color: white;
  530. }
  531. .contentBlock{
  532. padding: 0;
  533. }
  534. .banner{
  535. display: none;
  536. }
  537. .strandHead{
  538. padding: 0;
  539. }
  540. .strandTitle{
  541. margin-top: 35px;
  542. }
  543. .mobileHide{
  544. display: none;
  545. }
  546. .itemDisplay{
  547. color: black;
  548. padding: 5px;
  549. margin-top: 2px;
  550. margin-bottom: 2px;
  551. }
  552. .itemDisplay:hover{
  553. background: rgb(240, 252, 255);
  554. color: black;
  555. }
  556. .smallItemDisplay{
  557. color: black;
  558. }
  559. .filterForm{
  560. display: none;
  561. }
  562. /*
  563. Home
  564. */
  565. .card{
  566. margin: 5px 10px;
  567. background: white;
  568. color: black;
  569. }
  570. #inventoryCheckCard{
  571. display: none;
  572. }
  573. #popularIngredientsCard{
  574. padding-bottom: 10px;
  575. }
  576. .flexRow{
  577. flex-direction: column;
  578. margin: 0;
  579. }
  580. /*
  581. Ingredients
  582. */
  583. #categoryList{
  584. width: 95%;
  585. color: black;
  586. }
  587. #ingredientSearch{
  588. border-radius: 5px;
  589. }
  590. .categoryDiv > div:first-of-type p{
  591. padding: 5px 0 5px 5px;
  592. }
  593. .categoryDiv div:first-of-type button{
  594. height: 50px;
  595. width: 50px;
  596. }
  597. .ingredient{
  598. color: white;
  599. width: 75%;
  600. border: 2px solid rgb(201, 201, 201);
  601. padding: 5px;
  602. margin-top: 5px;
  603. margin-bottom: 5px;
  604. box-shadow: 1px 1px gray;
  605. }
  606. .ingredient > *{
  607. width: 50%;
  608. }
  609. /*
  610. Recipe Book
  611. */
  612. .searchBar{
  613. padding: 0;
  614. }
  615. .searchAndIcon{
  616. width: 100%;
  617. }
  618. #recipeSearch{
  619. border-radius: 5px;
  620. width: 100%;
  621. }
  622. #recipeList{
  623. width: 95%;
  624. }
  625. /*
  626. Orders
  627. */
  628. #orderList{
  629. width: 95%;
  630. }
  631. /*
  632. Transactions
  633. */
  634. .transactionsList{
  635. width: 100%;
  636. }
  637. }