Pen Settings



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


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


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.


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.


                <div class="content">
  <h1>THE LEGEND <sup>of</sup> <span>ZELDA</span></h1>
<div class="menu-holder">
   <ul id="sub-pages-menu" class="closed">
    <li><a class="toggle" href="#">Choose an Adventure</a></li>
    <li><a href="#">The Legend of Zelda</a></li>
    <li><a href="#">The Adventure of Link</a></li>
    <li><a href="#">A Link to the Past</a></li>
    <li><a href="#">Ocorina of Time</a></li>
    <li><a href="#">Majora's Mask</a></li>
    <li><a href="#">The Wind Waker</a></li>
    <li><a href="#">Twilight Princess</a></li>
    <li><a href="#">Skyward Sword</a></li>

<div class="entry">
  The Legend of Zelda (ゼルダの伝説 Zeruda no Densetsu?) is an action-adventure video game series created by Japanese game designers Shigeru Miyamoto and Takashi Tezuka. It is developed and published by Nintendo, with some portable installments outsourced to Flagship/Capcom, Vanpool, and Grezzo. Considered one of Nintendo's most important franchises, its gameplay consists of a mixture of action, adventure, and puzzle solving. The series centers primarily on Link, the playable character and the protagonist. Link is often given the task of rescuing Princess Zelda in the most common setting of the series, Hyrule, from Ganon (also known as Ganondorf), a Gerudo chief who is the primary antagonist of the series. However, other settings and antagonists have appeared throughout the games, with Vaati being a strong secondary antagonist during the lifespan of the Game Boy Advance. The story commonly involves a relic known as the Triforce, which is a set of three omnipotent golden triangles. The protagonist in each game is usually not the same incarnation of Link, but a few exceptions do exist.
As of December 2011, The Legend of Zelda franchise has sold 67.93 million copies since the release of the first game,[1] with the original Legend of Zelda being the fourth best selling NES game of all time.[2][3] The series consists of 16 official games on all of Nintendo's major consoles, as well as several spin-offs. An American animated series based on the games aired in 1989, and individual manga adaptations which are officially endorsed and commissioned by Nintendo have been produced in Japan since 1997.
The Legend of Zelda franchise is the inaugural recipient of Spike TV's first ever Video Game Hall of Fame award. The franchise was inducted on December 10, 2011 during the 2011 Spike Video Game Awards.[4]


                @import "compass/css3";

$border-props: solid 1px #bbb;
$line-height: 39px;

@import url(|Gabriela);

body {
  background: #222;
  color: #444;
  line-height: 1.6;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  font-family: "merriweather sans"

h1 {
  font-weight: normal;
  letter-spacing: 2px;
  font-size: 3em;
  margin: 0;
  padding: 35px 0;
  line-height: 1;
  font-family: Gabriela;
  color: #aaa;
  sup {
    font-style: italic;
    font-size: 50%;
  span {
    color: #FF3333;

.content {
  width: 75%;
  margin: 0 auto;
  background: #fefefe;
  padding: 20px 40px;

.menu-holder {
  posiiton: relative;
  margin: 20px auto 40px;
  height: 40px;

ul {
  overflow: hidden;
  position: absolute;
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 220px;
  border-top: $border-props;
  -moz-transition: height 0.3s ease;
  -o-transition: height 0.3s ease;
  -ms-transition: height 0.3s ease;
  -webkit-transition: height 0.3s ease;
  transition: height 0.3s ease;
  &.closed {
    height: 39px;

  .li_9 {
    height: $line-height*9;
li {
  line-height: 38px;
  background: #eee;
  border: $border-props;
  border-top: none;
  &:first-child a:after {
    content: "▼"; 
    float: right;
    font-size: 80%;
    margin: 2px 15px 0 0;
  a {
    display: block;
    padding: 0 0 0 15px;
    text-decoration: none;
    color: #444444;
    -moz-transition: background 0.3s ease;
    -o-transition: background 0.3s ease;
    -ms-transition: background 0.3s ease;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
    &:hover {
      background: #ccc; 
      color: #222;


                $subPagesMenu = $('#sub-pages-menu');

var liCount = $subPagesMenu.find('li').length;
$subPagesMenu.addClass('li_' + liCount);

  .on('click',function (event) {
    $this = $(this);
    if ($('toggle')) {

  .hover(null, function () {
    $this = $(this);