dashboard.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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: 85%;
  463. height: 100%;
  464. }
  465. #itemUseGraph{
  466. padding: 10px;
  467. height: 60%;
  468. flex-grow: 0;
  469. }
  470. .dataRow{
  471. display: flex;
  472. justify-content: space-around;
  473. height: 15%;
  474. }
  475. .analCard{
  476. display: flex;
  477. flex-direction: column;
  478. justify-content: space-around;
  479. }
  480. #analRecipeContent{
  481. display: flex;
  482. justify-content: space-around;
  483. align-items: center;
  484. padding: 15px;
  485. box-sizing: border-box;
  486. height: 90%;
  487. }
  488. /*
  489. Orders Strand
  490. */
  491. #ordersStrand{
  492. display: none;
  493. align-items: center;
  494. }
  495. #orderList{
  496. width: 50%;
  497. margin-top: 50px;
  498. overflow-y: auto;
  499. }
  500. .filterForm{
  501. padding: 5px;
  502. margin: 0;
  503. align-items: center;
  504. max-height: 150px;
  505. }
  506. .filterForm > div{
  507. display: flex;
  508. justify-content: space-around;
  509. width: 100%;
  510. }
  511. .filterForm input[type=submit]{
  512. max-height: 30px;
  513. padding: 0;
  514. font-size: 15px;
  515. }
  516. /*
  517. Transactions Strand
  518. */
  519. .transactions{
  520. display: none;
  521. align-items: center;
  522. }
  523. .transactionsList{
  524. width: 50%;
  525. overflow-y: auto;
  526. margin-top: 50px;
  527. }
  528. #transactionFilter{
  529. padding: 5px;
  530. margin: 0;
  531. align-items: center;
  532. max-height: 150px;
  533. }
  534. #transactionFilter > div{
  535. display: flex;
  536. justify-content: space-around;
  537. width: 100%;
  538. }
  539. .dropdown{
  540. display: flex;
  541. flex-direction: column;
  542. align-items: center;
  543. position: relative;
  544. margin: 0;
  545. }
  546. .dropdown button{
  547. display: flex;
  548. align-items: center;
  549. justify-content: center;
  550. height: 25px;
  551. width: 25px;
  552. border-radius: 5px;
  553. border: 1px solid black;
  554. background: none;
  555. cursor: pointer;
  556. }
  557. .dropdownHead{
  558. display: flex;
  559. }
  560. .dropdown button:hover{
  561. background: rgb(0, 27, 45);
  562. color: white;
  563. }
  564. .dropdownContents{
  565. text-align: left;
  566. position: absolute;
  567. top: 25px;
  568. background: rgb(240, 252, 255);
  569. z-index: 1;
  570. padding: 2px;
  571. border: 1px solid black;
  572. border-radius: 5px;
  573. padding: 5px;
  574. white-space: nowrap;
  575. }
  576. .dropDownContents label{
  577. margin: 0;
  578. }
  579. @media screen and (max-width: 1000px){
  580. body{
  581. flex-direction: column;
  582. background: rgb(0, 27, 45);
  583. color: white;
  584. }
  585. .contentBlock{
  586. padding: 0;
  587. }
  588. .banner{
  589. display: none;
  590. }
  591. .strandHead{
  592. padding: 0;
  593. }
  594. .strandTitle{
  595. margin-top: 35px;
  596. }
  597. .mobileHide{
  598. display: none;
  599. }
  600. .itemDisplay{
  601. color: black;
  602. padding: 5px;
  603. margin-top: 2px;
  604. margin-bottom: 2px;
  605. }
  606. .itemDisplay:hover{
  607. background: rgb(240, 252, 255);
  608. color: black;
  609. }
  610. .smallItemDisplay{
  611. color: black;
  612. }
  613. .filterForm{
  614. display: none;
  615. }
  616. /*
  617. Home
  618. */
  619. .card{
  620. margin: 5px 10px;
  621. background: white;
  622. color: black;
  623. }
  624. #inventoryCheckCard{
  625. display: none;
  626. }
  627. #popularIngredientsCard{
  628. padding-bottom: 10px;
  629. }
  630. .flexRow{
  631. flex-direction: column;
  632. margin: 0;
  633. }
  634. /*
  635. Ingredients
  636. */
  637. #categoryList{
  638. width: 95%;
  639. color: black;
  640. }
  641. #ingredientSearch{
  642. border-radius: 5px;
  643. }
  644. .categoryDiv > div:first-of-type p{
  645. padding: 5px 0 5px 5px;
  646. }
  647. .categoryDiv div:first-of-type button{
  648. height: 50px;
  649. width: 50px;
  650. }
  651. .ingredient{
  652. color: white;
  653. width: 75%;
  654. border: 2px solid rgb(201, 201, 201);
  655. padding: 5px;
  656. margin-top: 5px;
  657. margin-bottom: 5px;
  658. box-shadow: 1px 1px gray;
  659. }
  660. .ingredient > *{
  661. width: 50%;
  662. }
  663. /*
  664. Recipe Book
  665. */
  666. .searchBar{
  667. padding: 0;
  668. }
  669. .searchAndIcon{
  670. width: 100%;
  671. }
  672. #recipeSearch{
  673. border-radius: 5px;
  674. width: 100%;
  675. }
  676. #recipeList{
  677. width: 95%;
  678. }
  679. /*
  680. Orders
  681. */
  682. #orderList{
  683. width: 95%;
  684. }
  685. /*
  686. Transactions
  687. */
  688. .transactionsList{
  689. width: 100%;
  690. }
  691. }