dashboard.css 13 KB

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