dashboard.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  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. .mobileMenuSelector{
  23. display: none;
  24. position: fixed;
  25. left: 13px;
  26. top: -2px;
  27. font-size: 40px;
  28. }
  29. .mobileMenuSelector:active{
  30. color: rgb(255, 99, 107);
  31. }
  32. /*
  33. Multi-strand use classes
  34. */
  35. .strand{
  36. flex-direction: column;
  37. height: 100vh;
  38. width: 100%;
  39. padding-bottom: 25px;
  40. box-sizing: border-box;
  41. }
  42. .strandHead{
  43. display: flex;
  44. justify-content: space-between;
  45. width: 100%;
  46. padding: 10px 50px 0 50px;
  47. align-items: center;
  48. box-sizing: border-box;
  49. height: 10%;
  50. }
  51. .strandTitle{
  52. text-align: left;
  53. margin: 15px;
  54. padding: 0;
  55. }
  56. #sidebarCloser{
  57. width: 30px;
  58. background: rgb(0, 27, 45);
  59. color: white;
  60. margin-right: auto;
  61. border: none;
  62. position: fixed;
  63. top: 15px;
  64. left: 15px;
  65. }
  66. .buttonBox{
  67. display: flex;
  68. justify-content: space-around;
  69. margin-top: 50px;
  70. }
  71. .buttonBox > *{
  72. margin-right: 10px;
  73. }
  74. .choosable{
  75. display: flex;
  76. justify-content: space-around;
  77. align-items: center;
  78. background: rgb(0, 27, 45);
  79. color: white;
  80. border-radius: 5px;
  81. margin: 2px;
  82. padding: 5px;
  83. text-align: center;
  84. cursor: pointer;
  85. width: 99%;
  86. box-sizing: border-box;
  87. border: none;
  88. font-size: 16px;
  89. }
  90. .choosable.tall{
  91. padding: 15px;
  92. }
  93. .choosable:hover{
  94. background: rgb(201, 201, 201);
  95. color: black;
  96. }
  97. .choosable.active{
  98. background: rgb(179, 191, 209);
  99. color: white;
  100. }
  101. .searchBar{
  102. display: flex;
  103. align-items: center;
  104. margin-bottom: 10px;
  105. }
  106. .searchButton{
  107. padding: 6px;
  108. background: rgb(0, 27, 45);
  109. cursor: pointer;
  110. color: white;
  111. border-top-left-radius: 10px;
  112. border-bottom-left-radius: 10px;
  113. }
  114. .searchButton:hover{
  115. background: rgb(201, 201, 201);
  116. color: black;
  117. }
  118. .searchButton:active{
  119. background: rgb(179, 191, 209);
  120. color: white;
  121. }
  122. .searchInput{
  123. border: 4px solid rgb(0, 27, 45);
  124. font-size: 20px;
  125. border-top-right-radius: 10px;
  126. border-bottom-right-radius: 10px;
  127. padding: 1px 0 1px 4px;
  128. }
  129. .dateRange{
  130. display: flex;
  131. flex-direction: column;
  132. align-items: center;
  133. }
  134. .dateRangeInput{
  135. display: flex;
  136. justify-content: space-between;
  137. }
  138. .dateRangeInput p{
  139. margin: 0 5px;
  140. font-size: 20px;
  141. font-weight: bold;
  142. }
  143. .fileUpload{
  144. background: rgb(240, 252, 255);
  145. padding: 5px;
  146. border-radius: 5px;
  147. font-size: 16px;
  148. }
  149. .fileUpload::file-selector-button{
  150. background: rgb(0, 27, 45);
  151. border-radius: 5px;
  152. color: white;
  153. border: none;
  154. cursor: pointer;
  155. font-size: 18px;
  156. margin: auto 0;
  157. }
  158. .fileUpload::file-selector-button:hover{
  159. background: rgb(201, 201, 201);
  160. color: black;
  161. }
  162. /*
  163. Home Strand
  164. */
  165. #homeStrand{
  166. display: flex;
  167. }
  168. .card{
  169. margin: 0 15px;
  170. border: 1px solid rgba(183, 183, 183, 0.9);
  171. border-radius: 7px;
  172. box-shadow: 1px 2px gray;
  173. flex-grow: 1;
  174. height: 100%;
  175. }
  176. .card > *{
  177. margin: 10px;
  178. }
  179. .card p:first-of-type{
  180. font-size: 14px;
  181. font-weight: bold;
  182. text-align: center;
  183. }
  184. .flexRow{
  185. display: flex;
  186. justify-content: space-around;
  187. width: 100%;
  188. flex-basis: 100px;
  189. flex-grow: 1;
  190. margin: 15px 0;
  191. }
  192. #revenueCard{
  193. display: flex;
  194. flex-direction: column;
  195. justify-content: center;
  196. align-items: center;
  197. }
  198. #revenue{
  199. text-align: center;
  200. font-size: 30px;
  201. font-weight: bold;
  202. }
  203. #revenueChange{
  204. display: flex;
  205. }
  206. #revenueChange > p{
  207. font-weight: 100;
  208. }
  209. #revenueChange img{
  210. height: 15px;
  211. width: 15px;
  212. margin-right: 10px;
  213. }
  214. #graphCard{
  215. flex-grow: 5;
  216. display: flex;
  217. justify-content: center;
  218. }
  219. #inventoryCheckCard{
  220. display: flex;
  221. flex-direction: column;;
  222. justify-content: space-between;
  223. flex-basis: 100px;
  224. flex-grow: 1;
  225. }
  226. #inventoryCheckCard ul{
  227. list-style: none;
  228. }
  229. #inventoryCheckCard button{
  230. margin-left: auto;
  231. }
  232. .ingredientCheck{
  233. display: flex;
  234. align-items: center;
  235. margin: 5px 0;
  236. }
  237. .ingredientCheck p:first-of-type{
  238. width: 40%;
  239. font-weight: 300;
  240. font-size: 15px;
  241. margin-right: 25px;
  242. }
  243. .ingredientCheck p:last-of-type{
  244. width: 20%
  245. }
  246. .numberInput{
  247. display: flex;
  248. justify-content: center;
  249. width: 40%;
  250. margin-right: 25px;
  251. }
  252. .numberInput button{
  253. width: 30%;
  254. font-size: 23px;
  255. background: rgb(0, 27, 45);
  256. border: none;
  257. color: white;
  258. font-weight: bold;
  259. cursor: pointer;
  260. }
  261. .numberInput button:first-of-type{
  262. border-bottom-left-radius: 5px;
  263. border-top-left-radius: 5px;
  264. }
  265. .numberInput button:last-of-type{
  266. border-bottom-right-radius: 5px;
  267. border-top-right-radius: 5px;
  268. }
  269. .numberInput input{
  270. width: 55%;
  271. font-size: 15px;
  272. text-align: center;
  273. }
  274. .numberInput input::-webkit-outer-spin-button,
  275. .numberInput input::-webkit-inner-spin-button {
  276. -webkit-appearance: none;
  277. margin: 0;
  278. }
  279. .numberInput input[type=number] {
  280. -moz-appearance: textfield;
  281. }
  282. #popularIngredientsCard{
  283. display: flex;
  284. flex-direction: column;
  285. align-items: center;
  286. flex-basis: 100px;
  287. flex-grow: 2.5;
  288. padding: 5px;
  289. box-sizing: border-box;
  290. }
  291. #popularCanvas{
  292. margin: 0 35px;
  293. }
  294. .notice{
  295. color: red;
  296. font-size: 35px;
  297. font-weight: bold;
  298. }
  299. /*
  300. Ingredients Strand
  301. */
  302. #ingredientsStrand{
  303. display: none;
  304. align-items: center;
  305. height: 100%;
  306. box-sizing: border-box;
  307. }
  308. #categoryList{
  309. align-items:center;
  310. overflow-y: auto;
  311. width: 80%;
  312. }
  313. .categoryDiv{
  314. display: flex;
  315. flex-direction: column;
  316. align-items: center;
  317. }
  318. .categoryDiv > div:first-of-type{
  319. display: flex;
  320. cursor: pointer;
  321. width: 100%;
  322. }
  323. .categoryDiv > div:first-of-type p{
  324. display: flex;
  325. align-items: center;
  326. padding: 20px 0 20px 100px;
  327. background: rgb(240, 252, 255);
  328. border: 1px solid gray;
  329. border-radius: 5px;
  330. margin-right: 25px;
  331. flex-grow: 1;
  332. }
  333. .categoryDiv > div:first-of-type button{
  334. padding: 10px;
  335. background: rgb(240, 252, 255);
  336. border: 1px solid black;
  337. border-radius: 5px;
  338. width: 75px;
  339. height: 75px;
  340. cursor: pointer;
  341. }
  342. .ingredientsDiv{
  343. flex-direction: column;
  344. width: 50%;
  345. }
  346. .ingredientSpacer{
  347. border: none;
  348. border-top: 1px dashed black;
  349. margin: auto;
  350. }
  351. /*
  352. Recipe Book Strand
  353. */
  354. #recipeBookStrand{
  355. display: none;
  356. align-items: center;
  357. }
  358. #recipeList{
  359. display: flex;
  360. flex-direction: column;
  361. align-items: center;
  362. width: 50%;
  363. overflow-y: auto;
  364. }
  365. /*
  366. Analytics Strand
  367. */
  368. .switch{
  369. position: relative;
  370. display: inline-block;
  371. width: 239px;
  372. height: 34px;
  373. border: 3px solid rgb(0, 27, 45);
  374. color: white;
  375. }
  376. .switch input{
  377. opacity: 0;
  378. width: 0;
  379. height: 0;
  380. }
  381. .switch input:focus + .slider{
  382. box-shadow: 0 0 1px #2196F3;
  383. }
  384. .switch input:checked + .slider:before {
  385. -webkit-transform: translateX(105px);
  386. -ms-transform: translateX(92px);
  387. transform: translateX(125px);
  388. }
  389. .slider{
  390. display: flex;
  391. justify-content: space-between;
  392. align-items: center;
  393. position: absolute;
  394. cursor: pointer;
  395. top: 0;
  396. left: 0;
  397. right: 0;
  398. bottom: 0;
  399. padding: 0 24px 0 5px;
  400. background: rgb(255, 99, 107);
  401. transition: 0.2s;
  402. }
  403. .slider:before{
  404. position: absolute;
  405. content: "";
  406. height: 30px;
  407. width: 110px;
  408. left: 1px;
  409. bottom: 1px;
  410. background: rgba(255, 255, 255, 0.6);
  411. border: 1px solid rgb(0, 27, 45);
  412. transition: 0.2s;
  413. }
  414. .analContent{
  415. display: flex;
  416. justify-content: space-around;
  417. align-items:center;
  418. padding: 15px;
  419. box-sizing: border-box;
  420. height: 90%;
  421. }
  422. .itemsList{
  423. list-style-type: none;
  424. width: 15%;
  425. max-height: 95%;
  426. overflow-y: auto;
  427. }
  428. .analData{
  429. display: flex;
  430. flex-direction: column;
  431. justify-content: space-around;
  432. width: 100%;
  433. height: 100%;
  434. }
  435. #itemUseGraph{
  436. padding: 10px;
  437. height: 60%;
  438. flex-basis: 100px;
  439. flex-grow: 5;
  440. }
  441. .dataRow{
  442. display: flex;
  443. justify-content: space-between;
  444. flex-basis: 150px;
  445. flex-grow: 0;
  446. }
  447. .analCard{
  448. display: flex;
  449. flex-direction: column;
  450. justify-content: space-around;
  451. margin: 5px;
  452. height: inherit;
  453. }
  454. .analCard > *{
  455. margin: 0;
  456. }
  457. #analRecipeContent{
  458. display: flex;
  459. justify-content: space-around;
  460. align-items: center;
  461. padding: 15px;
  462. box-sizing: border-box;
  463. height: 90%;
  464. }
  465. /*
  466. Orders Strand
  467. */
  468. #ordersStrand{
  469. display: none;
  470. align-items: center;
  471. }
  472. #orderList{
  473. width: 50%;
  474. margin-top: 50px;
  475. overflow-y: auto;
  476. }
  477. /*
  478. Transactions Strand
  479. */
  480. .transactions{
  481. display: none;
  482. align-items: center;
  483. }
  484. .transactionsList{
  485. width: 50%;
  486. overflow-y: auto;
  487. margin-top: 50px;
  488. }
  489. /*
  490. Modal
  491. */
  492. .modal{
  493. flex-direction: column;
  494. justify-content: center;
  495. align-items: center;
  496. position: fixed;
  497. height: 100vh;
  498. width: 100vw;
  499. background: rgba(0, 27, 45, 0.75);
  500. }
  501. .modalBox{
  502. display: flex;
  503. flex-direction: column;
  504. align-items: flex-end;
  505. }
  506. .modalBox svg{
  507. color: rgb(255, 99, 107);
  508. cursor: pointer;
  509. }
  510. .modalSpreadsheetUpload{
  511. flex-direction: column;
  512. align-items: center;
  513. justify-content: space-between;
  514. margin-top: 0;
  515. padding: 25px;
  516. }
  517. .modalSpreadsheetUpload > *{
  518. margin-top: 15px;
  519. }
  520. @media screen and (orientation: portrait){
  521. @media screen and (max-width: 1400px){
  522. body{
  523. background:rgb(0, 27, 45);
  524. }
  525. .button{
  526. padding: 3px 0;
  527. }
  528. .mobileMenuSelector{
  529. color:rgb(240, 252, 255);
  530. z-index: 10;
  531. }
  532. .strandTitle{
  533. color: white;
  534. position: fixed;
  535. top: 15px;
  536. left: 0;
  537. right: 0;
  538. margin: 0;
  539. text-align: center;
  540. font-size: 20px;
  541. }
  542. .searchInput{
  543. border-radius: 10px;
  544. }
  545. .choosable{
  546. background:rgb(201, 201, 201);
  547. color: black;
  548. }
  549. /* HOME */
  550. #inventoryCheckCard{
  551. display: none;
  552. }
  553. #graphCard{
  554. display: none;
  555. }
  556. .card{
  557. background: white;
  558. }
  559. /* INGREDIENT INVENTORY */
  560. #categoryList{
  561. width: 95%;
  562. }
  563. .categoryDiv{
  564. margin: 5px;
  565. }
  566. .categoryDiv > div:first-of-type p{
  567. padding: 10px;
  568. margin-right: 15px;
  569. }
  570. .categoryDiv > div:first-of-type button{
  571. padding: 10px;
  572. height: initial;
  573. width: initial;
  574. display: flex;
  575. }
  576. .ingredientsDiv{
  577. width: 90%;
  578. }
  579. /* RECIPE BOOK */
  580. #recipeList{
  581. width: 90%;
  582. }
  583. /* ANALYTICS */
  584. #analyticsStrand .strandHead{
  585. height: 23vh;
  586. flex-direction: column;
  587. }
  588. #analyticsStrand .strandTitle{
  589. position: static;
  590. }
  591. .switch{
  592. margin-top: 0;
  593. }
  594. .analDateRange{
  595. display: none;
  596. }
  597. .analContent{
  598. flex-direction: column;
  599. justify-content: space-between;
  600. padding: 0;
  601. height: 70vh;
  602. }
  603. .itemsList{
  604. width: 90%;
  605. height: 47%;
  606. margin-bottom: 10px;
  607. }
  608. .analData{
  609. height: 47%;
  610. }
  611. .dataRow{
  612. flex-direction: column;
  613. }
  614. #itemUseGraph{
  615. display: none;
  616. }
  617. #analDailyAverages{
  618. display: none;
  619. }
  620. #recipeSalesGraph{
  621. display: none;
  622. }
  623. /* ORDERS */
  624. #ordersStrand .strandHead{
  625. justify-content: center;
  626. }
  627. #newOrderBtn{
  628. display: none;
  629. }
  630. #orderList{
  631. width: 90%;
  632. }
  633. #orderList > div p:nth-child(2){
  634. display: none;
  635. }
  636. /* TRANSACTIONS */
  637. #transactionsStrand .strandHead{
  638. justify-content: center;
  639. }
  640. .transactionsList{
  641. width: 90%;
  642. }
  643. @media screen and (min-width: 601px){
  644. .strandTitle{
  645. font-size: 40px;
  646. }
  647. .mobileMenuSelector{
  648. left: 40px;
  649. top: 20px;
  650. }
  651. /* HOME */
  652. #graphCard{
  653. display: flex;
  654. }
  655. /* RECIPE BOOK */
  656. #recipeList{
  657. width: 75%;
  658. }
  659. /* ORDERS */
  660. #ordersStrand .strandHead{
  661. margin-top: 25px;
  662. }
  663. /* TRANSACTIONS */
  664. #transactionsStrand .strandHead{
  665. margin-top: 25px;
  666. }
  667. }
  668. }
  669. }
  670. @media screen and (orientation: landscape){
  671. @media screen and (max-width: 1400px){
  672. body{
  673. background: rgb(0, 27, 45);
  674. }
  675. .button{
  676. padding: 3px 0;
  677. }
  678. .mobileMenuSelector{
  679. color: rgb(240, 252, 255);
  680. z-index: 10;
  681. }
  682. .strandTitle{
  683. color: white;
  684. }
  685. @media screen and (min-width: 601px){
  686. }
  687. }
  688. }