components.css 5.8 KB

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