components.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .sidebar{
  2. display: flex;
  3. width: 25vw;
  4. height: 100vh;
  5. box-sizing: border-box;
  6. padding: 25px;
  7. transition: width 0.2s;
  8. overflow: hidden;
  9. box-shadow: -1px 0px 10px gray;
  10. }
  11. .sidebarHide{
  12. width: 0;
  13. transition: width 0.2s;
  14. margin: 0;
  15. padding: 0;
  16. overflow: hidden;
  17. box-shadow: -1px 0px 10px gray;
  18. }
  19. .sidebarHide > *{
  20. width: 0;
  21. transition: width 0.2s;
  22. visibility: hidden;
  23. }
  24. .sidebar button:first-of-type{
  25. background: none;
  26. border: none;
  27. cursor: pointer;
  28. padding: 3px;
  29. border-radius: 5px;
  30. margin-right: auto;
  31. }
  32. .sidebar button:first-of-type:hover{
  33. background: rgb(0, 27, 45);
  34. color: white;
  35. }
  36. .lineBorder{
  37. width: 100%;
  38. border-bottom: 1px solid gray;
  39. margin: 25px;
  40. }
  41. #addIngredient{
  42. flex-direction: column;
  43. width: 100%;
  44. }
  45. #ingredientDetails{
  46. flex-direction: column;
  47. align-items: center;
  48. width: 100%;
  49. }
  50. #ingredientDetails > p{
  51. border-radius: 10px;
  52. background: gray;
  53. color: white;
  54. padding: 0 3px;
  55. font-size: 14px;
  56. }
  57. #ingredientDetails label{
  58. font-size: 20px;
  59. text-align: center;
  60. }
  61. #ingredientDetails label p{
  62. font-size: 30px;
  63. font-weight: bold;
  64. padding: 10px;
  65. }
  66. #recipeDetails{
  67. flex-direction: column;
  68. align-items: center;
  69. width: 100%;
  70. }
  71. #recipeDetailsButtons{
  72. display: flex;
  73. justify-content: space-between;
  74. width: 100%;
  75. margin-bottom: 100px;
  76. }
  77. #recipeDetailsButtons button{
  78. background: none;
  79. border: none;
  80. cursor: pointer;
  81. margin: 0;
  82. padding: 3px;
  83. border-radius: 5px;
  84. }
  85. #recipeDetailsButtons button:hover{
  86. background: rgb(0, 27, 45);
  87. color: white;
  88. }
  89. #recipeIngredients{
  90. width: 100%;
  91. }
  92. .recipeIngredient{
  93. display: flex;
  94. justify-content: space-between;
  95. margin: 25px;
  96. }
  97. #recipePrice{
  98. display: flex;
  99. flex-direction: column;
  100. align-items: center;
  101. }
  102. #recipePrice p{
  103. font-size: 25px;
  104. font-weight: bold;
  105. }
  106. #addRecipe{
  107. display: flex;
  108. flex-direction: column;
  109. align-items: center;
  110. width: 100%;
  111. padding-bottom: 50px;
  112. }
  113. #addRecipe label{
  114. display: flex;
  115. justify-content: space-between;
  116. margin: 15px 0;
  117. }
  118. #addRecipe input{
  119. width: 50%;
  120. }
  121. #addRecipe h2{
  122. margin-top: 10px;
  123. }
  124. .recipeBasicInfo{
  125. width: 75%;
  126. background: rgb(0, 27, 45);
  127. padding: 15px;
  128. border-radius: 5px;
  129. color: white;
  130. }
  131. #recipeInputIngredients{
  132. display: flex;
  133. flex-direction: column;
  134. align-items: center;
  135. box-sizing: border-box;
  136. margin: 0 0 25px 0;
  137. width:75%;
  138. overflow-y: auto;
  139. overflow-x: hidden;
  140. box-shadow: 0 0 2px gray;
  141. border-radius: 5px;
  142. }
  143. #recipeInputIngredients div{
  144. width: 75%;
  145. background: rgb(0, 27, 45);
  146. padding: 10px;
  147. border-radius: 5px;
  148. color: white;
  149. margin: 10px 0;
  150. padding: 10px 15px;
  151. text-align: center;
  152. }
  153. #recipeInputIngredients div h4{
  154. color: rgb(255, 99, 107);
  155. }
  156. #addRecipe button:last-of-type{
  157. margin-top: auto;
  158. }