dashboard.css 14 KB

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