cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              
<div class="sc-smallplayer">
  <div class="sc-smallplayer__history">
    <div class="sc-smallplayer__history__timeline"></div>
  </div>
  <div class="sc-smallplayer__header">
    <img src="http://placehold.it/30x30" />
    <h1><a href="#">The Song name<br />The Artist name</a></h2>
    <button>Play</button>
  </div>
  
  
  <div class="sc-smallplayer__timecode">
    <div class="sc-smallplayer__timecode__entry">2:29</div>
    <div class="sc-smallplayer__timecode__entry">-45:00</div>
  </div>
  
  
  <div class="sc-smallplayer__seeking">
  
    <button>-</button>
    <div class="wheel"></div>
    <button>+</button>
  </div>
  
  
  
  
  <div class="sc-smallplayer__slider">
    <input type="range" />
  </div>
  
  
   
  
  <!--  style="display:none;" -->
  <div class="sc-smallplayer__modes">
    <ul>
       <!--  class="active" -->
      <li><button>Volume</button></li>
      <li><button>Speed</button></li>
      <li><button>Transcript</button></li>
      <li><button>Share</button></li>
      <li><button>Settings</button></li>
      <li><button>History</button></li>
  </ul>
  </div>
</div>
            
          
!
            
              html {box-sizing: border-box; height:100%;}
*, *:before, *:after { box-sizing: inherit; }
body{ 
  margin: 0; 
  display:flex;
  height:100%;
}


.sc-smallplayer{
   border:solid 1px #aaa;
  border-radius:3px;
  background:lightblue;
  width:200px;
  height:200px;
  margin:auto;
  font-family:sans-serif;
  
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  
  .sc-smallplayer__header{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    // border:solid 1px black;
     padding:5px 5px 0 5px;
    // border-bottom:solid 1px black;
    // background:white;
    margin-bottom:auto;
    
    > *{
      // border:solid 1px red;
    }
    
    h1{
      font-size:12px;
      margin:4px 0;
      font-weight:normal;
      width:calc(100% - 80px);
      
      a{
        color:black;
        text-decoration:none;
      }
    }
    
    img{
      vertical-align:none;
      border:solid 1px #666;
      border-radius:3px;
      margin-right:5px;
    }
    
    /*
    button{
      width:30px;
      height:30px;
      text-align:center;
      padding:0;
      border-radius:100%;
      margin-right:10px;
    }
    */
  }
  
  .sc-smallplayer__modes{
    // outline:solid 1px blue;
    // border-top:solid 2px black;
    ul{
      margin:0;
      padding:0;
      display:flex;
      overflow-x:auto;
      -webkit-overflow-scrolling: touch;
      // padding:5px 0px;
      
      li{
        list-style:none;
        padding:3px;
        font-size:10px;
        text-transform:uppercase;
        // border-top:solid 2px transparent;
        
        &.active{
         // border-top:solid 2px black;
          background:black;
          
          button{
            background:transparent;
            border:0;
            color:white;    
          }
        }
        
      }
    }
  }
  
  .sc-smallplayer__seeking{
    display:flex;
    align-items:center;
    width:100%;
    justify-content:center;
    // padding-top:5px;
    margin-top:-10px;
    margin-bottom:auto;
    
    /*
    button{
      width:30px;
      height:30px;
      // border-radius:100%;
      background:white;
      text-align:center;
    }
    */
    .wheel{
      width:80px;
      height:80px;
      background:#666;
      border-radius:100%;
      margin:0 10px;
    }
  }
  
  .sc-smallplayer__slider{
    // border:solid 1px orange;
    //background:#ddd;
    text-align:center;
    padding:5px;
    
    input[type=range]{
      width:100%;
      margin:0;
    }
  }
   
  .sc-smallplayer__history{
    //border:solid 1px green;
    text-align:center;
    // padding:5px 0 0 0;
    
    .sc-smallplayer__history__timeline{
      background:#bbb;
      height:5px;
    }
  }
  
  .sc-smallplayer__timecode{
    display:flex;
    justify-content:space-between;
    
    .sc-smallplayer__timecode__entry{
      font-size:10px;
      padding:0 8px 0 6px;
    }
  }
 
  
  
}
            
          
!
999px
Loading ..................

Console