css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

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

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .external-monitor
  .base
  .base-column
  .screen
    .inner
      .bar
      .files
      .folders
      .trash
      .window
            
          
!
            
              $color-background: #B7CADE
$color-monitor: #3c4144
$color-screen: #00A878

=size($width, $height)
  width: percentage($width / 100)
  height: percentage($height / 100)

=position($top, $left)
  position: absolute
  top: percentage($top / 100)
  left: percentage($left / 100)

%pseudo-init
  content: ''
  display: block

body
  margin: 0
  padding: 0
  background-color: $color-background

.external-monitor
  position: relative
  margin: auto
  width: 70vw
  height: 70vw
  margin-top: 5vh
  border-radius: 50%
  box-shadow: inset 0 0 2vw 0 rgba(black, 0.3)
  background: linear-gradient(to bottom, darken($color-background, 5%) 70%, darken($color-background, 10%) 70%)

  .screen
    +size(70, 40)
    +position(25, 15)
    background-color: $color-monitor
    border-radius: 0 0 0.5vw 0.5vw

    &::before
      @extend %pseudo-init
      +size(5, 2)
      +position(96, 93)
      background-color: darken($color-monitor, 5%)
      box-shadow: -3vw 0 darken($color-monitor, 5%)

    .inner
      +size(97, 92)
      +position(2, 1.5)
      background-color: $color-screen
      overflow: hidden
      box-shadow: inset 0 0 0.5vw 0 rgba(white, 0.5)
      border-bottom: 0.2vw solid lighten($color-monitor, 5%)

      &::after
        @extend %pseudo-init
        +size(100, 50)
        +position(0, 0)
        background: linear-gradient(to top, rgba(white, 0.3), transparent)
        transform: skewY(-10deg)

      .bar
        +size(100, 5)
        position: absolute
        left: 0
        bottom: 0
        background: linear-gradient(to right, #333 7%, #222 7%)

        &::after
          @extend %pseudo-init
          +size(7, 35)
          position: absolute
          top: 32.5%
          right: 2%
          background-color: #aaa
          border-radius: 1vw

        &::before
          @extend %pseudo-init
          +size(2.5, 70)
          +position(15, 10)
          background-color: #2a2a2a
          box-shadow: 1.5vw 0 #2a2a2a, 3vw 0 #2a2a2a, 4.5vw 0 #2a2a2a

      .files
        +size(4, 10)
        +position(3, 2)
        background-color: white
        box-shadow: 0 3.5vw white, 0 7vw white, 2.7vw 0 white, 5.4vw 3.5vw white, 8.1vw 3.5vw white
        border-radius: 0.2vw

      .folders
        +size(6, 8)
        position: absolute
        right: 2%
        top: 3%
        background-color: #F3C178
        border-radius: 0.2vw
        box-shadow: 0 3.5vw #F3C178, 0 7vw #F3C178, -4.5vw 7vw #F3C178

        &::after
          @extend %pseudo-init
          +size(100, 20)
          +position(0, 0)
          background-color: #F2AC43
          border-radius: 0.2vw 0.2vw 0 0
          box-shadow: 0 3.5vw #F2AC43, 0 7vw #F2AC43, -4.5vw 7vw #F2AC43

      .window
        +size(35, 50)
        +position(30, 15)
        background: linear-gradient(to bottom, #2349A3 10%, #3772FF 10%)

        &::after
          @extend %pseudo-init
          +size(70, 80)
          +position(-30, 80)
          background: linear-gradient(to bottom, #FF6700 10%, #FF9045 10%)

      .trash
        +size(4, 10)
        +position(80, 92)
        perspective: 5vw

        &::before
          @extend %pseudo-init
          +size(100, 100)
          background-color: #CFE1E5
          border-radius: 0 0 50% 50% / 0 0 20% 20%
          transform: rotateX(-20deg)

        &::after
          @extend %pseudo-init
          +size(100, 100)
          +position(-50, 0)
          border-radius: 50%
          background: linear-gradient(to bottom, #CFE1E5, darken(#CFE1E5, 10%))
          transform: rotateX(-90deg)
  .base
    perspective: 10vw
    +size(30, 8)
    +position(72, 35)
    perspective: 10vw

    &::after
      @extend %pseudo-init
      +size(100, 100)
      background: linear-gradient(to top, lighten($color-monitor, 5%), $color-monitor)
      transform-origin: bottom
      transform: rotateX(20deg)

    &::before
      @extend %pseudo-init
      +size(100, 15)
      position: absolute
      left: 0
      bottom: -15%
      background-color: $color-monitor

  .base-column
    +size(8, 12)
    +position(65, 46)
    background: linear-gradient(to top, $color-monitor, lighten($color-monitor, 5%))
    border-radius: 0 0 50% 50% / 0 0 12% 12%

    &::after
      @extend %pseudo-init
      +size(65, 40)
      +position(-20, 17.5)
      background-color: $color-background
      border-radius: 50%

            
          
!
            
              // https://www.neckersbox.eu
            
          
!
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