From 051aa1a362cdad55ee4ba3a09ec442e2632f4e72 Mon Sep 17 00:00:00 2001 From: David Katrinka Date: Sat, 28 Jun 2025 17:33:22 +0200 Subject: [PATCH] TIST-20: Fixed small issues on admin page --- apps/Admin/Templates/home.php | 2 +- apps/Admin/Templates/list-view.php | 2 +- .../widgets/ingredients_in_recipe.php | 4 +- .../Admin/Templates/widgets/recipe_author.php | 2 +- assets/css/admin.css | 53 ++++++++++++++++++- 5 files changed, 56 insertions(+), 7 deletions(-) diff --git a/apps/Admin/Templates/home.php b/apps/Admin/Templates/home.php index 57b303b..d3fd980 100644 --- a/apps/Admin/Templates/home.php +++ b/apps/Admin/Templates/home.php @@ -57,7 +57,7 @@
- +
diff --git a/apps/Admin/Templates/list-view.php b/apps/Admin/Templates/list-view.php index d04bb24..d797f56 100644 --- a/apps/Admin/Templates/list-view.php +++ b/apps/Admin/Templates/list-view.php @@ -15,7 +15,7 @@
- +
diff --git a/apps/Admin/Templates/widgets/ingredients_in_recipe.php b/apps/Admin/Templates/widgets/ingredients_in_recipe.php index 69eebf2..8a6c078 100644 --- a/apps/Admin/Templates/widgets/ingredients_in_recipe.php +++ b/apps/Admin/Templates/widgets/ingredients_in_recipe.php @@ -15,8 +15,8 @@
- Show all - Add ingredient + Show all + Add ingredient
\ No newline at end of file diff --git a/apps/Admin/Templates/widgets/recipe_author.php b/apps/Admin/Templates/widgets/recipe_author.php index 1e02c74..df6280f 100644 --- a/apps/Admin/Templates/widgets/recipe_author.php +++ b/apps/Admin/Templates/widgets/recipe_author.php @@ -1,6 +1,6 @@
Author
\ No newline at end of file diff --git a/assets/css/admin.css b/assets/css/admin.css index a70c87b..688bdca 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -22,6 +22,9 @@ } body { min-height: 100vh; + font-family: var(--common-font); + font-size: 14px; + color: var(--common-text); } .wrapper-admin { display: flex; @@ -220,6 +223,11 @@ body { .admin-block__table .row { padding: 10px; } + +.admin-block__table a{ + color: var(--title-color); +} + .admin-container.delete { text-align: center; } @@ -289,7 +297,48 @@ body { .admin-block__content .btn-control { display: flex; - justify-content: space-between; - + justify-content: space-between; } +input:disabled{ + background-color: #e9ecef; + color: #6c757d; +} + +.admin-single__form select{ + padding: 6px; + border-radius: 10px; + + margin-bottom: 20px; +} + +.admin-single__form img{ + height: 260px; + width: 350; + border-radius: 10px; + margin-bottom: 20px; +} + +.admin-single__form #instruction{ + width: 400px; + padding: 5px; + +} + +.admin-single__form input[type="file"]{ + margin-bottom: 20px; + +} + +.recipe-author{ + color: var(--title-color); +} + +.admin-single__form label{ + display: inline-block; + margin-bottom: 5px; +} + +.admin-single__form .input-checkbox{ + accent-color: #0DBB99; +} \ No newline at end of file -- 2.34.1