refining artisans admin styles
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2024-12-10 12:25:43 +01:00
parent abf3ecc992
commit cfa6652cc1
2 changed files with 13 additions and 3 deletions

View File

@ -119,7 +119,8 @@ function render_custom_chantier_box_content($post)
}
echo '</ul>';
} else {
echo '<h3> Chantiers réalisé par l\'entreprise </h3>';
echo '<p style="font-size: 1rem;">Aucun chantier pour cette entreprise.</p>';
echo '<h3> Chantiers réalisés</h3>';
echo '<p class="no-results">Aucun chantier pour cette entreprise</p>';
echo '<a href="' . admin_url('post-new.php?post_type=chantiers') . '" class="new-chantier">Ajouter un chantier</a>';
}
}

View File

@ -248,10 +248,11 @@ body.post-type-artisans {
}
#admin_artisan_chantier_list {
@apply border border-solid border-neutral-300;
h3 {
@apply font-medium;
}
border: 0 none;
background: rgba(0, 0, 0, 0);
box-shadow: none;
> .postbox-header {
@ -265,6 +266,14 @@ body.post-type-artisans {
@apply w-6 h-6 object-contain filter-patrimoine-sante-securite;
}
}
.no-results {
@apply text-sm text-neutral-400;
}
.new-chantier {
@apply bg-patrimoine-sante-securite text-white py-2 px-4 no-underline rounded-full mb-4 block w-fit;
}
}
.edit-fiche-artisan-link {