dashboard.css 16 KB

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