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.

  //- div(class="select_box_area")
  //-   p(class="select")
  //-     span(class="placeholder")
  //-       | Select
  //-     em(class="fa fa-angle-down")
  //-   ul(class="filter_list")
  //-     li
  //-       label
  //-         input(type="checkbox")
  //-         | HTML
  //-     li
  //-       label
  //-         input(type="checkbox")
  //-         | jQuery
  //-     li
  //-       label
  //-         input(type="checkbox")
  //-         | Pug
  //-     li
  //-       label
  //-         input(type="checkbox")
  //-         | SASS
  //-     li
  //-       label
  //-         input(type="checkbox")
  //-         | Angular

    - var options = ['HTML', 'jQuery', 'Pug', 'SASS', 'Angular', 'React', 'Jade', 'PHP','Java']
    - for(a = 0; a < options.length; a++ )
      option(value=""+ options[a] +"")= options[a]
  //- button(type="button" class="console-btn")
  //-   | click to console
  ---------Variables-------- */

$fontStack-1: 'Montserrat', sans-serif
$color-1: #254375
$color-2: #ffffff

  ---------Global-------- */

html, body
  height: 100%

  background: $color-1
    family: $fontStack-1
    size: 16px
    weight: 400
  color: $color-2
  position: relative

  position: relative
  display: inline-block
  // top: 10px
  // left: 50%
  // transform: translateX(-50%)
    margin-bottom: 0px
    min-width: 300px
    max-width: 300px
    background: lighten($color-1, 10%)
    padding: 10px 15px
    border: 1px solid rgba($color-2, 0.5)
    line-height: 24px
    padding-right: 30px
    cursor: pointer
      position: absolute
      right: 15px
      top: 13px
      font-size: 20px
      transition: all 0.3s linear
        transform: rotate(180deg)
      position: relative
      display: inline-block
      padding-right: 15px
        content: ","
        position: absolute
        right: 5px
        top: 0
        padding-right: 0px
          display: none
  padding: 0px
  background: lighten($color-1, 5%)
  border: 1px solid darken($color-2, 40%)
  border-top: none
  display: none
    list-style: none
      display: block
      width: 100%
      padding: 10px
      margin: 0px
      font-size: 14px
      cursor: pointer
      margin-right: 5px
    & + li
      border-top: 1px solid darken($color-2, 40%)
  display: none
              $(document).ready(function() {
  "use strict";
  --------- Converting Options into list (own structure) -------- */

  var myUl = [];

  $(".custom-select option").each(function() {
    var optionText = $(this).text();
    var optionValue = $(this).val();
    var thisList = $(this).parent();

      '<li><label><input type="checkbox"/>' + optionText + '</label></li>'

  var $p = $("<p />", {
    class: "select",
      '<span class="placeholder">Select</span><em class="fa fa-angle-down"></em>'

  var $ul = $("<ul/>", {
    class: "filter_list",
    html: myUl.join("")

  var expendBefore = $("<div />", {
    class: "select_box_area",
    html: [$p, $ul]

  --------- Toggle Multiselect list -------- */

  $(document).on("click", ".select", function() {
    var filterList = $(this).next(".filter_list");

    if (filterList.is(":hidden")) {
    } else {

  --------- Check and uncheck Options from the list -------- */

  $(document).on("click", '.filter_list input[type="checkbox"]', function() {
    var inputVal = $(this).parent("label").text();
    var placeholderSpan = $(".placeholder");
    var findVal = $(".select").find('span[data-title="' + inputVal + '"]');

    if ($(this).is(":checked")) {
        '<span data-title="' +
          inputVal +
          '" class="option">' +
          inputVal +
    } else {
      if ($(".select span").length >= 1) {
      if ($(".select span").length < 1) {
        $(".select").append('<span class="placeholder">Select</span>');


🕑 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.