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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="main">
  <div class="player">
    <input type="checkbox" id="start-stop" />
    <label for="start-stop" class="record" id="playing">
    </label>
    <div class="button"></div>
    <div class="info">
      <h6>On Air:</h6>
      <h1>Friday Evening Open Sets</h1>
      <h6 class="schedule">
        <em>1:00PM CT — 5:00PM CT</em>
        <p></p>
      </h6>
    </div>
  </div>

  <div class="schedule-wrapper">
    <h1>Schedule</h1>
    <table class="schedule">
      <tr class="headings">
        <th class="time">Central Time</th>
        <th class="weekday">Monday</th> 
        <th class="weekday">Tuesday</th>
        <th class="weekday">Wednesday</th>
        <th class="weekday">Thursday</th>
        <th class="weekday">Friday</th>
      </tr>
      <tr class="timeslot">
        <td>9:00 AM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>10:00 AM</td>
        <td></td>
        <td></td>
        <td></td>
        <td>
          <div class="item">
            <h6>Designline</h6>
            <p>Design Thinking and ...</p>
          </div>
        </td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>11:00 AM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>12:00 AM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>1:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>2:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>3:00 PM</td>
        <td></td>
        <td>
          <div class="item">
            <h6>Public Services</h6>
            <p>Miroslav Azis</p>
          </div>
        </td>
        <td></td>
        <td></td>
        <td>
          <div class="item hours-3">
            <h6>Broadcast Zero</h6>
            <p>Bobby Smith, Lauren Hartman...</p>
          </div>
        </td>
      </tr>
      <tr class="timeslot">
        <td>4:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>5:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>6:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr class="timeslot">
        <td>7:00 PM</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
    </table>
  </div>
</div>
              
            
!

CSS

              
                $breakpoint--mobile: 700px;

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

//
// Typography.
//

h1 {
  font: normal 300 1.5em/1 "Helvetica Neue", Helvetica, sans-serif;
  color: white;
}

h6 {
  font: normal 300 .5em/1.5 "Helvetica Neue", Helvetica, sans-serif;
  color: white;
}

//
// Left-hand column, show/song info, record container.
//

.player {
  background-color: #000;
  width: 25vw;
  height: 100vh;
  
  @media screen and (max-width: $breakpoint--mobile) {
    display: inline-block;
    background-color: #000;
  	width: 100%;
    height: 100%;
  }
  
  @media (min-width: $breakpoint--mobile) {
    position: fixed;
  }
}

//
// Show information, scheduled block, DJ Name?
//

.info {
  display: inline-block;
  float: left;
  width: 20vw;
  margin: 0 10%;
  border-top: 1px solid white;
  @media screen and (max-width: $breakpoint--mobile) {
    width: 80vw;
  }
}
//
// Record + Start/Stop Button
//

.record {
  display: inline-block;
  float: left;
  margin: 10%;
  width: 20vw;
  height: 20vw;
  border-radius: 50%;
  background-color: white;
  background-image:url('https://d2w9rnfcy7mm78.cloudfront.net/2587822/original_702082bc8df1df17ba2c49433d0f67d2.gif?1534956282');
  background-size: cover;
  &:hover {
    transition: opacity .125s ease-in-out;
    opacity: .5; 
  }
  @media screen and (max-width: $breakpoint--mobile) {
    position: relative;
    float: none;
    display: block;
    margin: 15% auto;
    width: 250px;
    height: 250px;
  }
}

#start-stop {
  display: none;
}

#playing {
  animation: rotation 10s infinite linear;
  animation-play-state: running;
  #start-stop:checked + & {
    animation-play-state: paused;
    opacity: .25;
  }
}

@keyframes rotation {
    from {transform: rotate(0deg);}
    to   {transform: rotate(359deg);}
}

.button {
  margin: 10%;
  width: 20vw;
  height: 20vw;
  z-index: 10;
  background: url("https://i.imgur.com/F2fkSXb.png") -200px;
  #start-stop:checked ~ & {
    background: url("https://i.imgur.com/F2fkSXb.png") 0px;
  }
  @media screen and (max-width: $breakpoint--mobile) {
    top: 0;
    left: 0;
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }
}

//
// Schedule and other non-player styling
//

.main {
  display: flex;
  @media (max-width: $breakpoint--mobile) {
    flex-direction: column;
  }
}

.schedule-wrapper {
  margin-left: 25vw;
  padding: 30px;
  width: 100%;
  
  @media (max-width: $breakpoint--mobile) {
    margin-left: 0;
  }
  
  h1 {
    color: black;
    font-weight: 600;
    padding: 15px 0 60px 0;
    margin: 0;
  }
}

$cell-height: 51px;

.schedule {
  width: 100%;
  text-align: left;
  font-size: .8rem;
  table-layout: fixed;
  
  .headings {
    text-transform: uppercase;
    border-bottom: 2px solid black;
    
    th {
      padding-bottom: 10px;
      
      &:first-child {
        color: gray;
      }
    }
  }
  
  .timeslot {
    color: gray;
    border-bottom: 1px solid gray;

    td {
      position: relative;
      
      &:first-child {
        padding: 25px 0 10px 0;
      }
    }
    
    .item {
      background-color: black;
      color: white;
      padding: 5px;
      vertical-align: top;
      box-sizing: border-box;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: $cell-height;
      
      @for $i from 2 through 7 {
        &.hours-#{$i} {
         height: $cell-height * $i;
        }
      }
      
      
      h6 {
        margin: 0;
        font-size: .8rem;
        font-weight: 500;
      }
      
      p {
        font-size: .6rem;
        margin: 0;
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console