components.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. }
  44. #ingredientDetails{
  45. flex-direction: column;
  46. align-items: center;
  47. }
  48. #ingredientDetails > p{
  49. border-radius: 10px;
  50. background: gray;
  51. color: white;
  52. padding: 0 3px;
  53. font-size: 14px;
  54. }
  55. #ingredientDetails label{
  56. font-size: 20px;
  57. text-align: center;
  58. }
  59. #ingredientDetails label p{
  60. font-size: 30px;
  61. font-weight: bold;
  62. padding: 10px;
  63. }
  64. #recipeDetails{
  65. flex-direction: column;
  66. align-items: center;
  67. box-sizing: border-box;
  68. }
  69. #recipeDetailsButtons{
  70. display: flex;
  71. justify-content: space-between;
  72. width: 100%;
  73. margin-bottom: 100px;
  74. }
  75. #recipeDetailsButtons button{
  76. background: none;
  77. border: none;
  78. cursor: pointer;
  79. margin: 0;
  80. padding: 3px;
  81. border-radius: 5px;
  82. }
  83. #recipeDetailsButtons button:hover{
  84. background: rgb(0, 27, 45);
  85. color: white;
  86. }
  87. #recipeIngredients{
  88. width: 100%;
  89. }
  90. .recipeIngredient{
  91. display: flex;
  92. justify-content: space-between;
  93. margin: 25px;
  94. }
  95. #recipePrice{
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. }
  100. #recipePrice p{
  101. font-size: 25px;
  102. font-weight: bold;
  103. }
  104. #addRecipe{
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. padding-bottom: 50px;
  109. }
  110. #addRecipe label{
  111. display: flex;
  112. justify-content: space-between;
  113. margin: 15px 0;
  114. }
  115. #addRecipe input{
  116. width: 50%;
  117. }
  118. #addRecipe h2{
  119. margin-top: 10px;
  120. }
  121. .recipeBasicInfo{
  122. width: 75%;
  123. background: rgb(0, 27, 45);
  124. padding: 15px;
  125. border-radius: 5px;
  126. color: white;
  127. }
  128. #recipeInputIngredients{
  129. display: flex;
  130. flex-direction: column;
  131. align-items: center;
  132. box-sizing: border-box;
  133. margin: 0 0 25px 0;
  134. width:75%;
  135. overflow-y: auto;
  136. overflow-x: hidden;
  137. box-shadow: 0 0 2px gray;
  138. border-radius: 5px;
  139. }
  140. #recipeInputIngredients div{
  141. width: 75%;
  142. background: rgb(0, 27, 45);
  143. padding: 10px;
  144. border-radius: 5px;
  145. color: white;
  146. margin: 10px 0;
  147. padding: 10px 15px;
  148. text-align: center;
  149. }
  150. #recipeInputIngredients div h4{
  151. color: rgb(255, 99, 107);
  152. }
  153. #addRecipe button:last-of-type{
  154. margin-top: auto;
  155. }