components.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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. border-radius: 5px;
  103. padding: 10px;
  104. }
  105. .logout img{
  106. height: 25px;
  107. width: 25px;
  108. }
  109. .logout > *{
  110. margin: 10px;
  111. }
  112. .logout:hover{
  113. background: rgb(179, 191, 209);
  114. color: black;
  115. }
  116. /* Minimized menu */
  117. .menuMinimized{
  118. width: 5vw;
  119. }
  120. .menuLogoMin{
  121. width: 4vw;
  122. }
  123. .menuHeadMin{
  124. display: none;
  125. flex-direction: column;
  126. }
  127. .menuMinimized button{
  128. justify-content: center;
  129. padding: 0;
  130. }
  131. .menuMinimized button svg{
  132. margin: 0;
  133. }
  134. .sidebar{
  135. display: flex;
  136. width: 25vw;
  137. height: 100vh;
  138. box-sizing: border-box;
  139. padding: 25px;
  140. transition: width 0.2s;
  141. overflow: hidden;
  142. box-shadow: -1px 0px 10px gray;
  143. }
  144. .sidebarHide{
  145. width: 0;
  146. transition: width 0.2s;
  147. margin: 0;
  148. padding: 0;
  149. overflow: hidden;
  150. box-shadow: -1px 0px 10px gray;
  151. }
  152. .sidebarHide > *{
  153. width: 0;
  154. transition: width 0.2s;
  155. visibility: hidden;
  156. }
  157. .sidebar button:first-of-type{
  158. background: none;
  159. border: none;
  160. cursor: pointer;
  161. padding: 3px;
  162. border-radius: 5px;
  163. margin-right: auto;
  164. }
  165. .sidebar button:first-of-type:hover{
  166. background: rgb(0, 27, 45);
  167. color: white;
  168. }
  169. .lineBorder{
  170. width: 100%;
  171. border-bottom: 1px solid gray;
  172. margin: 25px;
  173. }
  174. #addIngredient{
  175. flex-direction: column;
  176. width: 100%;
  177. }
  178. #ingredientDetails{
  179. flex-direction: column;
  180. align-items: center;
  181. width: 100%;
  182. }
  183. #ingredientDetails > p{
  184. border-radius: 10px;
  185. background: gray;
  186. color: white;
  187. padding: 0 3px;
  188. font-size: 14px;
  189. }
  190. #ingredientDetails label{
  191. font-size: 20px;
  192. text-align: center;
  193. }
  194. #ingredientDetails label p{
  195. font-size: 30px;
  196. font-weight: bold;
  197. padding: 10px;
  198. }
  199. #recipeDetails{
  200. flex-direction: column;
  201. align-items: center;
  202. width: 100%;
  203. }
  204. #recipeDetailsButtons{
  205. display: flex;
  206. justify-content: space-between;
  207. width: 100%;
  208. margin-bottom: 100px;
  209. }
  210. #recipeDetailsButtons button{
  211. background: none;
  212. border: none;
  213. cursor: pointer;
  214. margin: 0;
  215. padding: 3px;
  216. border-radius: 5px;
  217. }
  218. #recipeDetailsButtons button:hover{
  219. background: rgb(0, 27, 45);
  220. color: white;
  221. }
  222. #recipeIngredients{
  223. width: 100%;
  224. }
  225. .recipeIngredient{
  226. display: flex;
  227. justify-content: space-between;
  228. margin: 25px;
  229. }
  230. #recipePrice{
  231. display: flex;
  232. flex-direction: column;
  233. align-items: center;
  234. }
  235. #recipePrice p{
  236. font-size: 25px;
  237. font-weight: bold;
  238. }
  239. #addRecipe{
  240. display: flex;
  241. flex-direction: column;
  242. align-items: center;
  243. width: 100%;
  244. padding-bottom: 50px;
  245. }
  246. #addRecipe label{
  247. display: flex;
  248. justify-content: space-between;
  249. margin: 15px 0;
  250. }
  251. #addRecipe input{
  252. width: 50%;
  253. }
  254. #addRecipe h2{
  255. margin-top: 10px;
  256. }
  257. .recipeBasicInfo{
  258. width: 75%;
  259. background: rgb(0, 27, 45);
  260. padding: 15px;
  261. border-radius: 5px;
  262. color: white;
  263. }
  264. #recipeInputIngredients{
  265. display: flex;
  266. flex-direction: column;
  267. align-items: center;
  268. box-sizing: border-box;
  269. margin: 0 0 25px 0;
  270. width:75%;
  271. overflow-y: auto;
  272. overflow-x: hidden;
  273. box-shadow: 0 0 2px gray;
  274. border-radius: 5px;
  275. }
  276. #recipeInputIngredients div{
  277. width: 75%;
  278. background: rgb(0, 27, 45);
  279. padding: 10px;
  280. border-radius: 5px;
  281. color: white;
  282. margin: 10px 0;
  283. padding: 10px 15px;
  284. text-align: center;
  285. }
  286. #recipeInputIngredients div h4{
  287. color: rgb(255, 99, 107);
  288. }
  289. #addRecipe button:last-of-type{
  290. margin-top: auto;
  291. }