dashboard.css 14 KB

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