cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              .monitor
 .cord
 .screen
  .icon
  .icon
  .icon
  .cursor
  .window
            
          
!
            
              $b: #3f3f3f;
$bl: #00c3ff; 
$g: #ffff1c;
$w: #f4f4f4;
$t: rgba(255,255,255,0);
$bg: #068081;
$ex: #0000fe;

body{
  width:100vw;
  height:100vh;
  overflow:hidden;
  display:flex;
  font-family: 'VT323', monospace;
  justify-content:center;
  align-items:center;
  background:linear-gradient(to bottom, $t, $t 75vmin, darken($w, 5%) 75vmin, $w), linear-gradient(to bottom, $bl -10%, $g);
  .monitor{
    width:50vmin;
    height:35vmin;
    border:5vmin solid $b;
    border-radius:2vmin;
    position:relative;
    .cord{
      position:absolute;
      z-index:999;
      width:5000vmin;
      height:7vmin;
      border-radius:0vmin 0vmin 0vmin 150vmin;
      border-left:1vmin solid darken($b, 30%);
      border-bottom:1vmin solid darken($b, 30%);
      bottom:-13vmin;
      left:35vmin;
    }
    .screen{
      width:50vmin;
      height:35vmin;
      position:absolute;
      left:0;
      top:0;
      background:linear-gradient(to bottom, $bg, $bg 33vmin, darken($w, 10%) 33vmin);
      .window{
        width:30vmin;
        height:15vmin;
        position:absolute;
        left:10vmin;
        top:5vmin;
        background:linear-gradient(to bottom, $ex, $ex 2vmin, darken($w, 10%) 2vmin);
        border:inset 0.25vmin;
        animation:enter 15s linear infinite;
        @keyframes enter{
          0%{
            transform:scale(0);
            left:-10vmin;
            opacity:0;
          }
          22%{
            transform:scale(0);
            left:-10vmin;
            opacity:0;
          }
          24%{
            transform:scale(1);
            left:10vmin;
            opacity:1;
          }
          50%{
            transform:scale(1);
            left:10vmin;
            opacity:1;
          }
          51%{
            transform:scale(0);
            left:10vmin;
            opacity:0;
          }
          70%{
            transform:scale(0);
            left:-10vmin;
            opacity:0;
          }
          100%{
            transform:scale(0);
            left:-10vmin;
            opacity:0;
          }
        }
        &:before{
          content:'X';
          position:absolute;
          padding:0vmin 0.25vmin;
          background:darken($w, 10%);
          right:0.5vmin;
          top:0.25vmin;
          font-size:1.25vmin;
        }
        &:after{
          content:'FATAL ERROR';
          position:absolute;
          left:50%;
          top:50%;
          transform:translateX(-50%) translateY(-50%);
          margin-top:0.5vmin;
          font-size:5vmin;
          width:100%;
          text-align:center;
          line-height:0.75;
          animation:flash 1.5s linear infinite;
          animation-delay:-1.25s;
          @keyframes flash{
            0%{
              color:#000;
              content:'FATAL ERROR';
              font-size:5vmin;
            }
            60%{
              color:#000;
              content:'FATAL ERROR';
              font-size:5vmin;
            }
            60%{
              color:red;
              content:'PLEASE MOVE EXPLORER TO RECYCLE BIN';
              
            }
            100%{
              color:red;
              content:'PLEASE MOVE EXPLORER TO RECYCLE BIN';
            }
          }
        }
      }
      .cursor{
        position:absolute;
        z-index:9;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0.5vmin 1.2vmin 0.5vmin;
        border-color: transparent transparent darken($b, 20%) transparent;
        left:40vmin;
        top:30vmin;
        transform:rotate(-25deg);
        animation:clickin 15s linear infinite;
        @keyframes clickin{
          0%{
            transform:translateX(0) translateY(0) rotate(-25deg);
          }
          10%{
            transform:translateX(-37vmin) translateY(-18vmin) rotate(-25deg);
          }
          20%{
            transform:translateX(-37vmin) translateY(-18vmin) rotate(-25deg);
          }
          40%{
            transform:translateX(-37vmin) translateY(-18vmin) rotate(-25deg);
          }
          45%{
            transform:translateX(-1vmin) translateY(-24vmin) rotate(-25deg);
          }
          60%{
            transform:translateX(-1vmin) translateY(-24vmin) rotate(-25deg);
          }
          65%{
            transform:translateX(0) translateY(0) rotate(-25deg);
          }
          100%{
            transform:translateX(0) translateY(0) rotate(-25deg);
          }
          
        }
        &:after{
          content:'';
          position:absolute;
          left:-0.1vmin;
          height:0.85vmin;
          width:0.25vmin;
          background:darken($b, 20%);
          bottom:-1.7vmin;
        }
      }
      .icon{
        &:first-of-type{
          width:2vmin;
          height:2vmin;
          background:$bl;
          position:absolute;
          top:2vmin;
          left:3vmin;
          box-shadow:inset 0 0 0 0.35vmin $w, 0.25vmin 0.25vmin 0 0 darken($w, 20%);
          &:after{
            content:'';
            position:absolute;
            width:2.5vmin;
            height:1vmin;
            background:$w;
            box-shadow:0.25vmin 0.25vmin 0 0 darken($w, 20%);
            bottom:-1vmin;
            left:-0.5vmin;
            transform:skewX(-10deg);
          }
          &:before{
            content:'My.Computer Explorer';
            position:absolute;
            color:$w;
            font-size:1.25vmin;
            bottom:-14.25vmin;
            width:5vmin;
            display:block;
            text-align:center;
            left:-1.75vmin;
            line-height:8vmin;
          }
        }
        &:nth-of-type(2){
          position:absolute;
          left:2.5vmin;
          top:8vmin;
          animation:clicked 15s linear infinite;
          @keyframes clicked{
            0%{
              transform:scale(1);
            }
            10%{
              transform:scale(1);
            }
            19%{
              transform:scale(1);
              filter:saturate(1);
            }
            20%{
              transform:scale(1.05);
              filter:saturate(0);
            }
            20.5%{
              transform:scale(1);
              filter:saturate(1);
            }
            21%{
              transform:scale(1.05);
              filter:saturate(0);
            }
            21.5%{
              transform:scale(1);
              filter:saturate(1);
            }
          }
          
          &:before{
            content:'e';
            font-family:arial;
            font-size:5vmin;
            color:$ex;
            font-weight:900;
          }
          &:after{
            content:'';
            position:absolute;
            width:3.25vmin;
            height:3.25vmin;
            border-radius:100vmin;
            box-shadow:inset 0 0 0 0.25vmin $ex,  -0.25vmin 0 0 yellow;
            transform:skewX(-25deg);
            left:-0.25vmin;
            top:1.5vmin;
          }
          
        }
        &:nth-of-type(3){
          position:absolute;
          bottom:0.15vmin;
          left:0.5vmin;
          background:darken($w, 30%);
          width:6vmin;
          height:1.5vmin;
          border:inset 0.25vmin darken($w, 20%);
          &:before{
            content:"Start";
            position:absolute;
            right:0.15vmin;
            top:-0.25vmin;
            font-size:2vmin;
          }
          &:after{
            content:'';
            position:absolute;
            height:1.5vmin;
            width:1.5vmin;
            left:0;
            top:0;
            background:linear-gradient(to right, red, red 0.65vmin, $t 0.65vmin, $t 0.75vmin, green 1vmin), linear-gradient(to right, blue, blue 0.65vmin, $t 0.65vmin, $t 0.75vmin, yellow 1vmin);
            background-position:0px -0.7vmin, 0px 0.8vmin;
            background-repeat:repeat-x;
          }
        }
      }
    }
    &:after{
      content:'';
      position:absolute;
      border-bottom: 12vmin solid darken($b, 5%);
	    border-left: 2.5vmin solid transparent;
	    border-right: 2.5vmin solid transparent;
	    height: 0;
	    width: 7.5vmin;
      bottom:-15vmin;
      left:calc(50% - 5.75vmin);
      z-index:-1;
    }
    &:before{
      content:'';
      position:absolute;
      border-bottom: 5vmin solid darken($b, 7.5%);
	    border-left: 1vmin solid transparent;
	    border-right: 1vmin solid transparent;
	    height: 0;
	    width: 25vmin;
      bottom:-19vmin;
      left:50%;
      transform:translateX(-50%);
      z-index:-1;
    }
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console