dashboard.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  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. .buttonBox{
  157. display: flex;
  158. justify-content: space-around;
  159. margin-top: 50px;
  160. }
  161. .buttonBox > *{
  162. margin-right: 10px;
  163. }
  164. .choosable{
  165. display: flex;
  166. justify-content: space-around;
  167. align-items: center;
  168. background: rgb(0, 27, 45);
  169. color: white;
  170. border-radius: 5px;
  171. margin: 2px;
  172. padding: 5px;
  173. text-align: center;
  174. cursor: pointer;
  175. }
  176. .choosable.tall{
  177. padding: 15px;
  178. }
  179. .choosable:hover{
  180. background: rgb(201, 201, 201);
  181. color: black;
  182. }
  183. .choosable.active{
  184. background: rgb(179, 191, 209);
  185. color: white;
  186. }
  187. /*
  188. Home Strand
  189. */
  190. #homeStrand{
  191. display: flex;
  192. }
  193. .card{
  194. margin: 0 15px;
  195. border: 1px solid rgba(183, 183, 183, 0.9);
  196. border-radius: 7px;
  197. box-shadow: 1px 2px gray;
  198. flex-grow: 1;
  199. height: 100%;
  200. }
  201. .card > *{
  202. margin: 10px;
  203. }
  204. .card p:first-of-type{
  205. font-size: 14px;
  206. font-weight: bold;
  207. text-align: center;
  208. }
  209. .flexRow{
  210. display: flex;
  211. justify-content: space-around;
  212. width: 100%;
  213. flex-basis: 100px;
  214. flex-grow: 1;
  215. margin: 15px 0;
  216. }
  217. #revenueCard{
  218. display: flex;
  219. flex-direction: column;
  220. justify-content: center;
  221. align-items: center;
  222. }
  223. #revenue{
  224. text-align: center;
  225. font-size: 30px;
  226. font-weight: bold;
  227. }
  228. #revenueChange{
  229. display: flex;
  230. }
  231. #revenueChange > p{
  232. font-weight: 100;
  233. }
  234. #revenueChange img{
  235. height: 15px;
  236. width: 15px;
  237. margin-right: 10px;
  238. }
  239. #graphCard{
  240. flex-grow: 5;
  241. display: flex;
  242. justify-content: center;
  243. }
  244. #inventoryCheckCard{
  245. display: flex;
  246. flex-direction: column;;
  247. justify-content: space-between;
  248. flex-basis: 100px;
  249. flex-grow: 1;
  250. }
  251. #inventoryCheckCard ul{
  252. list-style: none;
  253. }
  254. #inventoryCheckCard button{
  255. margin-left: auto;
  256. }
  257. .ingredientCheck{
  258. display: flex;
  259. align-items: center;
  260. margin: 5px 0;
  261. }
  262. .ingredientCheck p:first-of-type{
  263. width: 40%;
  264. font-weight: 300;
  265. font-size: 15px;
  266. margin-right: 25px;
  267. }
  268. .ingredientCheck p:last-of-type{
  269. width: 20%
  270. }
  271. .numberInput{
  272. display: flex;
  273. justify-content: center;
  274. width: 40%;
  275. margin-right: 25px;
  276. }
  277. .numberInput button{
  278. width: 30%;
  279. font-size: 23px;
  280. background: rgb(0, 27, 45);
  281. border: none;
  282. color: white;
  283. font-weight: bold;
  284. cursor: pointer;
  285. }
  286. .numberInput button:first-of-type{
  287. border-bottom-left-radius: 5px;
  288. border-top-left-radius: 5px;
  289. }
  290. .numberInput button:last-of-type{
  291. border-bottom-right-radius: 5px;
  292. border-top-right-radius: 5px;
  293. }
  294. .numberInput input{
  295. width: 55%;
  296. font-size: 15px;
  297. text-align: center;
  298. }
  299. .numberInput input::-webkit-outer-spin-button,
  300. .numberInput input::-webkit-inner-spin-button {
  301. -webkit-appearance: none;
  302. margin: 0;
  303. }
  304. .numberInput input[type=number] {
  305. -moz-appearance: textfield;
  306. }
  307. #popularIngredientsCard{
  308. display: flex;
  309. flex-direction: column;
  310. align-items: center;
  311. flex-basis: 100px;
  312. flex-grow: 2.5;
  313. padding: 5px;
  314. box-sizing: border-box;
  315. }
  316. #popularCanvas{
  317. margin: 0 35px;
  318. }
  319. .notice{
  320. color: red;
  321. font-size: 35px;
  322. font-weight: bold;
  323. }
  324. /*
  325. Ingredients Strand
  326. */
  327. #ingredientsStrand{
  328. display: none;
  329. align-items: center;
  330. height: 100%;
  331. box-sizing: border-box;
  332. }
  333. #categoryList{
  334. align-items:center;
  335. overflow-y: auto;
  336. width: 80%;
  337. }
  338. .categoryDiv{
  339. display: flex;
  340. flex-direction: column;
  341. align-items: center;
  342. }
  343. .categoryDiv > div:first-of-type{
  344. display: flex;
  345. cursor: pointer;
  346. width: 100%;
  347. }
  348. .categoryDiv > div:first-of-type p{
  349. display: flex;
  350. align-items: center;
  351. padding: 20px 0 20px 100px;
  352. background: rgb(240, 252, 255);
  353. border: 1px solid gray;
  354. border-radius: 5px;
  355. margin-right: 25px;
  356. flex-grow: 1;
  357. }
  358. .categoryDiv > div:first-of-type button{
  359. padding: 10px;
  360. background: rgb(240, 252, 255);
  361. border: 1px solid black;
  362. border-radius: 5px;
  363. width: 75px;
  364. height: 75px;
  365. cursor: pointer;
  366. }
  367. .ingredientsDiv{
  368. flex-direction: column;
  369. width: 50%;
  370. }
  371. .ingredientSpacer{
  372. border: none;
  373. border-top: 1px dashed black;
  374. margin: auto;
  375. }
  376. /*
  377. Recipe Book Strand
  378. */
  379. #recipeBookStrand{
  380. display: none;
  381. align-items: center;
  382. }
  383. #recipeBookStrand .searchBar{
  384. width: 50%;
  385. }
  386. #recipeSearch{
  387. width: 50%;
  388. }
  389. #recipeSelect{
  390. width: 25%;
  391. }
  392. #recipeList{
  393. display: flex;
  394. flex-direction: column;
  395. align-items: center;
  396. width: 50%;
  397. overflow-y: auto;
  398. }
  399. /*
  400. Analytics Strand
  401. */
  402. .switch{
  403. position: relative;
  404. display: inline-block;
  405. width: 239px;
  406. height: 34px;
  407. border: 3px solid rgb(0, 27, 45);
  408. color: white;
  409. }
  410. .switch input{
  411. opacity: 0;
  412. width: 0;
  413. height: 0;
  414. }
  415. .switch input:focus + .slider{
  416. box-shadow: 0 0 1px #2196F3;
  417. }
  418. .switch input:checked + .slider:before {
  419. -webkit-transform: translateX(105px);
  420. -ms-transform: translateX(92px);
  421. transform: translateX(125px);
  422. }
  423. .slider{
  424. display: flex;
  425. justify-content: space-between;
  426. align-items: center;
  427. position: absolute;
  428. cursor: pointer;
  429. top: 0;
  430. left: 0;
  431. right: 0;
  432. bottom: 0;
  433. padding: 0 24px 0 5px;
  434. background: rgb(255, 99, 107);
  435. transition: 0.2s;
  436. }
  437. .slider:before{
  438. position: absolute;
  439. content: "";
  440. height: 30px;
  441. width: 110px;
  442. left: 1px;
  443. bottom: 1px;
  444. background: rgba(255, 255, 255, 0.6);
  445. border: 1px solid rgb(0, 27, 45);
  446. transition: 0.2s;
  447. }
  448. .analContent{
  449. display: flex;
  450. justify-content: space-around;
  451. align-items:center;
  452. padding: 15px;
  453. box-sizing: border-box;
  454. height: 90%;
  455. }
  456. .itemsList{
  457. list-style-type: none;
  458. width: 15%;
  459. max-height: 95%;
  460. overflow-y: auto;
  461. }
  462. .itemButton{
  463. background: rgb(0, 27, 45);
  464. color: white;
  465. border-radius: 5px;
  466. padding: 5px;
  467. margin: 2px;
  468. width: 90%;
  469. text-align: center;
  470. cursor: pointer;
  471. }
  472. .itemButton:hover{
  473. background: rgb(201, 201, 201);
  474. color: black;
  475. }
  476. .analItemActive{
  477. background: rgb(179, 191, 209);
  478. cursor: default;
  479. }
  480. .analData{
  481. display: flex;
  482. flex-direction: column;
  483. justify-content: space-around;
  484. width: 100%;
  485. height: 100%;
  486. }
  487. #itemUseGraph{
  488. padding: 10px;
  489. height: 60%;
  490. flex-basis: 100px;
  491. flex-grow: 5;
  492. }
  493. .dataRow{
  494. display: flex;
  495. justify-content: space-between;
  496. flex-basis: 150px;
  497. flex-grow: 0;
  498. }
  499. .analCard{
  500. display: flex;
  501. flex-direction: column;
  502. justify-content: space-around;
  503. margin: 5px;
  504. height: inherit;
  505. }
  506. .analCard > *{
  507. margin: 0;
  508. }
  509. #analRecipeContent{
  510. display: flex;
  511. justify-content: space-around;
  512. align-items: center;
  513. padding: 15px;
  514. box-sizing: border-box;
  515. height: 90%;
  516. }
  517. /*
  518. Orders Strand
  519. */
  520. #ordersStrand{
  521. display: none;
  522. align-items: center;
  523. }
  524. #orderList{
  525. width: 50%;
  526. margin-top: 50px;
  527. overflow-y: auto;
  528. }
  529. .filterForm{
  530. padding: 5px;
  531. margin: 0;
  532. align-items: center;
  533. max-height: 150px;
  534. }
  535. .filterForm > div{
  536. display: flex;
  537. justify-content: space-around;
  538. width: 100%;
  539. }
  540. .filterForm input[type=submit]{
  541. max-height: 30px;
  542. padding: 0;
  543. font-size: 15px;
  544. }
  545. /*
  546. Transactions Strand
  547. */
  548. .transactions{
  549. display: none;
  550. align-items: center;
  551. }
  552. .transactionsList{
  553. width: 50%;
  554. overflow-y: auto;
  555. margin-top: 50px;
  556. }
  557. #transactionFilter{
  558. padding: 5px;
  559. margin: 0;
  560. align-items: center;
  561. max-height: 150px;
  562. }
  563. #transactionFilter > div{
  564. display: flex;
  565. justify-content: space-around;
  566. width: 100%;
  567. }
  568. .dropdown{
  569. display: flex;
  570. flex-direction: column;
  571. align-items: center;
  572. position: relative;
  573. margin: 0;
  574. }
  575. .dropdown button{
  576. display: flex;
  577. align-items: center;
  578. justify-content: center;
  579. height: 25px;
  580. width: 25px;
  581. border-radius: 5px;
  582. border: 1px solid black;
  583. background: none;
  584. cursor: pointer;
  585. }
  586. .dropdownHead{
  587. display: flex;
  588. }
  589. .dropdown button:hover{
  590. background: rgb(0, 27, 45);
  591. color: white;
  592. }
  593. .dropdownContents{
  594. text-align: left;
  595. position: absolute;
  596. top: 25px;
  597. background: rgb(240, 252, 255);
  598. z-index: 1;
  599. padding: 2px;
  600. border: 1px solid black;
  601. border-radius: 5px;
  602. padding: 5px;
  603. white-space: nowrap;
  604. }
  605. .dropDownContents label{
  606. margin: 0;
  607. }
  608. @media screen and (max-width: 1000px){
  609. body{
  610. flex-direction: column;
  611. background: rgb(0, 27, 45);
  612. color: white;
  613. }
  614. .contentBlock{
  615. padding: 0;
  616. }
  617. .banner{
  618. display: none;
  619. }
  620. .strandHead{
  621. padding: 0;
  622. }
  623. .strandTitle{
  624. margin-top: 35px;
  625. }
  626. .mobileHide{
  627. display: none;
  628. }
  629. .itemDisplay{
  630. color: black;
  631. padding: 5px;
  632. margin-top: 2px;
  633. margin-bottom: 2px;
  634. }
  635. .itemDisplay:hover{
  636. background: rgb(240, 252, 255);
  637. color: black;
  638. }
  639. .smallItemDisplay{
  640. color: black;
  641. }
  642. .filterForm{
  643. display: none;
  644. }
  645. /*
  646. Home
  647. */
  648. .card{
  649. margin: 5px 10px;
  650. background: white;
  651. color: black;
  652. }
  653. #inventoryCheckCard{
  654. display: none;
  655. }
  656. #popularIngredientsCard{
  657. padding-bottom: 10px;
  658. }
  659. .flexRow{
  660. flex-direction: column;
  661. margin: 0;
  662. }
  663. /*
  664. Ingredients
  665. */
  666. #categoryList{
  667. width: 95%;
  668. color: black;
  669. }
  670. #ingredientSearch{
  671. border-radius: 5px;
  672. }
  673. .categoryDiv > div:first-of-type p{
  674. padding: 5px 0 5px 5px;
  675. }
  676. .categoryDiv div:first-of-type button{
  677. height: 50px;
  678. width: 50px;
  679. }
  680. .ingredient{
  681. color: white;
  682. width: 75%;
  683. border: 2px solid rgb(201, 201, 201);
  684. padding: 5px;
  685. margin-top: 5px;
  686. margin-bottom: 5px;
  687. box-shadow: 1px 1px gray;
  688. }
  689. .ingredient > *{
  690. width: 50%;
  691. }
  692. /*
  693. Recipe Book
  694. */
  695. .searchBar{
  696. padding: 0;
  697. }
  698. .searchAndIcon{
  699. width: 100%;
  700. }
  701. #recipeSearch{
  702. border-radius: 5px;
  703. width: 100%;
  704. }
  705. #recipeList{
  706. width: 95%;
  707. }
  708. /*
  709. Orders
  710. */
  711. #orderList{
  712. width: 95%;
  713. }
  714. /*
  715. Transactions
  716. */
  717. .transactionsList{
  718. width: 100%;
  719. }
  720. }