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="media-controls">
  <div class="media-buttons">
    <button class="back-button media-button" label="back">
      <i class="fas fa-step-backward button-icons"></i>
      <span class="button-text milli">Back</span>
    </button>

    <button class="rewind-button media-button" label="rewind">
      <i class="fas fa-backward button-icons"></i>
      <span class="button-text milli">Rewind</span>
    </button>

    <button class="play-button media-button" label="play">
      <i class="fas fa-play button-icons delta"></i>
      <span class="button-text milli">Play</span>
    </button>

    <button class="fast-forward-button media-button" label="fast forward">

      <i class="fas fa-forward button-icons"></i>
      <span class="button-text milli">Forward</span>
    </button>

    <button class="skip-button media-button" label="skip">
      <i class="fas fa-step-forward button-icons"></i>
      <span class="button-text milli">Skip</span>
    </button>
  </div>
  <div class="media-progress">
    <div class="progress-bar-wrapper progress">
      <div class="progress-bar">
      </div>
    </div>
    <div class="progress-time-current milli">
      15:23
    </div>
    <div class="progress-time-total milli">
      34:40
    </div>
  </div>
</div>
              
            
!

CSS

              
                @wv-blue--lg-accessible: shade(@wv-blue, 6%);
@wv-orange--lg-accessible: shade(@wv-orange, 5%);
@wv-orange--sm-accessible: shade(@wv-orange, 22%);
@wv-lighter-orange: tint(@wv-orange, 85%);
@wv-lightest-orange: tint(@wv-orange, 92%);
@background-grey: tint(@wv-lightest-grey, 30%);
@background-yellow: tint(@wv-yellow, 85%);
@border-radius-xl: @spacer-xl;

// resets
button {
  padding: 0;
}

body {
  align-items: center;
  background-color: @background-yellow;
  // lightest gray that passes text contrast level AAA on @background-yellow background
  color: tint(@wv-charcoal, 16%);
  display: flex;
  height: 100vh;
  justify-content: center;
  position: relative;
  
  &:before {
    background: 
      no-repeat 23vw 30vh url("https://assets.codepen.io/518555/sparkles1.svg"),
      no-repeat right 25vw bottom 30vh url("https://assets.codepen.io/518555/sparkles4.svg"),
      no-repeat 40vw 30vh ~"/" 35vw url("https://assets.codepen.io/518555/blobStripe.svg");
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
  }
  
  &:after {
    background: no-repeat 25vw 40vh ~"/" 30vw url("https://assets.codepen.io/518555/blobSolid.svg");
    content: '';
    height: 100%;
    left: 0;
    opacity: 0.8;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -2;
  }
}

.media-controls {
  align-items: center;
  background: tint(@background-yellow, 30%);
  border: 1px solid @wv-lightest-orange;
  border-radius: @border-radius-xl;
    // lightest gray that passes text contrast level AAA on lighter @background-yellow background
  color: tint(@wv-charcoal, 17%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: @spacer-xl;
  max-width: ~"calc(100% - @{spacer-xl} * 2)";
  padding: @spacer-xl;
  position: relative;
  
  &:after {
    border-radius: @border-radius-xl;
    box-shadow:
      0 2px 2px fade(@wv-orange, 25%),
      0 4px 4px fade(@wv-orange, 20%),
      0 8px 8px fade(@wv-orange, 15%),
      0 16px 16px fade(@wv-orange, 10%),
      0 24px 24px fade(@wv-orange, 5%);
    content: '';
    height: 100%;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
  }
}

.media-buttons {
  display: flex;
  flex-wrap: nowrap;
}

.media-button {
  background-color: transparent;
  border: none;
  align-items: center;
  border-radius: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  text-align: center;
  
  @media (min-width: 421px) {
    padding: @spacer-tight;
  }
}

.button-icons {
  background-color: @wv-orange-40;
  border-radius: 100%;
  margin-bottom: @spacer-xxs;
  margin-top: auto;
  padding: @spacer-base;
}

.back-button,
.skip-button {
  .button-icons {
    background-color: transparent;
    // Lightest gray that passes icon contrast on @background-yellow background
    color: tint(@wv-dark-grey, 28%);
  }
}

.rewind-button,
.fast-forward-button {
  .button-icons {
    background: linear-gradient(to bottom left, @background-yellow, @wv-orange-20);
    // Lightest gray that passes icon contrast on @wv-orange-40 background
    color: tint(@wv-dark-grey, 19%);
  }
}

.play-button {
  .button-icons {
    background: linear-gradient(to bottom left, @wv-white, @background-yellow);
    border: 1px solid @wv-lightest-orange;
    box-shadow: 
      -1px 1px 1px fade(@wv-orange-40, 25%),
      1px -1px 1px fade(@wv-white, 25%),
      -2px 2px 2px fade(@wv-orange-40, 20%),
      2px -2px 2px fade(@wv-white, 20%),
      -4px 4px 4px fade(@wv-orange-40, 15%),
      4px -4px 4px fade(@wv-white, 15%),
      -8px 8px 8px fade(@wv-orange-40, 10%),
      8px -8px 8px fade(@wv-white, 10%),
      -16px 16px 16px fade(@wv-orange-40, 5%),
      16px -16px 16px fade(@wv-white, 5%);
    color: @wv-orange--lg-accessible;
    margin-bottom: @spacer-xs;
    padding: @spacer-xl;
  }
}

.button-text {
  margin-top: auto;
}

.media-progress {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.progress-bar-wrapper {
  background-color: transparent;
  border-radius: @spacer-tight;
  box-shadow: 
      inset -1px 1px 1px fade(@wv-orange-40, 25%),
      inset 1px -1px 1px fade(@wv-white, 25%),
      inset -2px 2px 2px fade(@wv-orange-40, 20%),
      inset 2px -2px 2px fade(@wv-white, 20%),
      inset -4px 4px 4px fade(@wv-orange-40, 15%),
      inset 4px -4px 4px fade(@wv-white, 15%),
      inset -8px 8px 8px fade(@wv-orange-40, 10%),
      inset 8px -8px 8px fade(@wv-white, 10%),
      inset -16px 16px 16px fade(@wv-orange-40, 5%),
      inset 16px -16px 16px fade(@wv-white, 5%);
  height: @spacer-tight;
  margin-bottom: @spacer-xs;
  margin-top: @spacer-xl;
  position: relative;
  width: 100%;
}

.progress-bar {
  background: linear-gradient(to right, @wv-yellow, @wv-orange);
  border-radius: @spacer-tight;
  box-shadow: none;
  height: @spacer-tight;
  width: 44%;
}
              
            
!

JS

              
                
              
            
!
999px

Console