analytics.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. .switch{
  2. position: relative;
  3. display: inline-block;
  4. width: 239px;
  5. height: 34px;
  6. color: white;
  7. }
  8. .switch input{
  9. opacity: 0;
  10. width: 0;
  11. height: 0;
  12. }
  13. .switch input:focus + .slider{
  14. box-shadow: 0 0 1px #2196F3;
  15. }
  16. .switch input:checked + .slider:before {
  17. -webkit-transform: translateX(105px);
  18. -ms-transform: translateX(92px);
  19. transform: translateX(125px);
  20. }
  21. .slider{
  22. display: flex;
  23. justify-content: space-between;
  24. align-items: center;
  25. position: absolute;
  26. cursor: pointer;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. bottom: 0;
  31. padding: 0 24px 0 5px;
  32. background: rgb(0, 27, 45);
  33. transition: 0.2s;
  34. }
  35. .slider:before{
  36. position: absolute;
  37. content: "";
  38. height: 30px;
  39. width: 110px;
  40. left: 1px;
  41. bottom: 1px;
  42. background: rgba(255, 255, 255, 0.2);
  43. border: 1px solid rgb(255, 99, 107);
  44. transition: 0.5s;
  45. }
  46. .analContent{
  47. display: flex;
  48. justify-content: space-around;
  49. align-items:center;
  50. padding: 15px;
  51. box-sizing: border-box;
  52. height: 90%;
  53. }
  54. .itemsList{
  55. list-style-type: none;
  56. width: 15%;
  57. max-height: 95%;
  58. overflow-y: auto;
  59. }
  60. .analData{
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: space-around;
  64. width: 100%;
  65. height: 100%;
  66. }
  67. #itemUseGraph{
  68. padding: 10px;
  69. height: 60%;
  70. flex-basis: 100px;
  71. flex-grow: 5;
  72. }
  73. .dataRow{
  74. display: flex;
  75. justify-content: space-between;
  76. flex-basis: 150px;
  77. flex-grow: 0;
  78. }
  79. .dataRow .analCard{
  80. display: flex;
  81. flex-direction: column;
  82. justify-content: space-around;
  83. margin: 5px;
  84. height: inherit;
  85. }
  86. .dataRow .analCard > *{
  87. margin: 0;
  88. }
  89. .analCard h1{
  90. text-align: center;
  91. }
  92. #analRecipeContent{
  93. display: flex;
  94. justify-content: space-around;
  95. align-items: center;
  96. padding: 15px;
  97. box-sizing: border-box;
  98. height: 90%;
  99. }