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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


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.


  h1.block__title This button looks <span class="-accent">amazing</span> on admin panels and mobile websites
    a href="" target="_blank" Visit


      a.custom-list__link.custom-list__link--template Perro
      a.custom-list__link.custom-list__link--template Muchaho
      a.custom-list__link.custom-list__link--template Logroñes
      a.custom-list__link.custom-list__link--new + New element


                @import url(';300;700;800&display=swap');

// - Variables -
$green:             #87c442;
$tango:             #2D2D2D;
$nuclear:           #F9F1D8;
$themed-btn:        #ff854d;
$soft_light:        rgba(0, 0, 0, 0.12);
$hard_light:        rgba(0, 0, 0, 0.24);
$veil:              rgba(249, 241, 216, 0.9);
$background:        #312A28;

// - Body -

body {
  line-height: 1;
  font-family : Prompt;
  background: $background;

// - Wrappers -

.block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  &__subtitle {
    flex-basis: 100%;
    width: 100%;
    height: auto;
    margin: 0;
    color: $nuclear;
    line-height: 1;
  &__title {
    align-self: flex-end;
    max-width: 920px;
    padding-bottom: 3rem;
    font-size: 56px;
  &__subtitle {
    align-self: flex-start;
    color: $nuclear;
    font-family: sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    a {
      color: $nuclear;
    a:hover { text-decoration: none; } 

// - Trigger -

.btn {
  //@include appearance(none);
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;

  &__trigger {
    transition: background-color 300ms ease-in-out;
    position: fixed;
    z-index: 10;
    bottom: 1.5rem;
    right: 1.5rem;
    display: block;
    border-radius: 50px;
    &:before {
      content: "Open";
    &--is-open:before {
      content: "Close";

    &--views {
      width: 5rem;
      height: 5rem;
      background-color: $nuclear;
      color: $background;
      // Use this dope featuring with Bourbon
      //font-size: rem(20);
      font-size: 1rem;
      line-height: 5;
      font-weight: bold;
      text-align: center;
      text-transform: uppercase;

      &:hover {
        background-color: $themed-btn;

// - Buttons list -

.custom-list {
  position: fixed;
  opacity: 0;

  &.reveal {
    transition: opacity 300ms ease-in;
    visibility: visible;
    opacity: 1;

    &:after {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
      display: block;
      content: "";
      background-color: $veil;

  &--list {
    visibility: hidden;
    bottom: 6.5rem;
    right: 1.75rem;
    text-align: right;

  &__item {
    //Bourbon transition
    //@include transition(opacity 150ms ease-in-out);
    transition: opacity 150ms ease-in-out;
    display: block;
    font-size: 0.90rem;
    opacity: 0;
    cursor: default;

    &.visible {
      visibility: visible;
      opacity: 1;

  &__link {
    //Bourbon transition
    //@include transition(background-color 150ms ease-in-out);
    transition: background-color 150ms ease-in-out;
    display: inline-block;
    width: auto;
    margin: 1rem 0;
    padding: 0.5rem;
    box-shadow: inset 0 0 0 1px $background;
    color: $background;

    &--template:hover {
      background-color: $tango;
      color: $veil;

    &--new {
      transition: opacity 300ms ease-in-out;
      box-shadow: 0 0 0 1px $green;
      background-color: $green;
      color: $nuclear;
      &--new:hover {
        opacity: 0.6;

    &:last-child { margin-bottom: 0; }

.-accent {
  color: $themed-btn; 


                function displayList () {
  $.fn.reverse = [].reverse;
  var trigger = $("#trigger"),
      mainTarget = $(".custom-list"),
      targetItem = $('.custom-list__item'),
      html = $("html");

  trigger.on("click", function(event) {
    mainTarget.toggleClass("reveal unreveal"); trigger.toggleClass("btn__trigger--is-open"); targetItem.reverse().each(function(i, el) {
      setTimeout(function() {
      }, i * 68);

    html.on("click", function() {

// If you are using Turbolinks use only
//$(document).on('turbolinks:load', displayList);

$(document).on('page:load', displayList);