Pen Settings

HTML

CSS

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

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

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.

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

              
                <div class="container">
  {{{demoMenu}}}
  <div class="header">
    <div 
      class="header__text"
      object
      key:board-heading="@innerText"
      default:board-heading="My Projects"
      edit:board-heading:without-remove
    >{{boardHeading}}</div>
    <button 
      class="button button--add-stack"
      new:stack
    >Add stack</button>
  </div>
  <div class="board-container">
    <div 
      class="board"
      array
      key="stacks"
      sortable="stacks"
    >
      {{#for stack in stacks}}
        <div 
          class="stack"
          object
          key:stack-heading="@search"
          default:stack-heading="A Project"
        >
          <div class="stack__top">
            <p 
              class="stack__text"
              target:stack-heading="@innerText"
              edit:stack-heading
            >{{default stack.stackHeading "New stack item"}}</p>
            <button 
              class="button button--plus-square"
              new:card
            >
              <img class="stack__new-icon" src="https://assets.codepen.io/126441/new.svg">
            </button>
          </div>
          <div 
            class="stack__list"
            key="cards"
            array
            sortable="cards"
          >
            {{#for card in stack.cards}}
              <div 
                class="card"
                object
                key:card-text="@search"
                edit:card-text
              >
                <p 
                  class="card__text"
                  target:card-text="@innerText"
                >{{default card.cardText "New card item"}}</p>
                <img class="card__drag" src="https://assets.codepen.io/126441/drag.svg">
              </div>
            {{/for}}
          </div>
          <div class="stack__add-card-container">
            <button 
              class="stack__add-card"
              new:card
            >
              <img class="stack__add-card-icon" src="https://assets.codepen.io/126441/plus.svg"><p>Add card</p>
            </button>
          </div>
        </div>
      {{/for}}
    </div>
  </div>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  display: inline-block;
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-appearance: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.button {
  display: inline-block;
  height: 36px;
  padding: 0 12px;
  line-height: 36px;
  color: #FFF;
  font-size: 14px;
  text-align: center;
  background-color: #536988;
  border-radius: 5px;
}
.button--plus-square {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  width: 25px;
  margin-left: auto;
  line-height: normal;
  padding: 0;
}
.button--add-stack {
  margin-left: 1.25rem;
}
.button:hover {
  cursor: pointer;
  opacity: 0.85;
}

body {
  overflow-x: hidden;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.container {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.header {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  margin-left: 1rem;
}
.header__text {
  font-size: 25px;
  color: #536988;
  display: inline-block;
}

.board-container {
  flex-grow: 1;
  position: relative;
}

.board {
  display: flex;
  position: absolute;
  top: 0;
  right: 1rem;
  bottom: 0;
  left: 0;
  overflow-x: auto;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.stack {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 100%;
  margin-right: 1rem;
}
.stack__top {
  flex-shrink: 0;
  display: flex;
  padding-top: 0.5rem;
  margin-bottom: 0.65rem;
  color: #536988;
}
.stack__text {
  font-size: 18px;
  font-weight: 500;
}
.stack__new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  background-color: #536988;
  border-radius: 5px;
}
.stack__new:hover {
  cursor: pointer;
  opacity: 0.5;
}
.stack__new-icon {
  position: relative;
  top: -1px;
}
.stack__list {
  flex-shrink: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 3rem;
  padding: 0 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #F2F6FA;
  border-radius: 5px 5px 0 0;
}
.stack__add-card-container {
  padding: 0.5rem;
  background-color: #F2F6FA;
  border-radius: 0 0 5px 5px;
}
.stack__add-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 41px;
  border: 2px dashed #DCE0E4;
  border-radius: 5px;
  color: #536988;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.stack__add-card:hover {
  cursor: pointer;
  background-color: #e4ebf3;
  border-color: #c5cfdb;
}
.stack__add-card-icon {
  margin-right: 0.5rem;
}

.card {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #FFF;
  border-radius: 5px;
  color: #536988;
  margin-top: 10px;
  box-shadow: 0px 4px 10px rgba(62, 114, 167, 0.15);
}
.card:hover {
  cursor: pointer;
  background-color: #F2F6FA;
}
.card:nth-child(1) {
  margin-top: 15px;
}
.card__text {
  flex-shrink: 1;
  margin: 1rem 0.25rem 1rem 1rem;
  line-height: 1.4em;
}
.card__drag {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0.25rem;
  padding: 1rem;
  cursor: grab;
}

.board::-webkit-scrollbar {
  width: 20px;
  height: 25px;
}

.stack__list::-webkit-scrollbar {
  width: 20px;
  height: 20px;
}

/* Track */
.board::-webkit-scrollbar-track {
  background: #FFF !important;
}

.stack__list::-webkit-scrollbar-track {
  background: #F2F6FA !important;
  border-radius: 5px;
}

/* Handle */
.board::-webkit-scrollbar-thumb {
  background: #DAD9DE;
  border-radius: 30px;
  box-sizing: border-box;
  border: 8px solid #FFF;
}

.stack__list::-webkit-scrollbar-thumb {
  background: #DAD9DE;
  border-radius: 30px;
  box-sizing: border-box;
  border: 5px solid #F2F6FA;
}

/* Handle on hover */
.board::-webkit-scrollbar-thumb:hover, .stack__list::-webkit-scrollbar-thumb:hover {
  background: #DAD9DE;
}

@media only screen and (max-width: 658px) {
  body {
    overflow: auto;
  }
  
  .header {
    margin-right: 1rem;
  }

  .board {
    position: static;
    display: block;
    overflow: auto;
    padding-right: 1rem;
  }

  .stack {
    display: block;
    height: auto;
    width: 100%;
    margin-bottom: 2rem;
    overflow: auto;
  }

  .stack__list {
    overflow-y: auto;
  }
}
              
            
!

JS

              
                /***************************************
 *           REMAKE DEMO               *
 *           ===========               *
 *                                     *
 *    See how Remake works without     *
 *        installing anything!         *
 *                                     *
 *    For the full framework, with     *
 *    data saving and user accounts:   *
 *                                     *
 *    https://docs.remaketheweb.com/   *
 ***************************************/

Remake.demoInit({
  // Log data to console when page is 
  // saved, useful for debugging
  logDataOnSave: true,
  // Load Sortable library for drag and 
  // drop reordering (only use if your 
  // app  needs drag-and-drop reordering)
  sortable: {sortablejs: Sortable},
  // Load crostini for displaying 
  // temporary success/error notices
  crostini: crostini,
  // Load Handlebars for rendering the 
  // demo on the client-side
  Handlebars: Handlebars,
  // Where in localStorage to store data
  demoLocalStorageNamespace: "remake-demo-kanban-app",
  // Initial data to load into the demo app
  demoStartingData: {
    "boardHeading": "Hometown Dance Recital",
    "stacks": [
      {
        "stackHeading": "Logistics",
        "cards": [
          {
            "cardText": "Confirm the venue"
          },
          {
            "cardText": "Determine the number of chairs needed"
          },
          {
            "cardText": "Distribute the tickets"
          },
          {
            "cardText": "Finalize Vendors"
          },
          {
            "cardText": "Write up the schedule"
          }
        ]
      },
      {
        "stackHeading": "Volunteers",
        "cards": [
          {
            "cardText": "Reach out to potential sponsors"
          },
          {
            "cardText": "Confirm sponsors"
          },
          {
            "cardText": "Recruit people to build the set"
          },
          {
            "cardText": "Recruit ushers"
          },
          {
            "cardText": "Recruit ticket takers"
          },
          {
            "cardText": "Recruit parking attendants"
          },
          {
            "cardText": "Recruit concession and merchandise sales"
          },
          {
            "cardText": "Send volunteer packets out"
          },
          {
            "cardText": "Assemble “Thank You” swag bags for volunteers"
          }
        ]
      },
      {
        "stackHeading": "Performance",
        "cards": [
          {
            "cardText": "Announce the soloists for the finale"
          },
          {
            "cardText": "Schedule additional rehearsals for the soloists"
          },
          {
            "cardText": "Design Costumes"
          },
          {
            "cardText": "Order costumes 4 weeks before recital"
          },
          {
            "cardText": "Send ill fitting costumes for alterations"
          },
          {
            "cardText": "Buy the props"
          }
        ]
      },
      {
        "stackHeading": "Photography and Video",
        "cards": [
          {
            "cardText": "Hire a photographer for studio photos"
          },
          {
            "cardText": "Hire a photographer for the performance"
          },
          {
            "cardText": "Acquire video camera"
          },
          {
            "cardText": "Acquire a tripod"
          },
          {
            "cardText": "Hire someone to record the performance"
          }
        ]
      },
      {
        "stackHeading": "Promotion",
        "cards": [
          {
            "cardText": "Print flyers"
          },
          {
            "cardText": "Promote the event on Facebook and Instagram"
          },
          {
            "cardText": "Prepare the programs"
          },
          {
            "cardText": "Cross promote other dance studios"
          },
          {
            "cardText": "Speak to local radio stations"
          }
        ]
      }
    ]
  }
});

              
            
!
999px

Console