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.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              body
 .container
  .laptop
   .screen
    .sidebar
      .text-1
      .text-2
      .text-3
      .text-4
    .code-content
      .row-number-1
      .row-text-1
      .row-number-2
      .row-text-2
      .row-number-3
      .row-text-3
      .row-number-4
      .row-text-4
      .row-text-4a
      .row-number-5
      .row-text-5
      .row-text-5a
      .row-number-6
      .row-text-6
      .row-text-6a
      .row-number-7
      .row-text-7
      .row-number-8
      .row-text-8
    .button-editor-1
    .button-editor-2
    .button-editor-3
    .button-browser-1
    .button-browser-2
    .button-browser-3
    .browser-window
    .jumbo
    .button-jumbo-1
    .button-jumbo-2
    .button-jumbo-3
    .thumb-1
    .thumb-2
    .thumb-3
  .laptop-base
            
          
!
            
              bckgrnd-color = #334861
base-color-1 = #9BB1C8
base-color-2 = darken(base-color-1, 30%)
hollow-color = darken(base-color-1, 50%)
screen-color = lighten(bckgrnd-color, 85%)
frame-color = darken(base-color-1, 80%)
camera-color = black
editor-color = #382716
editor-field-color = lighten(editor-color,30%)
buttons-e-color = lighten(editor-color,90%)
buttons-b-color = darken(screen-color,90%)
browser-content-color = darken(screen-color,50%)
text-color-1 = editor-color
text-color-2 = lighten(editor-color,85%)
text-color-3 = darken(browser-content-color,50%)

body
  background bckgrnd-color
  
.container
  position relative
  width 600px
  height 600px
  margin auto
  top 20px
  background none

.laptop 
  position absolute
  width 84%
  height 60%
  top 16%
  left 8%
  background frame-color
  border-radius 18px 18px 0 0
  border 2px solid base-color-1
.laptop::after
  content ""
  position absolute
  width 1%
  height 1.4*1%
  top 3%
  left 49.5%
  background camera-color
  border-radius 50%
.laptop-base
  position absolute
  width 100%
  height 5%
  bottom 19%
  background base-color-1
  border-radius 0 0 12px 12px 
.laptop-base::before
  content ""
  position absolute
  width 100%
  height 50%
  background base-color-2
.laptop-base::after
  content ""
  position absolute
  width 14%
  height 50%
  left 44%
  background hollow-color
  border-radius 0 0 16px 16px
.screen
  position absolute
  width 94%
  height 89%
  left 3%
  bottom 4%
  background screen-color
.screen::before
  content ""
  position absolute
  width 100%
  height 50%
  background editor-color
.screen::after
  content ""
  position absolute
  width 80%
  height 42%
  bottom 52%
  right 0%
  background editor-field-color
textblocks(xpos,ypos,xsize,ysize,bckgrnd)
  position absolute
  width xsize
  height ysize
  left xpos
  top ypos
  background bckgrnd
  z-index 2
.sidebar
  position absolute
  width 42%
  height 42%
  left 0%
  top 5.9%
  background none
.text-1
  textblocks(2.5%,5%,40%,5%,editor-field-color)
.text-2
  textblocks(2.5%,17%,20%,5%,editor-field-color)
.text-3
  textblocks(2.5%,29%,35%,5%,editor-field-color)
.text-4
  textblocks(2.5%,41%,15%,5%,editor-field-color)
.code-content
  position absolute
  width 42%
  height 42%
  left 20%
  top 5.9%
  background none
  z-index 1
.row-number-1
  textblocks(2.5%,5%,4%,5%,lighten(editor-color,45%))
.row-number-2
  textblocks(2.5%,17%,4%,5%,lighten(editor-color,45%))
.row-number-3
  textblocks(2.5%,29%,4%,5%,lighten(editor-color,45%))
.row-number-4
  textblocks(2.5%,41%,4%,5%,lighten(editor-color,45%))
.row-number-5
  textblocks(2.5%,53%,4%,5%,lighten(editor-color,45%))
.row-number-6
  textblocks(2.5%,65%,4%,5%,lighten(editor-color,45%))
.row-number-7
  textblocks(2.5%,77%,4%,5%,lighten(editor-color,45%))
.row-number-8
  textblocks(2.5%,89%,4%,5%,lighten(editor-color,45%))

.row-text-1
  textblocks(12%,5%,20%,5%,text-color-1)
.row-text-2
  textblocks(18%,17%,25%,5%,text-color-2)
.row-text-3
  textblocks(24%,29%,40%,5%,text-color-3)
.row-text-4
  textblocks(24%,41%,30%,5%,text-color-1)
.row-text-4a
  textblocks(58%,41%,10%,5%,text-color-2)
.row-text-5
  textblocks(30%,53%,15%,5%,text-color-2)
.row-text-5a
  textblocks(49%,53%,30%,5%,text-color-3)
.row-text-6
  textblocks(30%,65%,30%,5%,text-color-3)
.row-text-6a
  textblocks(64%,65%,30%,5%,text-color-1)
.row-text-7
  textblocks(18%,77%,30%,5%,text-color-2)
.row-text-8
  textblocks(12%,89%,30%,5%,text-color-1)

buttons(xpos,ypos,xsize,ysize,bckgrnd)
  position absolute
  width xsize
  height ysize
  left xpos
  top ypos
  background bckgrnd
  z-index 2
  border-radius 50%
.button-editor-1
  buttons(1%,1.2%,1%,1.4*1%,buttons-e-color)
.button-editor-2
  buttons(3%,1.2%,1%,1.4*1%,buttons-e-color)
.button-editor-3
  buttons(5%,1.2%,1%,1.4*1%,buttons-e-color)
 .button-browser-1
  buttons(1%,51%,1%,1.4*1%,buttons-b-color)
.button-browser-2
  buttons(3%,51%,1%,1.4*1%,buttons-b-color)
.button-browser-3
  buttons(5%,51%,1%,1.4*1%,buttons-b-color)
.browser-window
  position absolute
  width 80%
  height 44%
  left 10%
  bottom 0%
  background browser-content-color
.browser-window::before
  content ""
  position absolute
  width 100%
  height 20%
  background darken(browser-content-color,50%)
.browser-window::after
  content ""
  position absolute
  width 20%
  height 12%
  top 4.5%
  left 1.5%
  background browser-content-color
.jumbo
  position absolute
  width 60%
  height 22%
  left 20%
  bottom 12%
  background lighten(browser-content-color,40%)
.button-jumbo-1
  buttons(47%,85%,1%,1.4*1%,lighten(browser-content-color,80%))
.button-jumbo-2
  buttons(49.5%,85%,1%,1.4*1%,darken(browser-content-color,50%))
.button-jumbo-3
  buttons(52%,85%,1%,1.4*1%,darken(browser-content-color,50%))
.thumb-1
  position absolute
  width 19%
  height 10.5%
  left 20%
  bottom 0%
  background lighten(browser-content-color,60%)
.thumb-2
  position absolute
  width 19%
  height 10.5%
  right 20%
  bottom 0%
  background lighten(browser-content-color,30%)
.thumb-3
  position absolute
  width 19%
  height 10.5%
  left 40.5%
  bottom 0%
  background lighten(browser-content-color,80%)
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console