css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="presentation">
  <h1>Targeting Options</h1>
  
  <div class="sprout-drilldown-flyout">
      <div class="flyout-header">
        <a href="javascript:void(0)" class="flyout-header-label js-back-twitter">&#8249; Networks</a>
        <a href="javascript:void(0)" class="flyout-header-label js-back-facebook">&#8249; Networks</a>  
        <a href="javascript:void(0)" class="flyout-header-label js-back-gplus">&#8249; Networks</a>
        <span class="flyout-section-title">Targeting</span>
        
        <span class="flyout-header-icon"></span>
      </div>
      <div class="flyout-body">
        <div class="flyout-body-content">

     <ul class="flyout-drilldown-items _targeting-drilldown">
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link js-target-twitter _twitter "><span class="fa fa-twitter flyout-drilldown-item-icon ficon"></span> Twitter &rsaquo;</a>
        </li>
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link js-target-facebook _facebook"><span class="fa fa-facebook-square flyout-drilldown-item-icon ficon"></span> Facebook &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link js-target-gplus _gplus is-selected"><span class="fa fa-google-plus flyout-drilldown-item-icon ficon"></span>Google+ &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link js-target-linkedin _linkedin"><span class="fa fa-linkedin-square flyout-drilldown-item-icon ficon"></span>LinkedIn &rsaquo;</a>
        </li>
      </ul>
        
        
       <!-- Twitter --> 
      <div class="flyout-body-search _twitter-drilldown">
          <input type="search" placeholder="Example: All Countries" class="js-account-picker-search flyout-body-search-field">
      </div>
      <ul class="flyout-drilldown-items _twitter-drilldown">
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Michigan</a>
        </li>
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Texas</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Califronia</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Hawaii</a>
        </li>
      </ul>
  
          <!--Facebook --> 

      <ul class="flyout-drilldown-items _facebook-drilldown">
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Target Countries &rsaquo;</a>
        </li>
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link is-selected">Target Cities &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Target Zip Code &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Unpublished Post</a>
        </li>
      </ul>
     
           
       <div class="flyout-body-search _facebook-drilldown_l2">
          <input type="search" placeholder="Example: All States" class="js-account-picker-search flyout-body-search-field">
      </div>
      <ul class="flyout-drilldown-items _facebook-drilldown_l2">
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Alabama &rsaquo;</a>
        </li>
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Alaska &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arizona &rsaquo;</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link">Arkansas</a>
        </li>
      </ul>            
        
        <!--Google Plus --> 
        <div class="flyout-body-search _gplus-drilldown">
          <input type="search" placeholder="Example: All Circles" class="js-account-picker-search flyout-body-search-field">
      </div>
      <ul class="flyout-drilldown-items _gplus-drilldown">
        <li class="flyout-drilldown-item">
          <input type="checkbox" id="flyout-drilldown-gplus-allowcomments" class="checkbox js-allowcomments">
          <label class="checkbox-label" for="flyout-drilldown-gplus-allowcomments">
            <span class="checkbox-visible"></span>
            <span class="checkbox-label-text">Allow Comments</span>
          
          </label>
        </li>
        <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link"><span class="fa fa-mars-stroke flyout-drilldown-item-icon ficon"></span> Your Circles</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link"><span class="fa fa-mars-double flyout-drilldown-item-icon ficon"></span> Extended Circles</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link"><span class="fa fa-mars-stroke flyout-drilldown-item-icon ficon"></span> Following</a>
        </li>
         <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link"><span class="fa fa-transgender flyout-drilldown-item-icon ficon "></span> Customers</a>
        </li>
          <li class="flyout-drilldown-item"><a href="javascript:void(0)" class="flyout-drilldown-item-link"><span class="fa fa-dribbble flyout-drilldown-item-icon ficon"></span> VIPs</a>
        </li>     
        </ul>            
             
    </div>
        
  </div>
    </div>
  
</div>
  </div>
            
          
!
            
              //Start reset and base variables
input[type='search']::-webkit-search-decoration, 
input[type='search']::-webkit-search-cancel-button, 
input[type='search']::-webkit-search-results-button, 
input[type='search']::-webkit-search-results-decoration {
	display: none;
}	
//  Grayscale

	@gray10: #1a1a1a;
	@gray15: #262626;
	@gray20: #333;
	@gray30: #4d4d4d;
	@gray40: #666;
	@gray50: #808080;
	@gray60: #999;
	@gray70: #b3b3b3;
	@gray80: #ccc;
	@gray83: #d5d5d5;
	@gray87: #ddd;
	@gray90: #e6e6e6;
	@gray93: #eee;
	@gray97: #f7f7f7;
	@white: #fff;

	//  General

	@green-dark: #5c9132;
	@green-hover: #62b621;
	@green: #7ac143;
	@green80: #95cd69;
	@green60: #afda8e;
	@blue-personal: #66a6e9;
	@blue-dark: #164d7d;
	@red-dark: #d40025;
	@red: #ee0029;
	@orange: #FFF2D8;
	@orange-dark: #FFA800;

	//  Networks

	@twitter-dark: #2797c8;
	@twitter: #2caae1;
	@linkedin-dark: #0078a8;
	@linkedin: #008ac1;
	@facebook-dark: #314a7f;
	@facebook: #3b5998;
	@google-dark: #c24232;
	@google: #dc4b38;
	@gplus: #db4a37;
	@analytics-dark: #e69800;
	@analytics: #ffa800;

body {
  margin: 0;
  padding: 0;
  font-family: proxima nova;
  color: #fff;
  background: #4C4C4C;
  font-size: 16px;
}
h1 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 20px
}
.presentation {
  margin: 20px auto;
  width: 700px;
  background: #4C4C4C;
  height: 600px;
  padding: 0 40px 40px;
}
//End reset and base variables




.sprout-drilldown-flyout {
  width: 260px;
  border-radius: 5px;
  
    .flyout-header { 
      position: relative;
      border-radius: 5px 5px 0 0;
      min-height: 15px; //show proper padding when header is empty
      background: @gray97;
      transition: 150ms padding ease;
      padding: 10px 15px;
      min-height: 20px;
        
      &:before {
        content: '';
        width: 0; 
        height: 0; 
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid @white;
        position: absolute;
        top: -10px; 
        left: 50%;
      }
        
    }
    .flyout-section-title {
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 12px; 
      color: @gray60;
      font-weight: 600;
      margin-bottom: 10px;
      
    }     

     &._twitter .flyout-header  { 
       background: @twitter;
         &:before { border-bottom-color: @twitter; }
     }
     &._facebook .flyout-header  { 
       background: @facebook; 
         &:before { border-bottom-color: @facebook; }
     }
     &._gplus .flyout-header  { 
       background: @gplus; 
         &:before { border-bottom-color: @gplus; }
     }
     &._linkedin .flyout-header  { 
       background: @linkedin; 
         &:before { border-bottom-color: @linkedin; }
     }
  
  
    .flyout-header-icon { font-size: 20px; float: right; }
  
    .flyout-header-label { 
      color: @white; 
      margin-bottom: 10px;
      font-size: 14px; 
      text-decoration: none;
      text-transform: lowercase;
      display:none;
        &:hover { text-decoration: underline; }
    }
  
    .flyout-body {
      background: @gray97;
      color: @gray30;
      max-height: 280px;
      width: 260px;
      overflow: hidden;
      overflow-y: auto;
      border-radius: 0 0 5px 5px;
        
        &-content { overflow:hidden; }
        &-content.is-animating {
          -webkit-animation: flyoutSlide 0.5s cubic-bezier(0.86, 0, 0.07, 1); 
          animation: flyoutSlide 0.5s cubic-bezier(0.86, 0, 0.07, 1);
        }
        &-content.is-animating-back {
          -webkit-animation: flyoutSlideBack 0.5s cubic-bezier(0.86, 0, 0.07, 1); 
          animation: flyoutSlideBack 0.5s cubic-bezier(0.86, 0, 0.07, 1);
        }
      .flyout-body-search { position: relative; }

          .flyout-body-search-field {
            width: 230px;
            margin: 15px;
            padding: 10px;
            display: block;
            border-radius: 0;
            font-size: 14px;
            -webkit-appearance: textfield;
            outline: none;
            border: 1px solid #ccc;
          }

          .flyout-body-search-field:focus { border-color: #7ac143; }


        .flyout-drilldown-items { 
          margin: 0; 
          padding: 0; 
          list-style-type: none;
          
              ._twitter .flyout-drilldown-item-icon { color: @twitter; }
              ._facebook .flyout-drilldown-item-icon { color: @facebook; }
              ._gplus .flyout-drilldown-item-icon { color: @gplus; }
              ._linkedin .flyout-drilldown-item-icon { color: @linkedin; }  
          
            &._targeting-drilldown {
              
              .is-selected, 
              .is-selected .flyout-drilldown-item-icon { color: @white; }
              ._twitter.is-selected { background: @twitter; }
              ._facebook.is-selected { background: @facebook; }
              ._gplus.is-selected { background: @gplus; }
              ._linkedin.is-selected { background: @linkedin; }
            }
        }
        .flyout-drilldown-item {
          input[type="checkbox"] {visibility: hidden;  position: absolute; }
          
          &-icon { padding-right: 10px;}
          .checkbox-label {
            font-size: 14px;
            padding: 10px 15px;
            cursor: pointer;
          }
          .checkbox-label-text {  
            padding-top: 2px; 
            width: 200px;
            display: inline-block;
          } 
          .checkbox-visible {
            postion: relative;
            top: -3px;
            left: -3px;  
            
          }
        }
        ._twitter-drilldown, ._facebook-drilldown, ._facebook-drilldown_l2,
        ._gplus-drilldown ,._linkedin-drilldown { display: none; }

          .flyout-drilldown-item-link {
            color: @gray30;
            text-decoration: none;
            border-top: 1px solid @gray83;
            padding: 10px 15px;
            display: block;
            cursor: pointer;
            font-size: 14px;
              &:hover { background: @white; }
          }
          
          ._twitter-drilldown .flyout-drilldown-item-link.is-selected { background: @twitter; color: @white; }
          ._facebook-drilldown .flyout-drilldown-item-link.is-selected { background: @facebook; color: @white;  }
          ._gplus-drilldown .flyout-drilldown-item-link.is-selected { background: @gplus; color: @white;  }
          ._linkedin-drilldown .flyout-drilldown-item-link.is-selected { background: @linkedin; color: @white;  }

      

    }
}
  
//Animation for Drilldown flyout
@-webkit-keyframes flyoutSlide {
  0%   { -webkit-transform: translateX(260px); transform: translateX(260px); opacity: 0; }

  100% { -webkit-transform: translateX(0); transform: translateX(0); opacity: 1; }
}

@keyframes flyoutSlide {
  0%   { transform: translateX(260px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

//Animation for Drilldown flyout
@-webkit-keyframes flyoutSlideBack {
  0%   { -webkit-transform: translateX(-260px); transform: translateX(-260px);  }

  100% { -webkit-transform: translateX(0); transform: translateX(0); }
}

@keyframes flyoutSlideBack {
  0%   { transform: translateX(-260px); }
  100% { transform: translateX(0); }
}




//More reset stuff
.checkbox:checked + .checkbox-label .checkbox-visible {
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTQnIGhlaWdodD0nMTQnIHZpZXdCb3g9…0N2w1LjE4NS01Ljg0TDEyIDMuOTFsLTYuNjIyIDcuNDYnIGZpbGw9JyNmZmYnLz48L3N2Zz4=");
}


.checkbox:checked + .checkbox-label .checkbox-visible {
background-color: #7ac143;
border-color: #7ac143;
}

.checkbox-visible {
width: 16px;
height: 16px;
border-radius: 3px;
margin: 2px;
}

.checkbox-visible {
background: #ffffff;
border: 1px solid #dddddd;
display: inline-block;
position: relative;
vertical-align: middle;
}
            
          
!
            
              $(function() {
  //This JS is just for illustrative purposes.
  $('._targeting-drilldown a').on('click', function(ev) {
 
      window.setTimeout(function() {
      $('.flyout-body-content').addClass('is-animating');
      },0);
    
      if ($(this).hasClass('js-target-twitter')) {
          $('._targeting-drilldown').hide();  
          $('._twitter-drilldown').fadeIn();
          $('.js-back-twitter').show();
          $('.sprout-drilldown-flyout').addClass('_twitter');
          $('.flyout-header-icon').addClass('fa fa-twitter');
          $('.js-account-picker-search').focus();
          $('.flyout-section-title').hide();
      }
   
      if ($(this).hasClass('js-target-facebook')) {

          $('._targeting-drilldown').hide();
          $('._facebook-drilldown').fadeIn();
          $('.js-back-facebook').show();
          $('.sprout-drilldown-flyout').addClass('_facebook');
          $('.flyout-header-icon').addClass('fa fa-facebook');
          $('.js-account-picker-search').focus();
          $('.flyout-section-title').hide();
      }
    
       if ($(this).hasClass('js-target-gplus')) {

          $('._targeting-drilldown').hide();
          $('._gplus-drilldown').fadeIn();
          $('.js-back-gplus').show();
          $('.sprout-drilldown-flyout').addClass('_gplus');
          $('.flyout-header-icon').addClass('fa fa-google-plus');
          $('.js-account-picker-search').focus();
          $('.flyout-section-title').hide();
      }   
      
      $('.flyout-body-content').removeClass('is-animating is-animating-back');
  });

    $('.js-back-twitter').on('click', function(ev) {
      
      $('.flyout-body-content').removeClass('is-animating');
      window.setTimeout(function() {
        $('.flyout-body-content').addClass('is-animating-back');
      },0);
      if ($(this).is(':visible')) {
          $('._twitter-drilldown').hide();
          $('._targeting-drilldown').fadeIn();
          $(this).hide();
          $('.flyout-header-icon').removeClass('fa fa-twitter');
          $('.sprout-drilldown-flyout').removeClass('_twitter');
          $('.flyout-section-title').show();
      }
    });
  
    $('.js-back-facebook').on('click', function(ev) {
      
      $('.flyout-body-content').removeClass('is-animating');
      window.setTimeout(function() {
        $('.flyout-body-content').addClass('is-animating-back');
      },0);
      
      if ($(this).is(':visible')) {
      
        if ($(this).hasClass('_l2')) {
          $('._facebook-drilldown_l2').hide();
          $('._facebook-drilldown').show();
          $(this).removeClass('_l2'); 
          $('._facebook-drilldown').show();
          
        } else {
          
        $('._facebook-drilldown').hide();
          $('._targeting-drilldown').fadeIn();
          $(this).hide();
          $('.flyout-header-icon').removeClass('fa fa-facebook');
          $('.sprout-drilldown-flyout').removeClass('_facebook');
          $('.flyout-section-title').show();
        }
     
      }  
    });
     $('.js-back-gplus').on('click', function(ev) {

      $('.flyout-body-content').removeClass('is-animating');
      window.setTimeout(function() {
        $('.flyout-body-content').addClass('is-animating-back');
      },0);
       
      if ($(this).is(':visible')) {
          $('._gplus-drilldown').hide();
          $('._targeting-drilldown').fadeIn();
          $(this).hide();
          $('.flyout-header-icon').removeClass('fa fa-google-plus');
          $('.sprout-drilldown-flyout').removeClass('_gplus');
          $('.flyout-section-title').show();
      }
    });
   
    $('._facebook-drilldown .flyout-drilldown-item-link').on('click', function() {
      $('._facebook-drilldown').hide();
      $('._facebook-drilldown_l2').fadeIn();
      $('.js-account-picker-search').focus();
      $('.js-back-facebook').addClass('_l2');
      
       $('.flyout-body-content').removeClass('is-animating');
      window.setTimeout(function() {
        $('.flyout-body-content').addClass('is-animating-back');
      },0);     
    });
  

});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console