Browse Source

Calages CSS pour la pagination suite au passage à SPIP 4.0

master v1.3.8
erational 4 months ago
parent
commit
e389c9ac67
  1. 47
      css/style.css
  2. 6
      inc/liste_articles.html
  3. 9
      inc/recherche_liste_articles.html
  4. 3
      inc/rubrique_liste_articles_actu.html
  5. 3
      inc/rubrique_liste_articles_numero.html
  6. 4
      kamakura_options.php
  7. 4
      paquet.xml

47
css/style.css

@ -1034,10 +1034,56 @@ fieldset.previsu legend {
padding: 1rem;
font-size: 1rem;
display: flex;
flex-wrap: wrap;
align-items: center;
background-color: #fffc19;
}
/* SPIP 4+ */
.pagination-items {
flex-grow: 1;
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
}
.pagination-item-label {
padding: 0.5rem 1rem;
}
.pagination-item:after {
content: "|";
}
@media (max-width: 992px) {
.pagination-item:after {
content:"";
}
}
.pagination-item:last-child:after {
content: "";
}
.pagination-item.on span {
font-weight:bold;
}
/* commun SPIP 4.0 -SPIP 3.2 */
.pagination-total:before {
content: "- ";
}
@media (max-width: 992px) {
.pagination-total:before {
content:"";
}
}
.pagination a.lien_pagination {
text-decoration: none;
}
@ -1049,7 +1095,6 @@ fieldset.previsu legend {
.pagination .on, .lien_pagination {
text-decoration: none;
display: inline-block;
padding: 0.5rem;
}
.pagination .lien_pagination:hover {

6
inc/liste_articles.html

@ -15,8 +15,8 @@
<INCLURE{fond=inc/article_preview, id_article, env} />
</BOUCLE_actu>
[<div class="pagination">
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span>
(#PAGINATION{page})
- #GRAND_TOTAL <:kamakura:resultats_out:>
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span>
(#PAGINATION{page})
<span class="pagination-total">#GRAND_TOTAL <:kamakura:resultats_out:></span>
</div>]
</B_actu>

9
inc/recherche_liste_articles.html

@ -21,10 +21,11 @@
<INCLURE{fond=inc/article_preview, article_preview_short=oui, affiche_categorie=oui, id_article, env} />
</BOUCLE_actu>
<div class="pagination">
[<span class="pagination-titre"><:kamakura:pagination_pages:>:</span> (#PAGINATION{page}) -]
#GRAND_TOTAL <:kamakura:resultats_out:>
</div>
[<div class="pagination">
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span>
(#PAGINATION{page})
<span class="pagination-total">#GRAND_TOTAL <:kamakura:resultats_out:></span>
</div>]
</B_actu>
[(#ENV{recherche}|oui)

3
inc/rubrique_liste_articles_actu.html

@ -10,6 +10,7 @@
<INCLURE{fond=inc/article_preview, article_preview_short=oui, id_article, env} />
</BOUCLE_actu>
[<div class="pagination">
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span> (#PAGINATION{page})
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span>
(#PAGINATION{page})
</div>]
</B_actu>

3
inc/rubrique_liste_articles_numero.html

@ -10,6 +10,7 @@
<INCLURE{fond=inc/article_preview, article_preview_short=oui, id_article, env} />
</BOUCLE_actu>
[<div class="pagination">
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span> (#PAGINATION{page})
<span class="pagination-titre"><:kamakura:pagination_pages:>:</span>
(#PAGINATION{page})
</div>]
</B_actu>

4
kamakura_options.php

@ -3,7 +3,7 @@
* Chargement du plugin Kamakura
*
* @plugin Kamakura
* @copyright 2020
* @copyright 2021
* @author erational
* @licence GNU/GPL
* @package SPIP\Kamakura\Options
@ -18,3 +18,5 @@ $GLOBALS['debut_intertitre'] = "\n<h2 class=\"spip\"><i class='fas fa-caret-squa
$GLOBALS['fin_intertitre'] = "\n</h2>\n";
// pagination : 6 liens max
define('_PAGINATION_NOMBRE_LIENS_MAX', 7);

4
paquet.xml

@ -1,10 +1,10 @@
<paquet
prefix="kamakura"
categorie="squelette"
version="1.3.7"
version="1.3.8"
schema="1.0.0"
etat="stable"
compatibilite="[3.2.0;4.0.*]"
compatibilite="[4.0.0;4.0.*]"
logo="prive/themes/spip/images/kamakura-128.png"
documentation="https://contrib.spip.net/5297"
>

Loading…
Cancel
Save