v2.5.0 - fix bouton...

This commit is contained in:
chankalan 2021-07-30 00:08:36 +02:00
parent ada2cf8c75
commit 88fef6bfaa
8 changed files with 80 additions and 20 deletions

View File

@ -1,7 +1,7 @@
<paquet <paquet
prefix="baz_april" prefix="baz_april"
categorie="squelette" categorie="squelette"
version="2.4.10" version="2.5.0"
schema="1.0.1" schema="1.0.1"
etat="stable" etat="stable"
compatibilite="[3.2.0;4.0.*]" compatibilite="[3.2.0;4.0.*]"

View File

@ -26,7 +26,7 @@ $(function() {
// .menu-entree.sousinitiatives > ul > li > a // .menu-entree.sousinitiatives > ul > li > a
$('.page_wrapper').append('<div class="menucache"></div>'); $('.page_wrapper').append('<div class="menucache"></div>');
$('.menu-items__lien.sousinitiatives').on('click', function(){ $('.menu-items__lien.sousinitiatives').on('click', function(){
$('.menucache').addClass('cache'); $('.menucache').toggleClass('cache');
$(this).toggleClass('actif'); $(this).toggleClass('actif');
$(this).siblings('ul').toggleClass('ouvert'); $(this).siblings('ul').toggleClass('ouvert');
$(this).parent().siblings('.sousinitiatives').find('ul.ouvert').removeClass('ouvert'); $(this).parent().siblings('.sousinitiatives').find('ul.ouvert').removeClass('ouvert');

View File

@ -31,7 +31,8 @@
display: none !important; display: none !important;
} }
ul.spip { ul.spip, ol.spip {
margin-left: 1rem;
li { li {
margin:0 0 0.5em; margin:0 0 0.5em;
} }

View File

@ -63,3 +63,38 @@
.col .next { .col .next {
display: none; display: none;
} }
/* spip4 */
.pagination, .aside .nav .pagination {
margin: 2em 0;
.pagination-items {
display:flex;
justify-content:center;
flex-wrap:wrap;
list-style:none;
}
.pagination-item {
padding:0;
background:none;
margin:0 0.15em 0.5em;
}
.pagination-items a, .pagination-items span.on {
display:inline-block;
text-decoration:none;
border:none;
padding:0.5em;
@include vendor-prefix(border-radius,0.25em);
font-size:1em;
font-weight:700;
line-height:1.5;
color:$couleur-lien;
}
.pagination-items a:hover, .pagination-items span.on {
background:$grayLighter !important;
color:$couleur-lien-hover;
text-decoration:none;
}
.tbc {
line-height: 2.4;
}
}

View File

@ -20,3 +20,30 @@ a {
font-size:140%; font-size:140%;
} }
} }
//
// modele bouton
//
.btn {
@include bouton();
&.right {
float:right;
margin-left:$spacer;
}
&.left {
float:left;
margin-right:$spacer;
}
&.center {
display: block;
clear:both;
width: 300px;
margin:0 auto;
padding:1.5rem;
}
&.bold {
border-width:2px;
font-weight:700;
}
}

View File

@ -71,7 +71,7 @@
// ---------------------------------------- // ----------------------------------------
.btn-nav { .btn-nav {
position:absolute; position:absolute;
z-index:2; z-index:10;
right:$spacer; right:$spacer;
top:0; top:0;
padding:0.4rem; padding:0.4rem;
@ -109,6 +109,7 @@
left:-100%; left:-100%;
padding:$spacer/2 $spacer; padding:$spacer/2 $spacer;
text-align:center; text-align:center;
z-index:10;
&.ouvert{ &.ouvert{
left:0; left:0;
} }

View File

@ -1,18 +1,5 @@
//
// modele bouton
//
.btn {
@include bouton();
&.right {
float:right;
margin-left:$spacer;
}
&.left {
float:left;
margin-right:$spacer;
}
}
// pour usage du btn, mais utile ailleurs eventuellement // pour usage du btn, mais utile ailleurs eventuellement
.taille70 { .taille70 {
font-size:70%; font-size:70%;
@ -160,8 +147,17 @@ a.back-to-top {
flex-wrap:wrap; flex-wrap:wrap;
justify-content:space-between; justify-content:space-between;
} }
.flex2 > * {
width:100%;
@include media($bp-small-up) {
max-width:calc(50% - 1rem);
}
}
.flex3 > * { .flex3 > * {
max-width:30%; width:100%;
@include media($bp-small-up) {
max-width:calc(33.33% - 1rem);
}
} }

View File

@ -116,7 +116,7 @@
background:$sombre; background:$sombre;
color:$clair !important; color:$clair !important;
font-weight:700; font-weight:700;
padding: ($spacer/2) $spacer; padding: ($spacer/2.5) ($spacer/1.5);
&:hover { &:hover {
background-color: $survol; background-color: $survol;