Changeset 90759 in spip-zone


Ignore:
Timestamp:
Jul 7, 2015, 2:45:01 PM (4 years ago)
Author:
cedric@…
Message:

fix partiel sur les navbar : ajouter les class englobantes de BS3

Location:
_plugins_/bootstrap/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bootstrap/trunk/bootstrap2spip/css/navbar.less

    r90743 r90759  
    11@import "bootstrap/css/navbar.less";
     2
     3.navbar .navbar-inner {
     4        .container-fluid;
     5}
     6.navbar .navbar-inner>.nav:not(.navbar-nav),
     7.navbar .navbar-collapse>.nav:not(.navbar-nav) {
     8        .navbar-nav;
     9}
    210
    311@media (max-width: @grid-float-breakpoint-max) {
  • _plugins_/bootstrap/trunk/bootstrap_fonctions.php

    r78454 r90759  
    2323        $n = 1;
    2424        while ($ul = array_shift($uls)
    25                 AND strpos(extraire_attribut($ul,"class"),"nav")===false){
     25                AND strpos($navclass = extraire_attribut($ul,"class"),"nav")===false){
    2626                $n++;
    2727        }
     
    3030                $p = strpos($respnav,$ul);
    3131                $respnav = substr_replace($respnav,
    32                         '<a class="btn btn-navbar" data-toggle="collapse" data-target=".' . $class_collapse . '">' .
     32                        '<a class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".' . $class_collapse . '">' .
    3333                                '<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a>' .
    34                                 "\n".'<div class="nav-collapse ' . $class_collapse . ' collapse">',$p,0);
     34                                "\n".'<div class="nav-collapse navbar-collapse ' . $class_collapse . ' collapse">',$p,0);
    3535                $l=strlen($respnav);$p=$l-1;
    3636                while ($n--){
Note: See TracChangeset for help on using the changeset viewer.