Skip to content
Extraits de code Groupes Projets
Valider ca771e2b rédigé par nicod's avatar nicod Validation de marcimat
Parcourir les fichiers

Des logos uniformes et carrés pour les rubriques, comme pour les articles

parent 41f35016
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -68,9 +68,9 @@ function enfant_rub($collection, $debut = 0, $limite = 500) {
if ($voir_logo) {
if ($logo = $chercher_logo($id_rubrique, 'id_rubrique', 'on')) {
list($fid, $dir, $nom, $format) = $logo;
$logo = image_reduire("<img src='$fid' alt='' />", 70, 70);
$logo = image_passe_partout("<img src='$fid' alt='' />", 70, 70);
if ($logo) {
$logo = inserer_attribut($logo, 'class', 'logo');
$logo = wrap(inserer_attribut($logo, 'class', 'logo'),'<span class="logo-carre">');
}
}
}
......
......@@ -456,12 +456,14 @@
color: var(--spip-color-black);
}
/* Logo */
.box.sous-rub .box__header .logo-carre {
padding: 0;
}
.box.sous-rub .box__header .logo {
width: auto;
height: 100%;
max-height: calc((var(--spip-box-spacing-y) * 2) + 1.2em); /* = titre sur 1 ligne */
margin: 0;
border-top-#LEFT-radius: 0;
border-top-#RIGHT-radius: var(--spip-box-border-radius);
border-bottom-#LEFT-radius: 0;
border-bottom-#RIGHT-radius: var(--spip-box-border-radius);
}
/* Descriptif */
......
......@@ -75,8 +75,8 @@
.liste-objets.auteurs th.statut {line-height:1px;padding-bottom:0;}
.liste-objets.auteurs td.nom .spip_logos { vertical-align: middle; margin-#ENV{right}: 0.3em; }
.liste-objets.articles tr td.logo,.liste-objets td.logo-carre {width: 70px; height: 70px; padding: 3px;}
.liste-objets.articles tr td.logo img,.liste-objets td.logo-carre img {width: 100%; height: 100%; object-fit: cover; border-radius: 5px;}
.liste-objets.articles tr td.logo, .logo-carre {width: 70px; height: 70px; padding: 3px;}
.liste-objets.articles tr td.logo img, .logo-carre img {width: 100%; height: 100%; object-fit: cover; border-radius: 5px;}
<BOUCLE_objets(DATA){source table,#REM|lister_tables_objets_sql}>[
.liste-objets.[(#VALEUR{table_objet})] .caption {background-image:url((#CHEMIN_IMAGE{#VALEUR{icone_objet}|concat{-24.png}}));padding-#ENV{left}:30px;}]</BOUCLE_objets>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter