Sfoglia il codice sorgente

Refactor recipe details and add recipe css

Lee Morgan 6 anni fa
parent
commit
376de34f6d
1 ha cambiato i file con 55 aggiunte e 50 eliminazioni
  1. 55 50
      views/dashboardPage/components/components.css

+ 55 - 50
views/dashboardPage/components/components.css

@@ -211,7 +211,9 @@
     margin: 25px;
     margin: 25px;
 }
 }
 
 
-/* Add Ingredients */
+/* 
+Add Ingredients 
+*/
 #addIngredients{
 #addIngredients{
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
@@ -319,7 +321,9 @@
                         color: white;
                         color: white;
                     }
                     }
 
 
-/* Ingredient Details */
+/* 
+Ingredient Details 
+*/
 #ingredientDetails{
 #ingredientDetails{
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
@@ -345,7 +349,9 @@
         padding: 10px;
         padding: 10px;
     }
     }
 
 
-/* Recipe Details */
+/* 
+Recipe Details 
+*/
 #recipeDetails{
 #recipeDetails{
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
@@ -362,6 +368,21 @@
         width: 100%;
         width: 100%;
     }
     }
 
 
+    #recipePrice{
+        display: flex;
+        flex-direction: column;
+        align-items: center;
+    }
+
+        #recipePrice p{
+            font-size: 25px;
+            font-weight: bold;
+        }
+
+    #recipeUpdate{
+        margin: 25px 0 0 0;
+    }
+
     .recipeIngredient{
     .recipeIngredient{
         display: flex;
         display: flex;
         justify-content: space-between;
         justify-content: space-between;
@@ -381,28 +402,16 @@
     .addRecIngredient{
     .addRecIngredient{
         display: flex;
         display: flex;
         justify-content: center;
         justify-content: center;
+        margin-right: 3px;
     }
     }
 
 
-        .addRecIngredient{
-            margin-right: 3px;
-        }
-
         .addRecIngredient input{
         .addRecIngredient input{
             max-width: 25%;
             max-width: 25%;
             margin-left: 3px;
             margin-left: 3px;
         }
         }
-
-    #recipePrice{
-        display: flex;
-        flex-direction: column;
-        align-items: center;
-    }
-
-    #recipePrice p{
-        font-size: 25px;
-        font-weight: bold;
-    }
-
+/*
+Add Recipe
+*/
 #addRecipe{
 #addRecipe{
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
@@ -411,20 +420,6 @@
     padding-bottom: 50px;
     padding-bottom: 50px;
 }
 }
 
 
-    #addRecipe label{
-        display: flex;
-        justify-content: space-between;
-        margin: 15px 0;
-    }
-
-    #addRecipe input{
-        width: 50%;
-    }
-
-    #addRecipe h2{
-        margin-top: 10px;
-    }
-
     .recipeBasicInfo{
     .recipeBasicInfo{
         width: 75%;
         width: 75%;
         background: rgb(240, 252, 255);
         background: rgb(240, 252, 255);
@@ -433,6 +428,20 @@
         border: 1px solid black;
         border: 1px solid black;
     }
     }
 
 
+        .recipeBasicInfo label{
+            display: flex;
+            justify-content: space-between;
+            margin: 15px 0;
+        }
+
+        .recipeBasicInfo input{
+            width: 50%;
+        }
+
+    #addRecipe h2{
+        margin-top: 10px;
+    }
+
     #recipeInputIngredients{
     #recipeInputIngredients{
         display: flex;
         display: flex;
         flex-direction: column;
         flex-direction: column;
@@ -446,29 +455,25 @@
         border-radius: 5px;
         border-radius: 5px;
     }
     }
 
 
-    #recipeInputIngredients div{
-        width: 75%;
-        background: rgb(240, 252, 255);
-        border: 1px solid black;
-        padding: 10px;
-        border-radius: 5px;
-        margin: 10px 0;
-        padding: 10px 15px;
-        text-align: center;
-    }
+        #recipeInputIngredients div{
+            width: 75%;
+            background: rgb(240, 252, 255);
+            border: 1px solid black;
+            padding: 10px;
+            border-radius: 5px;
+            margin: 10px 0;
+            padding: 10px 15px;
+            text-align: center;
+        }
 
 
-    #recipeInputIngredients div h4{
-        color: rgb(255, 99, 107);
-    }
+            #recipeInputIngredients div h4{
+                color: rgb(255, 99, 107);
+            }
 
 
     #addRecipe button:last-of-type{
     #addRecipe button:last-of-type{
         margin-top: auto;
         margin-top: auto;
     }
     }
 
 
-    #recipeUpdate{
-        margin: 25px 0 0 0;
-    }
-
 /* New Order */
 /* New Order */
 #newOrder{
 #newOrder{
     display: flex;
     display: flex;