components.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. }
  109. #addRecipe label{
  110. display: flex;
  111. }
  112. #addRecipe input{
  113. width: 50%;
  114. }
  115. #recipeInputIngredients div{
  116. background: rgb(0, 27, 45);
  117. }