Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- code I used in this example made by https://github.com/hanscees -->

<nav class="navbar is-info" role="navigation" aria-label="main navigation">
  <input type="checkbox" id="toggler" class="toggler" /> <!-- for toggling functionality. Should be at the same level as navbar-menu -->
  <div class="navbar-brand"> <!-- left side of bulma navbar -->
    <a class="navbar-item" href="https://www.bomengids.nl">Bomengidsnl</a>
    <label for="toggler" role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
      <span aria-hidden="true"></span>
      <span aria-hidden="true"></span>
      <span aria-hidden="true"></span>
    </label>
  </div> <!-- end of left side of bulma navbar -->
  <div id="navbarBasicExample" class="navbar-menu" ><!-- dont shown on mobile -->
    <div class="navbar-start"><!-- left on big screen -->

      <!-- a dropdown menu -->
      <div class="navbar-item has-dropdown is-hoverable"><!-- begin dropdown box -->
        <input type="checkbox" id="dropdown1">
        <label for="dropdown1" class="navbar-link"> <img src="https://www.bomengids.nl/cssimages/treeicon-sss.png"> example </label> <!-- title dropdown -->

        <div id="dropdown-content1" class="navbar-dropdown"><!-- dropdown box items -->
          <a class="navbar-item" href="https://www.bomengids.nl/2015/families/berkfamilie.html" target="new">Berk familie</a>
          <a class="navbar-item"  target="new">X familie</a>
          <a class="navbar-item"  target="new">X familie</a>
        </div><!-- end dropdown box -->
    </div><!-- end dropdown menu -->



      <!-- a dropdown menu -->
      <div class="navbar-item has-dropdown is-hoverable"><!-- begin dropdown menu -->
        <input type="checkbox" id="dropdown2">
        <label for="dropdown2" class="navbar-link"> <img src="https://www.bomengids.nl/cssimages/treeicon-sss.png"> families </label> <!-- title dropdown -->

        <div id="dropdown-content2" class="navbar-dropdown"><!-- dropdown box items -->
          <a class="navbar-item" href="https://www.bomengids.nl/2015/families/berkfamilie.html" target="new">Berk familie</a>
          <a class="navbar-item" href="https://www.bomengids.nl/2015/families/eikfamilie.html" target="new">Eiken</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/elsfamilie.html" target="new">Elzen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/esfamilie.html" target="new">Essen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/esdoornfamilie.html" target="new">Esdoorns</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/iepfamilie.html" target="new">Iepen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/lindenfamilie.html" target="new">Linden</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/populierfamilie.html" target="new">Populieren</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/kersfamilie.html" target="new">Kersen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/lijsterbesfamilie.html" target="new">Lijsterbessen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/leguminosafamilie.html" target="new">Vlinderbloemigen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/wilgfamilie.html" target="new">Wilgen</a>

          <hr class="navbar-divider">
        </div><!-- end dropdown box -->
    </div><!-- end dropdown menu -->


 <!-- a dropdown menu -->
      <div class="navbar-item has-dropdown is-hoverable"><!-- begin dropdown box -->
        <input type="checkbox" id="dropdown3">
        <label for="dropdown3" class="navbar-link"> <img src="https://www.bomengids.nl/cssimages/treeicon-sss.png"> example </label> <!-- title dropdown -->

        <div id="dropdown-content3" class="navbar-dropdown"><!-- dropdown box items -->
          <a class="navbar-item" href="https://www.bomengids.nl/2015/families/dennen.html"  target="new">Dennen</a>
          <a class="navbar-item" href="https://www.bomengids.nl/2015/families/sparren.html" target="new">Sparren</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/zilversparren.html" target="new">Zilversparren</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/cypressen.html" target="new">Cypressen</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/ceders.html" target="new">Ceders</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/sequoias.html" target="new">Sequoias</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/hemlockdouglas.html" target="new">Hemlocks & Douglas spar</a>
		  <a class="navbar-item" href="https://www.bomengids.nl/2015/families/gymnospermsfamilie.html" target="new">Rest, Larix Taxus ..</a>


        </div><!-- end dropdown box -->
    </div><!-- end dropdown menu -->
 </div><!-- end navbar-start-->



    <div class="navbar-end"><!-- right on big screen -->
      <div class="navbar-item">
        <div class="buttons">
          <a class="button is-primary">
            <strong>Sign up</strong>
          </a>
          <a class="button is-light">
            Log in
          </a>
        </div><!-- end buttons -->
      </div><!-- end navbar-item -->
    </div><!-- end navbar-end -->
  </div> <!-- end navbar-menu -->
</nav>



<p></p>

<h1>Implementation of bulma navbar hamburger without javascript </h1>
<p>following <a target="_blank" href="https://github.com/jgthms/bulma/issues/2500"> bulma github issue #2500</a>.</p>
<p>As per request hamburger doesn't change style when toggled.</p>
              
            
!

CSS

              
                /* We don't need checkbox to be displayed in order for it to work */
.toggler {
  display: none;
}

/* Below are all the functionalities */

/* Hamburger changes to X when toggler is checked */
.navbar .toggler:checked + .navbar-brand .burger span:nth-child(1) {
  -webkit-transform: translateY(5px) rotate(45deg);
  transform: translateY(5px) rotate(45deg);
}
.navbar .toggler:checked + .navbar-brand .burger span:nth-child(2) {
  opacity: 0;
}
.navbar .toggler:checked + .navbar-brand .burger span:nth-child(3) {
  -webkit-transform: translateY(-5px) rotate(-45deg);
  transform: translateY(-5px) rotate(-45deg);
}

/*  Displays menu when toggler is checked only on mobile/tablet */
@media screen and (max-width: 1024px) {
  .navbar .toggler:checked ~ .navbar-menu {
    display: block;
  }
  /* We don't want menu to be displayed on mobile by default */
  .navbar-menu {
    display: none;
  }
}

/* For dropdown functionality */

/* Same reason as for checkbox */
.has-dropdown input[type=checkbox] {
  display: none;
}
/* Hide by default */
.navbar-dropdown {
  display: none;
}
/* The functionality */
#dropdown1:checked ~ #dropdown-content1,
#dropdown2:checked ~ #dropdown-content2,
#dropdown3:checked ~ #dropdown-content3 {
    display: block;
}
              
            
!

JS

              
                
              
            
!
999px

Console