Valider 235be9bc rédigé par cerdic's avatar cerdic
Parcourir les fichiers

Inutile de casser completement la mise en forme des listes articles...

Inutile de casser completement la mise en forme des listes articles surchargees en ne stylant plus la classe .logo. On s'en tire en inserant une class nologo quand il n'y a pas de logo et logo quand il y en a un.
On garde aussi le style sur la class logo-carre, ce qui permet sa reutilisation dans d'autres listes
parent 94fadd2b
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+2 −2
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -13,7 +13,7 @@
		<tr class='first_row'>
			<th class='statut' scope='col'>[(#TRI{statut,<span title="<:lien_trier_statut|attribut_html:>">#</span>,ajax})]</th>
			<th class='titre principale' scope='col'>[(#TRI{num titre,<:info_titre:>,ajax})]</th>
			<th class='logo'></th>
			<th class='nologo'></th>
			<th class='auteur' scope='col'><:auteur:></th>
			<th class='date secondaire' scope='col'>[(#TRI{date,<:date:>,ajax})]</th>
			<th class='id' scope='col'>[(#TRI{id_article,<:info_numero_abbreviation:>,ajax})]</th>
@@ -28,7 +28,7 @@
				[hreflang="(#ENV{lang}|=={#LANG}|non|?{#LANG})"]
				title="<:info_numero_abbreviation|attribut_html:> #ID_ARTICLE">[<span
				class="surtitre">(#SURTITRE|image_reduire{150,70})</span>][(#RANG). ]<strong>#TITRE</strong>[<span class="soustitre">(#SOUSTITRE)</span>]</a></td>
			<td class='logo[ logo-carre(#LOGO_ARTICLE_NORMAL|oui)]'>[(#LOGO_ARTICLE_NORMAL|image_passe_partout{70,70})]</td>
			<td class='[(#LOGO_ARTICLE_NORMAL|?{logo,nologo})]'>[(#LOGO_ARTICLE_NORMAL|image_passe_partout{70,70})]</td>
			<td class='auteur'><div class="inner"><BOUCLE_auteurs(AUTEURS){id_article}{', '}><a href="[(#ID_AUTEUR|generer_url_entite{auteur})]">#NOM</a></BOUCLE_auteurs></div></td>
			<td class='date secondaire'>[<span title="[(#DATE|heures_minutes)]">(#DATE|affdate_jourcourt)</span>]</td>
			<td class='id'>[(#AUTORISER{modifier,article,#ID_ARTICLE}|?{
+4 −3
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -61,6 +61,7 @@
.liste-objets tr td.titre a {display: block;}
.liste-objets tr td.titre span.surtitre, .liste-objets tr td.titre span.soustitre {font-size: 85%; display:block; overflow: hidden; text-overflow: ellipsis;white-space: nowrap;max-width: 200px;}
.liste-objets tr td.titre .spip_logo {float:#ENV{right};margin-#ENV{left}:5px;margin-bottom:5px;}
.liste-objets tr td.nologo {padding: 0;width:0;}
.liste-objets tr td.logo {text-align: center; padding: 0 5px;}
.liste-objets tr td.logo img {display: block; margin: 0 auto;}
.liste-objets.auteurs tr td.logo a {width: 40px; height: 40px; display: block; background-position: center center; background-size: cover; border-radius: 50%; margin: 3px 0;}
@@ -74,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 tr td.logo-carre {width: 70px; height: 70px; padding: 3px;}
.liste-objets tr td.logo-carre img {width: 100%; height: 100%; object-fit: cover; border-radius: 8px;}
.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: 8px;}

<BOUCLE_objets(DATA){source table,#REM|lister_tables_objets_sql}>[
.liste-objets.[(#VALEUR{table_objet})] .caption {background-image:url((#CHEMIN_IMAGE{#VALEUR{icone_objet}}));padding-#ENV{left}:30px;}]</BOUCLE_objets>
@@ -90,7 +91,7 @@
.lat .liste-objets tr > .action,
.lat .liste-objets tr > .syndication,
.lat .liste-objets tr .spip_logo,
.lat .liste-objets.articles tr .logo {display:none;}
.lat .liste-objets.articles tr .logo, .lat .liste-objets.articles tr .nologo  {display:none;}
.lat .liste-objets tr td.principale {font-size:0.9em;max-width:120px;word-wrap: break-word;}

.en-edition .inner {font-size:0.9em;}