Jump to content

Photo
* * * * * 1 votes

Jak w bootstrapie przyśpieszyć przełączanie na mobilne menu?


Best Answer zonic, 03 January 2015 - 11:10

Najnowszy bootstrap sam podpowiada jak to można zrobić:
 

Changing the collapsed mobile navbar breakpoint
The navbar collapses into its vertical mobile view when the viewport is narrower than @grid-float-breakpoint, and expands into its horizontal non-mobile view when the viewport is at least @grid-float-breakpoint in width. Adjust this variable in the Less source to control when the navbar collapses/expands. The default value is 768px (the smallest "small" or "tablet" screen).

http://getbootstrap....ponents/#navbar

Czyli wystarczy zmienić waertość @grid-float-breakpoint z wartości @screen-sm-min na wartość @screen-md-min i przekompilować LESS

Go to the full post


2 replies to this topic
  • Please log in to reply
zak

    Nowy użytkownik

  • 32 posts
    • Czas spędzony online: 8h 3m 38s
7
Neutralna

Posted 02 January 2015 - 14:47

#1

Hej, 
tworzę swój pierwszy szablon na bootstrapie. Da się w jakiś szybki sposób zmienić, aby menu mobilne pojawiało się przy rozdzielczości sm, a nie przy xs? 


  • 0

zonic

    WT Elite

  • 2911 posts
    • Czas spędzony online: 134d 2h 28m 23s
472
Znakomita!
  • LocationToruń

Posted 03 January 2015 - 11:10   Best Answer

#2

Najnowszy bootstrap sam podpowiada jak to można zrobić:
 

Changing the collapsed mobile navbar breakpoint
The navbar collapses into its vertical mobile view when the viewport is narrower than @grid-float-breakpoint, and expands into its horizontal non-mobile view when the viewport is at least @grid-float-breakpoint in width. Adjust this variable in the Less source to control when the navbar collapses/expands. The default value is 768px (the smallest "small" or "tablet" screen).

http://getbootstrap....ponents/#navbar

Czyli wystarczy zmienić waertość @grid-float-breakpoint z wartości @screen-sm-min na wartość @screen-md-min i przekompilować LESS


  • 1

unbreak

    WT Elite

  • 1937 posts
    • Czas spędzony online: 27d 8h 43m 36s
506
Znakomita!
  • Location/home/unbreak

Posted 05 January 2015 - 15:33

#3

Kompilacja less: http://lesscss.org/ ;)


  • 0

webDeveloper






Podone tematy Collapse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users