components.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /* Menu */
  2. .menu{
  3. display: flex;
  4. flex-direction: column;
  5. align-items: center;
  6. background: rgb(0, 27, 45);
  7. width: 18vw;
  8. height: 100vh;
  9. transition: width 0.3s;
  10. flex-grow: 0;
  11. flex-shrink: 0;
  12. }
  13. .menuHead{
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. padding: 0 20px;
  18. margin-top: 10px;
  19. font-size: 22px;
  20. font-weight: bold;
  21. margin-bottom: 100px;
  22. text-decoration: none;
  23. }
  24. .menuLogo{
  25. width: 25%;
  26. height: 25%;
  27. }
  28. .menuHead a{
  29. display: flex;
  30. align-items: center;
  31. color: white;
  32. text-decoration: none;
  33. }
  34. .menuHead button{
  35. background: none;
  36. border-style: none;
  37. color: white;
  38. font-size: 35px;
  39. cursor: pointer;
  40. outline: none;
  41. }
  42. .menuHead button:hover{
  43. color: rgb(201, 201, 201);
  44. }
  45. .menuHead > button::-moz-focus-inner{
  46. border: 0;
  47. }
  48. .menu > button svg{
  49. stroke: white;
  50. margin-right: 25px;
  51. }
  52. .menu > button{
  53. display: flex;
  54. align-items: center;
  55. background: none;
  56. border-style: none;
  57. color: white;
  58. font-size: 20px;
  59. margin: 15px 0;
  60. padding: 0 0 0 50px;
  61. width: 100%;
  62. height: 75px;
  63. cursor: pointer;
  64. text-align: left;
  65. border: 0;
  66. }
  67. .menu > button::-moz-focus-inner{
  68. border: 0;
  69. }
  70. .menu > button:hover{
  71. background: rgb(201, 201, 201);
  72. color: black;
  73. fill: black;
  74. }
  75. .menu > button:hover svg{
  76. stroke: black;
  77. }
  78. .menu > .active{
  79. background: rgb(179, 191, 209);
  80. cursor: default;
  81. }
  82. .menu > .active:hover{
  83. background: rgb(179, 191, 209);
  84. color: white;
  85. }
  86. .menu > .active:hover svg{
  87. stroke: white;
  88. }
  89. .logout{
  90. display: flex;
  91. justify-content: center;
  92. position: absolute;
  93. bottom: 25px;
  94. color: white;
  95. text-decoration: none;
  96. font-size: 20px;
  97. }
  98. .logout img{
  99. height: 25px;
  100. width: 25px;
  101. }
  102. /* Minimized menu */
  103. .menuMinimized{
  104. width: 5vw;
  105. }
  106. .menuLogoMin{
  107. width: 100%;
  108. height: 100%;
  109. }
  110. .menuHeadMin{
  111. flex-direction: column;
  112. }
  113. .menuMinimized button{
  114. justify-content: center;
  115. padding: 0;
  116. }
  117. .menuMinimized button svg{
  118. margin: 0;
  119. }
  120. .sidebar{
  121. display: flex;
  122. width: 25vw;
  123. height: 100vh;
  124. box-sizing: border-box;
  125. padding: 25px;
  126. transition: width 0.2s;
  127. overflow: hidden;
  128. box-shadow: -1px 0px 10px gray;
  129. }
  130. .sidebarHide{
  131. width: 0;
  132. transition: width 0.2s;
  133. margin: 0;
  134. padding: 0;
  135. overflow: hidden;
  136. box-shadow: -1px 0px 10px gray;
  137. }
  138. .sidebarHide > *{
  139. width: 0;
  140. transition: width 0.2s;
  141. visibility: hidden;
  142. }
  143. .sidebar button:first-of-type{
  144. background: none;
  145. border: none;
  146. cursor: pointer;
  147. padding: 3px;
  148. border-radius: 5px;
  149. margin-right: auto;
  150. }
  151. .sidebar button:first-of-type:hover{
  152. background: rgb(0, 27, 45);
  153. color: white;
  154. }
  155. .lineBorder{
  156. width: 100%;
  157. border-bottom: 1px solid gray;
  158. margin: 25px;
  159. }
  160. #addIngredient{
  161. flex-direction: column;
  162. width: 100%;
  163. }
  164. #ingredientDetails{
  165. flex-direction: column;
  166. align-items: center;
  167. width: 100%;
  168. }
  169. #ingredientDetails > p{
  170. border-radius: 10px;
  171. background: gray;
  172. color: white;
  173. padding: 0 3px;
  174. font-size: 14px;
  175. }
  176. #ingredientDetails label{
  177. font-size: 20px;
  178. text-align: center;
  179. }
  180. #ingredientDetails label p{
  181. font-size: 30px;
  182. font-weight: bold;
  183. padding: 10px;
  184. }
  185. #recipeDetails{
  186. flex-direction: column;
  187. align-items: center;
  188. width: 100%;
  189. }
  190. #recipeDetailsButtons{
  191. display: flex;
  192. justify-content: space-between;
  193. width: 100%;
  194. margin-bottom: 100px;
  195. }
  196. #recipeDetailsButtons button{
  197. background: none;
  198. border: none;
  199. cursor: pointer;
  200. margin: 0;
  201. padding: 3px;
  202. border-radius: 5px;
  203. }
  204. #recipeDetailsButtons button:hover{
  205. background: rgb(0, 27, 45);
  206. color: white;
  207. }
  208. #recipeIngredients{
  209. width: 100%;
  210. }
  211. .recipeIngredient{
  212. display: flex;
  213. justify-content: space-between;
  214. margin: 25px;
  215. }
  216. #recipePrice{
  217. display: flex;
  218. flex-direction: column;
  219. align-items: center;
  220. }
  221. #recipePrice p{
  222. font-size: 25px;
  223. font-weight: bold;
  224. }
  225. #addRecipe{
  226. display: flex;
  227. flex-direction: column;
  228. align-items: center;
  229. width: 100%;
  230. padding-bottom: 50px;
  231. }
  232. #addRecipe label{
  233. display: flex;
  234. justify-content: space-between;
  235. margin: 15px 0;
  236. }
  237. #addRecipe input{
  238. width: 50%;
  239. }
  240. #addRecipe h2{
  241. margin-top: 10px;
  242. }
  243. .recipeBasicInfo{
  244. width: 75%;
  245. background: rgb(0, 27, 45);
  246. padding: 15px;
  247. border-radius: 5px;
  248. color: white;
  249. }
  250. #recipeInputIngredients{
  251. display: flex;
  252. flex-direction: column;
  253. align-items: center;
  254. box-sizing: border-box;
  255. margin: 0 0 25px 0;
  256. width:75%;
  257. overflow-y: auto;
  258. overflow-x: hidden;
  259. box-shadow: 0 0 2px gray;
  260. border-radius: 5px;
  261. }
  262. #recipeInputIngredients div{
  263. width: 75%;
  264. background: rgb(0, 27, 45);
  265. padding: 10px;
  266. border-radius: 5px;
  267. color: white;
  268. margin: 10px 0;
  269. padding: 10px 15px;
  270. text-align: center;
  271. }
  272. #recipeInputIngredients div h4{
  273. color: rgb(255, 99, 107);
  274. }
  275. #addRecipe button:last-of-type{
  276. margin-top: auto;
  277. }