dashboard.css 16 KB

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