recipes.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. *{margin:0;padding:0;}
  2. body{
  3. text-align: center;
  4. }
  5. h1{
  6. margin-bottom: 25px;
  7. }
  8. h2{
  9. border-bottom: 2px solid #ff626b;
  10. margin-bottom: 15px;
  11. }
  12. #recipes{
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. }
  17. #recipeUpdate{
  18. margin-bottom: 10px;
  19. }
  20. #recipesContainer{
  21. display: flex;
  22. justify-content: space-around;
  23. flex-wrap: wrap;
  24. padding: 25px;
  25. }
  26. .recipe-card{
  27. border: 2px solid #ff626b;
  28. box-shadow: 2px 2px 2px #001b2d;
  29. background: #001b2d;
  30. color: #ff626b;
  31. width: 20%;
  32. padding: 35px;
  33. margin: 25px;
  34. border-radius: 10px;
  35. cursor: pointer;
  36. }
  37. .recipe-card:hover{
  38. transform: translateY(-3px);
  39. }
  40. .empty-recipe{
  41. background: #ff626b;
  42. border: 2px solid #001b2d;
  43. color: #001b2d;
  44. }
  45. #ingredient{
  46. display: none;
  47. width: 50%;
  48. flex-direction: column;
  49. margin: auto;
  50. align-items: center;
  51. }
  52. th{
  53. border: 2px solid #ff626b;
  54. background: #001b2d;
  55. color: darkgray;
  56. padding: 3px;
  57. min-width: 150px;
  58. }
  59. th:nth-of-type(3){
  60. border: none;
  61. background: none;
  62. color: white;
  63. min-width: 0;
  64. cursor: auto;
  65. }
  66. td{
  67. border: 1px solid black;
  68. text-align: center;
  69. padding: 1px 10px;
  70. }
  71. td:nth-of-type(3n){
  72. border: none;
  73. }
  74. #delRecipe{
  75. display: "none"
  76. }