Changeset 123122 in spip-zone


Ignore:
Timestamp:
Mar 25, 2020, 10:27:14 AM (2 weeks ago)
Author:
Cerdic
Message:

un mixin pour passer la barre de nav en bouton toggle, a appeler sur #nav dans la media query qui va bien

Location:
_plugins_/bootstrap4/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bootstrap4/trunk

    • Property subgit:lock:996f1b63968009ca2841f7b6857c9776a6e36e16 deleted
    • Property subgit:lock:f87959b5c2630c514a65e5a3f7139906a8cadca4 set to 2020-03-25T11:27:27.259
  • _plugins_/bootstrap4/trunk/bootstrap2spip/css/_mixins.scss

    r114815 r123122  
    11@import "css/_spip.variables";
    22@import "bootstrap/css/_mixins";
     3
     4
     5@mixin make-navbar-button-float($side: 'right', $bg-color: $dark, $space-x: $grid-gutter-width / 2, $space-y: $spacer) {
     6
     7  padding: 0;
     8  margin: 0;
     9  position: absolute;
     10  top:$space-y;
     11  #{$side}:$space-x;
     12  background: none !important;
     13  z-index:10;
     14
     15  .navbar-inner {
     16    display: flex;
     17    flex-direction: column;
     18    align-items: flex-end;
     19    .navbar-toggler {
     20      margin-left: auto;
     21      border-top-right-radius: $border-radius;
     22      border-top-left-radius: $border-radius;
     23      border-bottom-right-radius: 0;
     24      border-bottom-left-radius: 0;
     25      &.collapsed {
     26        border-bottom-right-radius: $border-radius;
     27        border-bottom-left-radius: $border-radius;
     28      }
     29      background: $bg-color;
     30    }
     31    .navbar-nav {
     32      background: $bg-color;
     33    }
     34  }
     35  @content;
     36
     37}
  • _plugins_/bootstrap4/trunk/bootstrap4_fonctions.php

    r119347 r123122  
    4242                $p = strpos($respnav,$ul);
    4343                $respnav = substr_replace($respnav,
    44                         '<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#' . $id . '" aria-controls="'. $id . '" aria-expanded="false" aria-label="Toggle navigation">'
     44                        '<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#' . $id . '" aria-controls="'. $id . '" aria-expanded="false" aria-label="Toggle navigation">'
    4545                        . '<span class="navbar-toggler-icon"></span>'
    4646                        . '</button>'
  • _plugins_/bootstrap4/trunk/paquet.xml

    r123038 r123122  
    22        prefix="bootstrap4"
    33        categorie="outil"
    4         version="4.4.1.2"
     4        version="4.4.1.3"
    55        etat="test"
    66        compatibilite="[3.2.0;3.3.*]"
Note: See TracChangeset for help on using the changeset viewer.