dashboard.css 16 KB

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