components.css 6.0 KB

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