Browse Source

Ne pas déborder de la fenêtre : menu déplié du thème Educnat

Up de version du plugin
master v0.4.30
Olivier Gautier 3 months ago
parent
commit
f84e6b3109
  1. 15
      inc/spipr_educ_definitions_themes.php
  2. 2
      paquet.xml
  3. 6
      themes/educnat/js/educnat.js
  4. 2
      themes/educnat/noisettes/commun/nav-secteurs-spipr.html

15
inc/spipr_educ_definitions_themes.php

@ -2712,9 +2712,14 @@ font-weight:normal;
margin-top:20px;
}
}
max-height:~\"calc(100vh - 280px)\";
}
.dropdown-menu-second-court {
max-height:~\"calc(100vh - 100px)\";
}
.dropdown-menu-second {
width:300px;
overflow-y: auto;
ul.menu-dropdown-menu-second {
margin:35px;
list-style:none;
@ -2790,8 +2795,14 @@ font-weight:normal;
margin-top:20px;
}
}
.dropdown-menu-second-large {
max-height:~\"calc(100vh - 300px)\";
}
.dropdown-menu-second-court {
max-height:~\"calc(100vh - 300px)\";
}
.dropdown-menu-second {
overflow-y: auto;
ul.menu-dropdown-menu-second {
margin:35px;
margin-bottom:30px;

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="spipr_educ"
categorie="squelette"
version="0.4.29"
version="0.4.30"
etat="stable"
compatibilite="[3.0.0;3.3.*]"
logo="img/spipr_dist-32.png"

6
themes/educnat/js/educnat.js

@ -14,6 +14,9 @@ function enteteLarge() {
$(docVide).hide();
var imgMariane = document.getElementById("icone_mariane_reduit");
$(imgMariane).hide();
var menuSecond = document.getElementsByClassName("dropdown-menu-second");
$(menuSecond).addClass( "dropdown-menu-second-large" );
$(menuSecond).removeClass( "dropdown-menu-second-court" );
}
function enteteCourte() {
@ -25,6 +28,9 @@ function enteteCourte() {
$(docVide).show();
var imgMariane = document.getElementById("icone_mariane_reduit");
$(imgMariane).show();
var menuSecond = document.getElementsByClassName("dropdown-menu-second");
$(menuSecond).addClass( "dropdown-menu-second-court" );
$(menuSecond).removeClass( "dropdown-menu-second-large" );
}
function reactionScroll() {

2
themes/educnat/noisettes/commun/nav-secteurs-spipr.html

@ -27,7 +27,7 @@
[<h2><a href="#URL_RUBRIQUE">(#TITRE)</a></h2>]
[(#DESCRIPTIF|?{[<div class="h2-rubrique-descriptif">(#DESCRIPTIF|attribut_html|couper{300})</div>], [(#TEXTE|?{[<div class="h2-rubrique-descriptif">(#TEXTE|attribut_html|couper{300})</div>],""})]})]
</div>
<div class="dropdown-menu-second">
<div class="dropdown-menu-second dropdown-menu-second-large">
<ul class="menu-dropdown-menu-second">
<BOUCLE_sous-rubriques(RUBRIQUES){id_parent}{par num titre,titre} {doublons}>
<li class="item menu-entree">

Loading…
Cancel
Save