navbar.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. ---
  2. layout: documentation
  3. doc-tab: components
  4. doc-subtab: navbar
  5. ---
  6. {% include subnav-components.html %}
  7. {% capture navbar_example %}
  8. {% include navbar.html id="Example" %}
  9. {% endcapture %}
  10. {% capture navbar_brand_example %}
  11. <nav class="navbar">
  12. <div class="navbar-brand">
  13. <!-- navbar items, navbar burger ... -->
  14. </div>
  15. </nav>
  16. {% endcapture %}
  17. {% capture navbar_burger_example %}
  18. <div class="navbar-burger">
  19. <span></span>
  20. <span></span>
  21. <span></span>
  22. </div>
  23. {% endcapture %}
  24. {% capture navbar_brand_items_example %}
  25. <nav class="navbar">
  26. <div class="navbar-brand">
  27. <a class="navbar-item" href="{{ site.url }}">
  28. <img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.title }}" width="112" height="28">
  29. </a>
  30. <div class="navbar-burger">
  31. <span></span>
  32. <span></span>
  33. <span></span>
  34. </div>
  35. </div>
  36. </nav>
  37. {% endcapture %}
  38. {% capture navbar_menu_example %}
  39. <nav class="navbar">
  40. <div class="navbar-brand">
  41. <!-- navbar items, nav burger ... -->
  42. </div>
  43. <div class="navbar-menu">
  44. <!-- navbar start, navbar end -->
  45. </div>
  46. </nav>
  47. {% endcapture %}
  48. {% capture navbar_menu_active_example %}
  49. <div class="navbar-menu">
  50. <!-- hidden on mobile -->
  51. </div>
  52. <div class="navbar-menu is-active">
  53. <!-- shown on mobile -->
  54. </div>
  55. {% endcapture %}
  56. {% capture navbar_start_end_example %}
  57. <div class="navbar-menu">
  58. <div class="navbar-start">
  59. <!-- navbar items -->
  60. </div>
  61. <div class="navbar-end">
  62. <!-- navbar items -->
  63. </div>
  64. </div>
  65. {% endcapture %}
  66. {% capture navbar_item_link_example %}
  67. <a class="navbar-item">
  68. Home
  69. </a>
  70. {% endcapture %}
  71. {% capture navbar_item_brand_example %}
  72. <a class="navbar-item">
  73. <img src="{{ site.url }}/images/bulma-logo.png" width="112" height="28">
  74. </a>
  75. {% endcapture %}
  76. {% capture navbar_item_dropdown_example %}
  77. <div class="navbar-item has-dropdown">
  78. <a class="navbar-link">
  79. Docs
  80. </a>
  81. <div class="navbar-dropdown">
  82. <!-- Other navbar items -->
  83. </div>
  84. </div>
  85. {% endcapture %}
  86. {% capture navbar_item_dropdown_bis_example %}
  87. <div class="navbar-dropdown">
  88. <a class="navbar-item">
  89. Overview
  90. </a>
  91. </div>
  92. {% endcapture %}
  93. {% capture navbar_item_other_example %}
  94. <div class="navbar-item">
  95. <div class="field is-grouped">
  96. <p class="control">
  97. <a id="class="button">
  98. <span class="icon">
  99. <i class="fa fa-twitter"></i>
  100. </span>
  101. <span>Tweet</span>
  102. </a>
  103. </p>
  104. <p class="control">
  105. <a class="button is-primary">
  106. <span class="icon">
  107. <i class="fa fa-download"></i>
  108. </span>
  109. <span>Download</span>
  110. </a>
  111. </p>
  112. </div>
  113. </div>
  114. {% endcapture %}
  115. {% capture navbar_transparent_example %}
  116. {% include navbar.html transparent=true boxed=true id="TransparentExample" %}
  117. {% endcapture %}
  118. {% capture navbar_dropdown_example %}
  119. <nav class="navbar">
  120. <div class="navbar-item has-dropdown">
  121. <a class="navbar-link">
  122. Docs
  123. </a>
  124. <div class="navbar-dropdown">
  125. <a class="navbar-item">
  126. Overview
  127. </a>
  128. <a class="navbar-item">
  129. Elements
  130. </a>
  131. <a class="navbar-item">
  132. Components
  133. </a>
  134. <hr class="navbar-divider">
  135. <div class="navbar-item">
  136. Version {{ site.version }}
  137. </div>
  138. </div>
  139. </div>
  140. </nav>
  141. {% endcapture %}
  142. {% capture navbar_dropdown_hover_example %}
  143. <nav class="navbar">
  144. <div class="navbar-item has-dropdown is-hoverable">
  145. <a class="navbar-link">
  146. Docs
  147. </a>
  148. <div class="navbar-dropdown">
  149. <a class="navbar-item">
  150. Overview
  151. </a>
  152. <a class="navbar-item">
  153. Elements
  154. </a>
  155. <a class="navbar-item">
  156. Components
  157. </a>
  158. <hr class="navbar-divider">
  159. <div class="navbar-item">
  160. Version {{ site.version }}
  161. </div>
  162. </div>
  163. </div>
  164. </nav>
  165. {% endcapture %}
  166. {% capture navbar_dropdown_active_example %}
  167. <nav class="navbar">
  168. <div class="navbar-item has-dropdown is-active">
  169. <a class="navbar-link">
  170. Docs
  171. </a>
  172. <div class="navbar-dropdown">
  173. <a class="navbar-item">
  174. Overview
  175. </a>
  176. <a class="navbar-item">
  177. Elements
  178. </a>
  179. <a class="navbar-item">
  180. Components
  181. </a>
  182. <hr class="navbar-divider">
  183. <div class="navbar-item">
  184. Version {{ site.version }}
  185. </div>
  186. </div>
  187. </div>
  188. </nav>
  189. {% endcapture %}
  190. {% capture navbar_dropdown_default_example %}
  191. <nav class="navbar">
  192. <a class="navbar-item">
  193. <img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.title }}" width="112" height="28">
  194. </a>
  195. <div class="navbar-item has-dropdown is-active">
  196. <a class="navbar-link">
  197. Docs
  198. </a>
  199. <div class="navbar-dropdown">
  200. <a class="navbar-item">
  201. Overview
  202. </a>
  203. <a class="navbar-item">
  204. Elements
  205. </a>
  206. <a class="navbar-item">
  207. Components
  208. </a>
  209. <hr class="navbar-divider">
  210. <div class="navbar-item">
  211. Version {{ site.version }}
  212. </div>
  213. </div>
  214. </div>
  215. </nav>
  216. <section class="hero is-primary">
  217. <div class="hero-body">
  218. <p class="title">
  219. Documentation
  220. </p>
  221. <p class="subtitle">
  222. Everything you need to <strong>create a website</strong> with Bulma
  223. </p>
  224. </div>
  225. </section>
  226. {% endcapture %}
  227. {% capture navbar_dropdown_boxed_example %}
  228. <nav class="navbar is-transparent">
  229. <a class="navbar-item">
  230. <img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.title }}" width="112" height="28">
  231. </a>
  232. <div class="navbar-item has-dropdown is-active">
  233. <a class="navbar-link">
  234. Docs
  235. </a>
  236. <div class="navbar-dropdown is-boxed">
  237. <a class="navbar-item">
  238. Overview
  239. </a>
  240. <a class="navbar-item">
  241. Elements
  242. </a>
  243. <a class="navbar-item">
  244. Components
  245. </a>
  246. <hr class="navbar-divider">
  247. <div class="navbar-item">
  248. Version {{ site.version }}
  249. </div>
  250. </div>
  251. </div>
  252. </nav>
  253. <section class="hero">
  254. <div class="hero-body">
  255. <p class="title">
  256. Documentation
  257. </p>
  258. <p class="subtitle">
  259. Everything you need to <strong>create a website</strong> with Bulma
  260. </p>
  261. </div>
  262. </section>
  263. {% endcapture %}
  264. {% capture navbar_dropdown_item_active_example %}
  265. <nav class="navbar">
  266. <a class="navbar-item">
  267. <img src="{{ site.url }}/images/bulma-logo.png" alt="{{ site.title }}" width="112" height="28">
  268. </a>
  269. <div class="navbar-item has-dropdown is-active">
  270. <a class="navbar-link">
  271. Docs
  272. </a>
  273. <div class="navbar-dropdown">
  274. <a class="navbar-item">
  275. Overview
  276. </a>
  277. <a class="navbar-item is-active">
  278. Elements
  279. </a>
  280. <a class="navbar-item">
  281. Components
  282. </a>
  283. <hr class="navbar-divider">
  284. <div class="navbar-item">
  285. Version {{ site.version }}
  286. </div>
  287. </div>
  288. </div>
  289. </nav>
  290. <section class="hero is-primary">
  291. <div class="hero-body">
  292. <p class="title">
  293. Documentation
  294. </p>
  295. <p class="subtitle">
  296. Everything you need to <strong>create a website</strong> with Bulma
  297. </p>
  298. </div>
  299. </section>
  300. {% endcapture %}
  301. {% capture navbar_divider_example %}
  302. <hr class="navbar-divider">
  303. {% endcapture %}
  304. <section class="section">
  305. <div class="container">
  306. <div class="columns" style="margin-bottom: -0.75rem !important;">
  307. <div class="column">
  308. <h1 class="title">Navbar</h1>
  309. <h2 class="subtitle">
  310. A responsive horizontal <strong>navbar</strong> that can supports images, links, buttons, and dropdowns
  311. </h2>
  312. </div>
  313. <div class="column is-narrow">
  314. <p class="content">
  315. <span class="tag is-success">New!</span>
  316. <span class="tag is-info">0.4.3</span>
  317. </p>
  318. </div>
  319. </div>
  320. <hr>
  321. <div class="message is-success">
  322. <div class="message-body">
  323. <p>The new <code>navbar</code> replaces the deprecated <code>nav</code> component, whose documentation you can still access temporarily <a href="{{ site.url }}/documentation/components/nav/">here</a>.</p>
  324. </div>
  325. </div>
  326. <div class="content">
  327. <p>
  328. The <code>navbar</code> component is a responsive and versatile horizontal navigation bar with the following structure:
  329. </p>
  330. <ul>
  331. <li>
  332. <code>navbar</code> the <strong>main</strong> container
  333. <ul>
  334. <li>
  335. <code>navbar-brand</code> the <strong>left side</strong>, <strong class="has-text-success">always visible</strong>, which usually contains the <strong>logo</strong> and optionally some links or icons
  336. <ul>
  337. <li>
  338. <code>navbar-burger</code> the <strong>hamburger</strong> icon, which toggles the navbar menu on touch devices
  339. </li>
  340. </ul>
  341. </li>
  342. <li>
  343. <code>navbar-menu</code> the <strong>right side</strong>, hidden on touch devices, visible on desktop
  344. <ul>
  345. <li>
  346. <code>navbar-start</code> the <strong>left part</strong> of the menu, which appears next to the navbar brand on desktop
  347. </li>
  348. <li>
  349. <code>navbar-end</code> the <strong>right part</strong> of the menu, which appears at the end of the navbar
  350. <ul>
  351. <li>
  352. <code>navbar-item</code> each <strong>single item</strong> of the navbar, which can either be a <code>a</code> or a <code>div</code>
  353. <ul>
  354. <li>
  355. <code>navbar-link</code> a <strong>link</strong> as the sibling of a dropdown, with an arrow
  356. </li>
  357. <li>
  358. <code>navbar-dropdown</code> the <strong>dropdown menu</strong>, which can include navbar items and dividers
  359. <ul>
  360. <li>
  361. <code>navbar-divider</code> a <strong>horizontal line</strong> to separate navbar items
  362. </li>
  363. </ul>
  364. </li>
  365. </ul>
  366. </li>
  367. </ul>
  368. </li>
  369. </ul>
  370. </li>
  371. </ul>
  372. </li>
  373. </ul>
  374. </div>
  375. <div class="example is-paddingless">
  376. {{navbar_example}}
  377. </div>
  378. {% highlight html %}{{navbar_example}}{% endhighlight %}
  379. <hr>
  380. <h3 class="title">Navbar brand</h3>
  381. <div class="content">
  382. <p>
  383. The <code>navbar-brand</code> is the left side of the navbar. It can contain:
  384. </p>
  385. <ul>
  386. <li>
  387. a number of <code>navbar-item</code>
  388. </li>
  389. <li>
  390. the <code>navbar-burger</code> as last child
  391. </li>
  392. </ul>
  393. </div>
  394. {% highlight html %}{{navbar_brand_example}}{% endhighlight %}
  395. <div class="content">
  396. <p>
  397. The navbar brand is <strong>always visible</strong>: on both touch devices {% include bp/touch.html %} and desktop {% include bp/desktop.html %}. As a result, it is recommended to only use a few navbar items to avoid <strong>overflowing</strong> horizontally on small devices.
  398. </p>
  399. </div>
  400. <div class="example is-paddingless">
  401. {{navbar_brand_items_example}}
  402. </div>
  403. {% highlight html %}{{navbar_brand_items_example}}{% endhighlight %}
  404. <div class="content">
  405. <p>
  406. On desktop {% include bp/desktop.html %}, the navbar brand will only take up the space it needs.
  407. </p>
  408. </div>
  409. <hr>
  410. <h3 class="title">Navbar burger</h3>
  411. <div class="content">
  412. <p>
  413. The <code>navbar-burger</code> is a hamburger menu that only appears on <strong>mobile</strong>. It has to appear as the last child of <code>navbar-brand</code>.
  414. </p>
  415. </div>
  416. <div class="example is-paddingless">
  417. <div class="navbar-burger" style="display: flex;">
  418. <span></span>
  419. <span></span>
  420. <span></span>
  421. </div>
  422. </div>
  423. {% highlight html %}{{ navbar_burger_example }}{% endhighlight %}
  424. <div class="content">
  425. <p>
  426. You can add the modifier class <code>is-active</code> to turn it into a cross.
  427. </p>
  428. </div>
  429. <div class="example is-paddingless">
  430. <div class="navbar-burger is-active" style="display: flex;">
  431. <span></span>
  432. <span></span>
  433. <span></span>
  434. </div>
  435. </div>
  436. <hr>
  437. <h3 class="title">Navbar menu</h3>
  438. <div class="content">
  439. <p>
  440. The <code>navbar-menu</code> is the <strong>counterpart</strong> of the navbar brand. As such, it must appear as a direct child of <code>navbar-brand</code>, as a sibling of <code>navbar-brand</code>.
  441. </p>
  442. </div>
  443. {% highlight html %}{{navbar_menu_example}}{% endhighlight %}
  444. <div class="content">
  445. <p>
  446. The <code>navbar-menu</code> is <strong>hidden on touch devices</strong> {% include bp/touch.html %}. You need to add the modifier class <code>is-active</code> to display it.
  447. </p>
  448. </div>
  449. {% highlight html %}{{navbar_menu_active_example}}{% endhighlight %}
  450. <div class="content">
  451. <p>
  452. On desktop {% include bp/desktop.html %}, the <code>navbar-menu</code> will <strong>fill up the space</strong> available in the navbar, leaving the navbar brand just the space it needs. It needs, however, two elements as direct children:
  453. </p>
  454. <ul>
  455. <li>
  456. <code>navbar-start</code>
  457. </li>
  458. <li>
  459. <code>navbar-end</code>
  460. </li>
  461. </ul>
  462. </div>
  463. <hr>
  464. <h3 class="title">Navbar start and navbar end</h3>
  465. <div class="content">
  466. <p>
  467. The <code>navbar-start</code> and <code>navbar-end</code> are the two direct and only children of the <code>navbar-menu</code>.
  468. </p>
  469. <p>
  470. On desktop {% include bp/desktop.html %}:
  471. </p>
  472. <ul>
  473. <li>
  474. <code>navbar-start</code> will appear on the <strong>left</strong>
  475. </li>
  476. <li>
  477. <code>navbar-end</code> will appear on the <strong>right</strong>
  478. </li>
  479. </ul>
  480. <p>
  481. Each of them can contain any number of <code>navbar-item</code>.
  482. </p>
  483. </div>
  484. {% highlight html %}{{navbar_start_end_example}}{% endhighlight %}
  485. <hr>
  486. <h3 class="title">Navbar item</h3>
  487. <div class="content">
  488. <p>
  489. A <code>navbar-item</code> is a repeatable element that can be:
  490. </p>
  491. <ul>
  492. <li>
  493. a navigation <strong>link</strong>
  494. {% highlight html %}{{ navbar_item_link_example }}{% endhighlight %}
  495. </li>
  496. <li>
  497. a container for the <strong>brand logo</strong>
  498. {% highlight html %}{{ navbar_item_brand_example }}{% endhighlight %}
  499. </li>
  500. <li>
  501. the <strong>parent</strong> of a dropdown menu
  502. {% highlight html %}{{ navbar_item_dropdown_example }}{% endhighlight %}
  503. </li>
  504. <li>
  505. a child of a <strong>navbar dropdown</strong>
  506. {% highlight html %}{{ navbar_item_dropdown_bis_example }}{% endhighlight %}
  507. </li>
  508. <li>
  509. a container for almost <strong>anything</strong> you want, like a <code>field</code>
  510. {% highlight html %}{{ navbar_item_other_example }}{% endhighlight %}
  511. </li>
  512. </ul>
  513. <p>
  514. It can either be an anchor tag <code>&lt;a&gt;</code> or a <code>&lt;div&gt;</code>, as a <strong>direct child</strong> of either:
  515. </p>
  516. <ul>
  517. <li>
  518. <code>navbar</code>
  519. </li>
  520. <li>
  521. <code>navbar-brand</code>
  522. </li>
  523. <li>
  524. <code>navbar-start</code>
  525. </li>
  526. <li>
  527. <code>navbar-end</code>
  528. </li>
  529. <li>
  530. <code>navbar-dropdown</code>
  531. </li>
  532. </ul>
  533. </div>
  534. <hr>
  535. <h3 id="transparent-navbar" class="title">Transparent navbar</h3>
  536. <div class="content">
  537. <p>
  538. To seamlessly integrate the navbar in any visual context, you can add the <code>is-transparent</code> modifer on the <code>navbar</code> component. This will remove any hover or active background from the navbar items.
  539. </p>
  540. </div>
  541. <div class="example is-paddingless">
  542. {{navbar_transparent_example}}
  543. </div>
  544. {% highlight html %}{{navbar_transparent_example}}{% endhighlight %}
  545. <hr>
  546. <h3 id="dropdown-menu" class="title">Dropdown menu</h3>
  547. <div class="content">
  548. <p>
  549. To create a <strong>dropdown menu</strong>, you will need <strong>4</strong> elements:
  550. </p>
  551. <ul>
  552. <li>
  553. <code>navbar-item</code> with the <code>has-dropdown</code> modifier
  554. </li>
  555. <li>
  556. <code>navbar-link</code> which contains the dropdown arrow
  557. </li>
  558. <li>
  559. <code>navbar-dropdown</code> which can contain instances of <code>navbar-item</code> and <code>navbar-divider</code>
  560. </li>
  561. </ul>
  562. </div>
  563. <div class="columns">
  564. <div class="column">
  565. <div class="example is-paddingless">
  566. {{ navbar_dropdown_example }}
  567. </div>
  568. </div>
  569. <div class="column">
  570. {% highlight html %}{{ navbar_dropdown_example }}{% endhighlight %}
  571. </div>
  572. </div>
  573. <h4 class="title is-4">
  574. Show/hide the dropdown with either <strong>CSS</strong> or <strong>JavaScript</strong>
  575. </h4>
  576. <div class="content">
  577. <p>
  578. The <code>navbar-dropdown</code> is visible on touch devices {% include bp/touch.html %} but hidden on desktop {% include bp/desktop.html %}. <em>How</em> the dropdown is displayed on desktop depends on the parent's class.
  579. </p>
  580. <p>
  581. The <code>navbar-item</code> with the <code>has-dropdown</code> modifier, has <strong>2 additional modifiers</strong>
  582. </p>
  583. <ul>
  584. <li>
  585. <code>is-hoverable</code>: the dropdown will show up when <strong>hovering</strong> the parent <code>navbar-item</code>
  586. </li>
  587. <li>
  588. <code>is-active</code>: the dropdown will show up <strong>all the time</strong>
  589. </li>
  590. </ul>
  591. </div>
  592. <div class="message is-success">
  593. <p class="message-body">
  594. While the CSS <code>:hover</code> implementation works perfectly, the <code>is-active</code> class is available for users who want to control the display of the dropdown with <strong>JavaScript</strong>.
  595. </p>
  596. </div>
  597. <div class="columns">
  598. <div class="column">
  599. <div class="example is-paddingless">
  600. {{ navbar_dropdown_hover_example }}
  601. </div>
  602. </div>
  603. <div class="column">
  604. {% highlight html %}{{ navbar_dropdown_hover_example }}{% endhighlight %}
  605. </div>
  606. </div>
  607. <div class="columns">
  608. <div class="column">
  609. <div class="example is-paddingless">
  610. {{ navbar_dropdown_active_example }}
  611. </div>
  612. </div>
  613. <div class="column">
  614. {% highlight html %}{{ navbar_dropdown_active_example }}{% endhighlight %}
  615. </div>
  616. </div>
  617. <h4 class="title is-4">
  618. Styles for the dropdown menu
  619. </h4>
  620. <div class="content">
  621. <p>
  622. By default, the <code>navbar-dropdown</code> has:
  623. </p>
  624. <ul>
  625. <li>
  626. a grey <code>border-top</code>
  627. </li>
  628. <li>
  629. a <code>border-radius</code> at both bottom corners
  630. </li>
  631. </ul>
  632. </div>
  633. <div class="columns">
  634. <div class="column">
  635. <div class="example is-paddingless">
  636. {{ navbar_dropdown_default_example }}
  637. </div>
  638. </div>
  639. <div class="column">
  640. {% highlight html %}{{ navbar_dropdown_default_example }}{% endhighlight %}
  641. </div>
  642. </div>
  643. <div class="content">
  644. <p>
  645. When having a <a href="#transparent-navbar">transparent navbar</a>, it is preferable to use the boxed version of the dropdown, by using the <code>is-boxed</code> modifier.
  646. </p>
  647. <ul>
  648. <li>
  649. the grey border is <strong>removed</strong>
  650. </li>
  651. <li>
  652. a slight <strong>inner shadow</strong> is added
  653. </li>
  654. <li>
  655. all corners are <strong>rounded</strong>
  656. </li>
  657. <li>
  658. the hover/active state is <strong>animated</strong>
  659. </li>
  660. </ul>
  661. </div>
  662. <div class="columns">
  663. <div class="column">
  664. <div class="example is-paddingless">
  665. {{ navbar_dropdown_boxed_example }}
  666. </div>
  667. </div>
  668. <div class="column">
  669. {% highlight html %}{{ navbar_dropdown_boxed_example }}{% endhighlight %}
  670. </div>
  671. </div>
  672. <h4 class="title is-4">
  673. Active dropdown navbar item
  674. </h4>
  675. <div class="columns">
  676. <div class="column">
  677. <div class="example is-paddingless">
  678. {{ navbar_dropdown_item_active_example }}
  679. </div>
  680. </div>
  681. <div class="column">
  682. {% highlight html %}{{ navbar_dropdown_item_active_example }}{% endhighlight %}
  683. </div>
  684. </div>
  685. <h4 class="title is-4">
  686. Dropdown divider
  687. </h4>
  688. <div class="content">
  689. <p>
  690. You can add a <code>navbar-divider</code> to display a <strong>horizontal rule</strong> in a <code>navbar-dropdown</code>.
  691. </p>
  692. </div>
  693. {% highlight html %}{{ navbar_divider_example }}{% endhighlight %}
  694. </div>
  695. </section>