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

              
                <!-- -------------- -->
<!-- Navigation Bar -->
<!-- -------------- -->

<div class="navigationbar-wrapper">
  <div class="top-bar">
    <div class="row">
      <div class="small-12 columns">
        <div class="top-bar-title">
          <a href="#"><img src="http://mlearning.com/MEDIA/logos/onpoint-logo.png"></a>
        </div>
        <div id="responsive-menu">
          <div class="top-bar-left">
            <ul class="dropdown menu icon-top" data-dropdown-menu>
              <li>
                <div class="nav-search">
                  <span class="fa fa-search"></span>
                  <input type="search" placeholder="Search">
                </div>
              </li>
              <li><a href="#"><i class="fa fa-pencil" aria-hidden="true"></i> <span>Assignments</span></a></li>
              <li class="vert-rule"></li>
              <li><a onclick="myNotifications()"><i class="fa fa-envelope" aria-hidden="true"></i> <span>Notifications</span>
            <span class="nav-splat">3<span></a>
          </li>
          <li class="vert-rule"></li>
          <li><a href="#"><i class="fa fa-trophy" aria-hidden="true"></i> <span>Games</span></a></li>
          <li class="vert-rule"></li>
          <li><a href="#"><i class="fa fa-code-fork" aria-hidden="true"></i> <span>Networks</span></a></li>
          <li class="vert-rule"></li>
          <li><a href="#"><i class="fa fa-globe" aria-hidden="true"></i> <span>Forums</span></a></li>
          <li class="vert-rule"></li>
          <li><a href="#"><i class="fa fa-film" aria-hidden="true"></i> <span>Media</span></a></li>
        </ul>
      </div>
      <div class="top-bar-right">
        <ul class="dropdown menu icon-top" data-dropdown-menu>
          <li><a onclick="myManage()"><i class="fa fa-briefcase" aria-hidden="true"></i> <span>Manage</span></a></li>
          <li class="vert-rule"></li>
          <li><a href="#"><i class="fa fa-cog" aria-hidden="true"></i> <span>Settings</span></a></li>
          <li><a onclick="myProfile()"><i class="fa fa-user-circle nav-user" aria-hidden="true"></i> <span class="nav-user">Sean Mihaly</span></a></li>
        </ul>
      </div>
    </div>
  </div>
</div>

  <!-- ------------------- -->
  <!-- Notification Bubble -->
  <!-- ------------------- -->

  <div class="notif-bubble" id="myNotificationBubble" style="display: none;">
    <div class="notif-triangle"></div>

    <div class="row" id="accordion1">
      <div class="small-2 columns">
        <img src="http://mlearning.com/MEDIA/base-thumb.png">
      </div>
      <div class="notif-title">
        <h2 class="small-9 columns">You have not completed this nugget assignment!</h2>
        <div class="notif-status small-1 columns">
          <i class="fa fa-circle-o" aria-hidden="true"></i>
        </div>
        <span class="notif-lighter small-10 columns">Base Nugget 1</span>
      </div>
      <div class="notif-details small-12 columns" id="one">
        <p>Please be sure to complete the nugget by <span style="color:red;">6:00pm</span> on <span style="color:red;">6/1/2017</span> in order to proceed to the next skill profile in the curriculum. Failure to do so will result in a <strong>incompletion and ejection</strong>          from the program.</p>
      </div>
    </div>

    <div class="notif-action-buttons row">
      <div class="small-6 small-offset-6 columns text-right">
        <a href="#one"><span class="notif-launch">VIEW DETAILS</span></a>
        <span class="notif-launch">LAUNCH</span>
      </div>
    </div>
    <hr>

    <div class="row" id="accordion2">
      <div class="small-2 columns">
        <img src="http://mlearning.com/MEDIA/base-thumb.png">
      </div>
      <div class="notif-title">
        <h2 class="small-9 columns">You have not completed this nugget assignment!</h2>
        <div class="notif-status small-1 columns">
          <i class="fa fa-circle-o" aria-hidden="true"></i>
        </div>
        <span class="notif-lighter small-10 columns">Base Nugget 1</span>
      </div>
      <div class="notif-details small-12 columns" id="two">
        <p>Please be sure to complete the nugget by <span style="color:red;">6:00pm</span> on <span style="color:red;">6/1/2017</span> in order to proceed to the next skill profile in the curriculum. Failure to do so will result in a <strong>incompletion and ejection</strong>          from the program.</p>
      </div>
    </div>

    <div class="notif-action-buttons row">
      <div class="small-6 small-offset-6 columns text-right">
        <a href="#two"><span class="notif-launch">VIEW DETAILS</span></a>
        <span class="notif-launch">LAUNCH</span>
      </div>
    </div>
    <hr>

    <div class="row" id="accordion3">
      <div class="small-2 columns">
        <img src="http://mlearning.com/MEDIA/base-thumb.png">
      </div>
      <div class="notif-title">
        <h2 class="small-9 columns">You have not completed this nugget assignment!</h2>
        <div class="notif-status small-1 columns">
          <i class="fa fa-circle-o" aria-hidden="true"></i>
        </div>
        <span class="notif-lighter small-10 columns">Base Nugget 1</span>
      </div>
      <div class="notif-details small-12 columns" id="three">
        <p>Please be sure to complete the nugget by <span style="color:red;">6:00pm</span> on <span style="color:red;">6/1/2017</span> in order to proceed to the next skill profile in the curriculum. Failure to do so will result in a <strong>incompletion and ejection</strong>          from the program.</p>
      </div>
    </div>

    <div class="notif-action-buttons row">
      <div class="small-6 small-offset-6 columns text-right">
        <a href="#three"><span class="notif-launch">VIEW DETAILS</span></a>
        <span class="notif-launch">LAUNCH</span>
      </div>
    </div>
  </div>

  <!-- ------------- -->
  <!-- Manage Bubble -->
  <!-- ------------- -->

  <div class="manage-bubble" id="myManageBubble" style="display: none;">
    <div class="manage-triangle"></div>

    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns">Performance Manager</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns">Content Manager</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div class="manage-title">
          <h2 class="small-12 columns">Event Attendance</h2>
        </div>
      </a>
    </div>
  </div>

  <!-- -------------- -->
  <!-- Profile Bubble -->
  <!-- -------------- -->

  <div class="profile-bubble" id="myProfileBubble" style="display: none;">
    <div class="profile-triangle"></div>

    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns"><i class="fa fa-id-card" aria-hidden="true"></i> Status</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns"><i class="fa fa-certificate" aria-hidden="true"></i> Certificates</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns"><i class="fa fa-bookmark" aria-hidden="true"></i> Favorites</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns"><i class="fa fa-question-circle" aria-hidden="true"></i> Help</h2>
        </div>
      </a>
    </div>
    <hr>
    <div class="row">
      <a href="#">
        <div>
          <h2 class="small-12 columns"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</h2>
        </div>
      </a>
    </div>
    <div class="row">
      <span class="small-12 columns profile-time">Last Login: Jan-19-2017 11:48 AM</span>
    </div>
  </div>

</div>
<!-- End Navigation Bar -->
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto:400,100,500,300italic,500italic,700italic,900,300);

body {
  font-family: "Roboto", 'Helvetica Neue, Helvetica, Arial';
  background-color: #e0e0e0;
  height: 600px;
}

h2 {
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  display: initial;
  margin: initial;
}

h2 > i {
	text-align: center;
	min-width: 20px;
}

p {
  font-size: .85rem;
}

span {
  font-size: .85rem;
  font-weight: light;
}

hr {
	border-color: #e4e4e4;
	width: 96%;
	margin: 8px auto;
}





.navigationbar-wrapper {
  position: relative;
  width: 100%;
  top: 0;
  left: 0%;
}

.top-bar {
  background-color: #340C36;
  z-index: 1;
}

.top-bar ul {
  background-color: #340C36;
}

.top-bar-title a > img {
  max-height: 52px;
  max-width: 200px;
}

.menu.icon-top li > a {
  color: white;
  padding-left: 0;
  padding-right: 0;
  min-width: 80px;
  height: 65px;
}

.menu.icon-top li a:hover {
  background-color: #5f4260;
}

.menu li input {
  font-size: 1rem;
  height: 27px;
  border-radius: 50px;
  display: initial;
  margin: initial;
  padding: 0 10px 0 29px;
  border: none;
}

.menu li input:focus {
  box-shadow: none;
  border: none;
}

.menu li i {
  font-size: 1.5rem;
  padding-bottom: 5px;
}

.menu li span {
  font-size: .75rem;
}

.menu li i.nav-user {
  font-size: 2.6rem;
  height: 30px;
  position: relative;
  top: -10px;
}

.vert-rule {
  border-right: 1px solid white;
  opacity: .15;
}

.nav-splat {
  position: relative;
  display: table;
  top: -58px;
  left: 41px;
  background-color: red;
  padding: 2px 4px;
  border: 2px solid white;
  border-radius: 15px;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Chrome and Opera */
}

.nav-search {
  position: relative;
  width: 99%;
  font-size: 1rem;
}

.nav-search input {
  width: 250px;
  height: 32px;
  color: grey;
}

.nav-search .fa-search { 
  font-size: 1.1rem;
  position: absolute;
  top: 5px;
  left: 12px;
}

.menu [type=search] {
  margin-left: 5px;
  margin-right: 15px;
}







.notif-bubble {
  display: none;
  position: absolute;
  left: 8.75%;
  top: 65px;
  width: 600px;
  max-height: 100%;
	margin: 25px 0 25px 33%;
  padding: 0 0 18px 0;
  border: 1px solid black;
  border-radius: 4px;
  box-shadow: 0 3px 1px rgba(0,0,0,.15);
  background-color: #f3f3f3;
  z-index: 2;
}

.notif-triangle {
  position: relative;
  margin: 0;
  top: -11px;
  left: 20%;
  width: 20px;
  height: 20px;
  background-color: #f3f3f3;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.notif-bubble > div.row {
	padding-top: 8px;
}

.notif-action-buttons {
	margin: 8px 0 0 0;
}

.notif-action-buttons > div {
	margin-bottom: 4px;
}

.notif-action-buttons span {
	padding: 8px;
	line-height: 2rem;
}

.notif-launch {
	font-weight: bold;
	font-size: .88rem;
	padding: 8px;
	cursor: pointer;
	color: #4d4d4d;
}

.notif-launch:hover {
	background-color: #d6d6d6;
	opacity: .9;
	box-shadow: 0 0px 0px #b6b6b6;
	transition: box-shadow .05s;
}

.notif-launch:active {
	opacity: 1;
	box-shadow: 0 2px 8px #b6b6b6;
}

.notif-details {
  margin: 16px 0 0 0;
	overflow: hidden;
	display: none;
}

.notif-details:target {
	display: block;
}

.notif-lighter {
	color: #aaa;
}





.manage-bubble {
  display: none;
  position: absolute;
  left: 603px;
  top: 65px;
  width: 220px;
  max-height: 100%;
	margin: 25px 0 25px 33%;
  padding: 0 0 18px 0;
  border: 1px solid black;
  border-radius: 4px;
  box-shadow: 0 3px 1px rgba(0,0,0,.15);
  background-color: #f3f3f3;
  z-index: 3;
}

.manage-triangle {
  position: relative;
  margin: 0;
  top: -11px;
  left: 45%;
  width: 20px;
  height: 20px;
  background-color: #f3f3f3;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.row h2 {
	color: black;
	padding-top: 4px;
	padding-bottom: 4px;
	margin: 0 auto;
}

.manage-bubble > .row h2:hover {
	background-color: #d6d6d6;
	opacity: .9;
}








.profile-bubble {
  display: none;
  position: absolute;
  left: 687px;
  top: 65px;
  width: 220px;
  max-height: 100%;
	margin: 25px 0 25px 33%;
  padding: 0 0 18px 0;
  border: 1px solid black;
  border-radius: 4px;
  box-shadow: 0 3px 1px rgba(0,0,0,.15);
  background-color: #f3f3f3;
  z-index: 4;
}

.profile-triangle {
  position: relative;
  margin: 0;
  top: -11px;
  left: 80%;
  width: 20px;
  height: 20px;
  background-color: #f3f3f3;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.row h2 {
	color: black;
	padding-top: 4px;
	padding-bottom: 4px;
	margin: 0 auto;
}

.profile-bubble > .row h2:hover {
	background-color: #d6d6d6;
	opacity: .9;
}

.profile-time {
	position: relative;
	margin-top: 10px;
	top: 12px;
	opacity: .5;
	font-size: .73rem;
}
              
            
!

JS

              
                function myNotifications() {
    var x = document.getElementById('myNotificationBubble');
    if (x.style.display === 'none') {
        x.style.display = 'table';
    } else {
        x.style.display = 'none';
    }
}

function myManage() {
    var y = document.getElementById('myManageBubble');
    if (y.style.display === 'none') {
        y.style.display = 'table';
    } else {
        y.style.display = 'none';
    }
}

function myProfile() {
    var z = document.getElementById('myProfileBubble');
    if (z.style.display === 'none') {
        z.style.display = 'table';
    } else {
        z.style.display = 'none';
    }
}
              
            
!
999px

Console