dashboard.css 16 KB

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