dashboard.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  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. .switch{
  381. position: relative;
  382. display: inline-block;
  383. width: 239px;
  384. height: 34px;
  385. border: 3px solid rgb(0, 27, 45);
  386. color: white;
  387. }
  388. .switch input{
  389. opacity: 0;
  390. width: 0;
  391. height: 0;
  392. }
  393. .switch input:focus + .slider{
  394. box-shadow: 0 0 1px #2196F3;
  395. }
  396. .switch input:checked + .slider:before {
  397. -webkit-transform: translateX(105px);
  398. -ms-transform: translateX(92px);
  399. transform: translateX(125px);
  400. }
  401. .slider{
  402. display: flex;
  403. justify-content: space-between;
  404. align-items: center;
  405. position: absolute;
  406. cursor: pointer;
  407. top: 0;
  408. left: 0;
  409. right: 0;
  410. bottom: 0;
  411. padding: 0 24px 0 5px;
  412. background: rgb(255, 99, 107);
  413. transition: 0.2s;
  414. }
  415. .slider:before{
  416. position: absolute;
  417. content: "";
  418. height: 30px;
  419. width: 110px;
  420. left: 1px;
  421. bottom: 1px;
  422. background: rgba(255, 255, 255, 0.6);
  423. border: 1px solid rgb(0, 27, 45);
  424. transition: 0.2s;
  425. }
  426. .analContent{
  427. display: flex;
  428. justify-content: space-around;
  429. align-items:center;
  430. padding: 15px;
  431. box-sizing: border-box;
  432. height: 90%;
  433. }
  434. .itemsList{
  435. list-style-type: none;
  436. width: 15%;
  437. max-height: 95%;
  438. overflow-y: auto;
  439. }
  440. .itemButton{
  441. background: rgb(0, 27, 45);
  442. color: white;
  443. border-radius: 5px;
  444. padding: 5px;
  445. margin: 2px;
  446. width: 90%;
  447. text-align: center;
  448. cursor: pointer;
  449. }
  450. .itemButton:hover{
  451. background: rgb(201, 201, 201);
  452. color: black;
  453. }
  454. .analItemActive{
  455. background: rgb(179, 191, 209);
  456. cursor: default;
  457. }
  458. .analData{
  459. display: flex;
  460. flex-direction: column;
  461. justify-content: space-around;
  462. width: 100%;
  463. height: 100%;
  464. }
  465. #itemUseGraph{
  466. padding: 10px;
  467. height: 60%;
  468. flex-basis: 100px;
  469. flex-grow: 5;
  470. }
  471. .dataRow{
  472. display: flex;
  473. justify-content: space-between;
  474. flex-basis: 150px;
  475. flex-grow: 0;
  476. }
  477. .analCard{
  478. display: flex;
  479. flex-direction: column;
  480. justify-content: space-around;
  481. margin: 5px;
  482. height: inherit;
  483. }
  484. .analCard > *{
  485. margin: 0;
  486. }
  487. #analRecipeContent{
  488. display: flex;
  489. justify-content: space-around;
  490. align-items: center;
  491. padding: 15px;
  492. box-sizing: border-box;
  493. height: 90%;
  494. }
  495. /*
  496. Orders Strand
  497. */
  498. #ordersStrand{
  499. display: none;
  500. align-items: center;
  501. }
  502. #orderList{
  503. width: 50%;
  504. margin-top: 50px;
  505. overflow-y: auto;
  506. }
  507. .filterForm{
  508. padding: 5px;
  509. margin: 0;
  510. align-items: center;
  511. max-height: 150px;
  512. }
  513. .filterForm > div{
  514. display: flex;
  515. justify-content: space-around;
  516. width: 100%;
  517. }
  518. .filterForm input[type=submit]{
  519. max-height: 30px;
  520. padding: 0;
  521. font-size: 15px;
  522. }
  523. /*
  524. Transactions Strand
  525. */
  526. .transactions{
  527. display: none;
  528. align-items: center;
  529. }
  530. .transactionsList{
  531. width: 50%;
  532. overflow-y: auto;
  533. margin-top: 50px;
  534. }
  535. #transactionFilter{
  536. padding: 5px;
  537. margin: 0;
  538. align-items: center;
  539. max-height: 150px;
  540. }
  541. #transactionFilter > div{
  542. display: flex;
  543. justify-content: space-around;
  544. width: 100%;
  545. }
  546. .dropdown{
  547. display: flex;
  548. flex-direction: column;
  549. align-items: center;
  550. position: relative;
  551. margin: 0;
  552. }
  553. .dropdown button{
  554. display: flex;
  555. align-items: center;
  556. justify-content: center;
  557. height: 25px;
  558. width: 25px;
  559. border-radius: 5px;
  560. border: 1px solid black;
  561. background: none;
  562. cursor: pointer;
  563. }
  564. .dropdownHead{
  565. display: flex;
  566. }
  567. .dropdown button:hover{
  568. background: rgb(0, 27, 45);
  569. color: white;
  570. }
  571. .dropdownContents{
  572. text-align: left;
  573. position: absolute;
  574. top: 25px;
  575. background: rgb(240, 252, 255);
  576. z-index: 1;
  577. padding: 2px;
  578. border: 1px solid black;
  579. border-radius: 5px;
  580. padding: 5px;
  581. white-space: nowrap;
  582. }
  583. .dropDownContents label{
  584. margin: 0;
  585. }
  586. @media screen and (max-width: 1000px){
  587. body{
  588. flex-direction: column;
  589. background: rgb(0, 27, 45);
  590. color: white;
  591. }
  592. .contentBlock{
  593. padding: 0;
  594. }
  595. .banner{
  596. display: none;
  597. }
  598. .strandHead{
  599. padding: 0;
  600. }
  601. .strandTitle{
  602. margin-top: 35px;
  603. }
  604. .mobileHide{
  605. display: none;
  606. }
  607. .itemDisplay{
  608. color: black;
  609. padding: 5px;
  610. margin-top: 2px;
  611. margin-bottom: 2px;
  612. }
  613. .itemDisplay:hover{
  614. background: rgb(240, 252, 255);
  615. color: black;
  616. }
  617. .smallItemDisplay{
  618. color: black;
  619. }
  620. .filterForm{
  621. display: none;
  622. }
  623. /*
  624. Home
  625. */
  626. .card{
  627. margin: 5px 10px;
  628. background: white;
  629. color: black;
  630. }
  631. #inventoryCheckCard{
  632. display: none;
  633. }
  634. #popularIngredientsCard{
  635. padding-bottom: 10px;
  636. }
  637. .flexRow{
  638. flex-direction: column;
  639. margin: 0;
  640. }
  641. /*
  642. Ingredients
  643. */
  644. #categoryList{
  645. width: 95%;
  646. color: black;
  647. }
  648. #ingredientSearch{
  649. border-radius: 5px;
  650. }
  651. .categoryDiv > div:first-of-type p{
  652. padding: 5px 0 5px 5px;
  653. }
  654. .categoryDiv div:first-of-type button{
  655. height: 50px;
  656. width: 50px;
  657. }
  658. .ingredient{
  659. color: white;
  660. width: 75%;
  661. border: 2px solid rgb(201, 201, 201);
  662. padding: 5px;
  663. margin-top: 5px;
  664. margin-bottom: 5px;
  665. box-shadow: 1px 1px gray;
  666. }
  667. .ingredient > *{
  668. width: 50%;
  669. }
  670. /*
  671. Recipe Book
  672. */
  673. .searchBar{
  674. padding: 0;
  675. }
  676. .searchAndIcon{
  677. width: 100%;
  678. }
  679. #recipeSearch{
  680. border-radius: 5px;
  681. width: 100%;
  682. }
  683. #recipeList{
  684. width: 95%;
  685. }
  686. /*
  687. Orders
  688. */
  689. #orderList{
  690. width: 95%;
  691. }
  692. /*
  693. Transactions
  694. */
  695. .transactionsList{
  696. width: 100%;
  697. }
  698. }