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

+ 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="cal-clock__inner">
  <div class="calendar">
    <div class="calendar__row"></div>
    <div class="calendar__row">
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
    </div>
    <div class="calendar__row">
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
    </div>
    <div class="calendar__row">
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
    </div>
    <div class="calendar__row">
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
    </div>
    <div class="calendar__row">
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
      <div class="calendar__item"></div>
    </div>
  </div>
  <div class="clock">
    <div class="clock__face">
      <div class="clock__minute"></div>
      <div class="clock__hour"></div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body
  display flex
  min-height 100vh
  justify-content center
  align-items center
.cal-clock__inner
  position relative
.calendar
  display inline-block
  border 1px solid #000
  &__row
    display flex
    min-height 50px
    background #666
  &__item
    width 50px
    height 50px
    background #eee
    border 1px solid #999
    border-bottom 0
    border-right 0
    &:nth-of-type(6),
    &:nth-of-type(7)
      background #aaa
      border-color #000
.clock
  position absolute
  left -3rem
  top 50%
  background #666
  width 200px
  height 200px
  border-radius 50%
  display flex
  justify-content center
  align-items center
  &__face
    width 180px
    height 180px
    background #eee
    border-radius 50%
    position relative
  &__minute,
  &__hour
    width 5px
    background #333
    left 50%
    position absolute
    transform-origin bottom
    transition .5s ease
  &__hour
    height 30%
    transform rotate(45deg)
    top 20%
  &__minute
    height 45%
    top 5%
    transform rotate(98deg)
    
.calendar__row:nth-of-type(2) .calendar__item:nth-of-type(3),
.calendar__row:nth-of-type(4) .calendar__item:nth-of-type(5) {
	background: pink;
}
              
            
!

JS

              
                
              
            
!
999px

Console