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 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.

            
               .half
  .frame < / >
  .head 
   .mouth
   .eyes
   .eyes
   .eyelid
   - for i in 1..2 do
      .eyebrows 
   .table 
   .tablet
   .pen
   .laptop 
   .codepenbackground
     .codepen
     .codepenLines
     .codepenLines2
     .codepenLines3
     .codepenLines4      
   .bang
   .HairRight  
    - for i in 1..50 do  
      .braid
   .shirt   
   .Ravenclaw
  .Hair  
    - for i in 1..208 do
      .braid    
  .chair 
  - for i in 1..4 do
      .bang01   
 
  
            
          
!
            
              *{box-sizing: border-box;}

@mixin transform($transform){
  -webkit-transform: $transform;
     -moz-transform: $transform;
      -ms-transform: $transform;
          transform: $transform;
}
 
@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
     -moz-border-radius: $radius;
      -ms-border-radius: $radius;
          border-radius: $radius;
}

@mixin border-top($borderTop) {
  -webkit-border-top: $borderTop;
     -moz-border-top: $borderTop;
      -ms-border-top: $borderTop;
          border-top: $borderTop;
}


@mixin border-bottom($borderBottom) {
  -webkit-border-bottom: $borderBottom;
     -moz-border-bottom: $borderBottom;
      -ms-border-bottom: $borderBottom;
          border-bottom: $borderBottom;
}


  
@mixin border-top-left($TopLeftRadius){
-webkit-border-top-left-radius:$TopLeftRadius;
-moz-border-top-left-radius: $TopLeftRadius;
-ms-border-top-left-radius: $TopLeftRadius;
   border-top-left-radius: $TopLeftRadius;
} 

@mixin border-top-right($TopRightRadius){
-webkit-border-top-right-radius:$TopRightRadius;
-moz-border-top-right-radius: $TopRightRadius;
-ms-border-top-right-radius: $TopRightRadius;
   border-top-right-radius: $TopRightRadius;
}

@mixin border-bottom-left($BottomLeftRadius){
-webkit-border-bottom-left-radius:$BottomLeftRadius;
-moz-border-bottom-left-radius: $BottomLeftRadius;
-ms-border-bottom-left-radius: $BottomLeftRadius;
   border-bottom-left-radius: $BottomLeftRadius;
} 

@mixin border-bottom-right($BottomRightRadius){
-webkit-border-bottom-right-radius:$BottomRightRadius;
-moz-border-bottom-right-radius: $BottomRightRadius;
-ms-border-bottom-right-radius: $BottomRightRadius;
   border-bottom-right-radius: $BottomRightRadius;
} 
 
$base-color: #000000;
$tone: #ce661c;
$toneDark: darken($tone, 10%);
$toneDarker: darken($toneDark, 10%);
$laptop: #ddd;
$laptopDark: darken($laptop, 10%);
$laptopDarker: darken($laptopDark, 10%);
$DeskTop: #4f4f4f;
$DeskTopDark: darken($DeskTop, 10%);
$DeskTopDarker: darken($DeskTopDark, 10%);

 	



   
.head {
  background: $tone;
  @include border-radius(50%); 
  border-top: 7px solid #0000af; 
   
  width:76px;
  height:105px;
  padding:1px;
  position:relative;
  display: inline-block;
  z-index:9999;
  outline: 0;  
  }

 
  
.eyes { 
  @include transform(rotate(-30deg) skewX(30deg));
  @include border-top-right(40%); 
  @include border-bottom-left(40%);  
  border:2px solid #5e2f0d;
  border-top:4px solid #000;
  border-bottom:2px solid #ddd;
  float: left;
  width: 16px;
  height: 12px; 
  background: #fff; 
  margin: 10px;
  position:relative;
  margin-top: 57%;
  
  
   
    &:before {
       content: "";
      @include transform(rotate(0deg) skewX(-30deg));
       position: absolute;

       left:2px;
       background: $base-color;
      @include border-radius(100%);
       width: 9px;
       height: 9px;
       animation: move 3s ease-in-out infinite alternate;
              }
 
   
    @keyframes move{ 
      0%   {   left: -2px;  top: -1px;  }
      
      
      100% { top: 1px; }
 }  
}


  
  



.eyebrows{ 
  @include border-top-left(60%);
  @include border-top-right(20%);
  
   display:inline-block;
   top:-39%;
   position:relative;
   left: 1px; 
   margin: 8px;
   background: repeating-linear-gradient(
  45deg,
  $base-color,
  $base-color 2px,
  $tone  3px,
  $toneDarker 4px
);
   height:4px;
   width: 18px; 
   float:left;
  animation: eyebrowMove 4s ease-in-out infinite alternate; 
  
  
  @keyframes eyebrowMove{
    100% { top: -41%} 
  }  
}
 
 



.Hair {
  @include border-top-left(40%);
  @include border-top-right(40%);  
  top:-105px; right: 0; bottom: 0; left: 0;
  margin: auto auto;
  position:relative; 
  width: 104px;
  height: 192px; 
  z-index:1; 
  overflow: hidden;
  background: rgba( $base-color, .9 ); 
      }





.bang {
  position:absolute; 
  background:rgba( $base-color, .6 );
   @include border-top-right(190%); 
  @include border-top-left(290%);  
  width:60px;
  height:35px;
  top:-1px;
  left:4px;
  border-top: 3px solid #0000af; 
}



.bang01{
  background:$tone;
  display:inline-block;
  width:1px;
  height:12px;
  left:0px;
  margin:4px;
  top:-409px; 
   z-index:99999;
  position:relative;
}




.HairRight { 
  @include border-top-right(59%);  
  top: 0; right: 0; bottom: 0; left: 58px; 
  position: absolute;  
  width: 24px;
  height: 180px;
  margin-top: 8%; 
  overflow: hidden;
  background: rgba( $base-color, .4 ); 
      }


.braid{
  @include border-radius(30%); 
  border:1px solid #5e2f0d; 
  z-index:1;
  display: inline-block;  
  margin:1px;
  float:left;
  width: 6px;
  height: 10px; 
  background: #000;  
  position:relative; 
       }


.braidSingle{
  @include border-radius(30%); 
  border:1px solid #5e2f0d; 
  z-index:1;
  left:50px;   
  margin:1px; 
  width: 6px;
  height: 10px; 
  background: #000;  
  position:relative; 
       }


.mouth {
    width: 24px;
    height: 8px;
    position:absolute; 
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    border: 2px solid $toneDarker;
    border-top: 0;
    margin: 20% 32%;
    bottom:0px; 
  background:$toneDark;
}


.Ravenclaw{
  top: 0; right: 0; bottom: 0; left: 0; 
  @include border-top-left(30%);
  @include border-top-right(30%);
  @include border-bottom-left(30%);
  @include border-bottom-right(30%); 
  background: repeating-linear-gradient(
  to right,
  #9c9c9c,
  #9c9c9c 2px,
  #00004d 2px,
  #00004d 10px
);
  margin: -150px 13px;
  width: 50px;
  height: 25px;
  position:relative;
  border: 1px solid #000034;
          
     &:before {
     content: "";
     @include transform(rotate(0deg) skewX(-30deg));
     @include border-radius(100%);
     position: absolute; 
     left:2px; 
     border: 1px solid #000034;  
     background: repeating-linear-gradient(
     to right,
     #9c9c9c,
     #9c9c9c 2px,
     #00004d 2px,
     #00004d 10px
      );     
     width: 50px;
     height: 50px; 
              } 
}


.shirt{ 
  @include border-top-left(35%);
  @include border-top-right(35%);  
  position:relative;
  background:#ffda64; 
  margin-top:-440%;
  right: 28%;
  width: 120px;
  height: 134px; 
  animation: shirtMove 1s ease-in-out infinite alternate;
  
  
  @keyframes shirtMove{
    100% { margin-top: -438%}
    
  }
}


.chair{ 
   
  @include border-top-left(40%);
  @include border-top-right(40%);  
  top:-190px; right: 0; bottom: 0; left: 0;
  margin: auto auto;
  position:relative;  
  overflow: hidden;
  background: #000;
  width: 170px;
  height: 134px; 
}
 
 
.laptop{
  top: 0; right: 0; bottom: 0; left: 0; 
  @include border-top-left(20%);
  @include border-top-right(20%);
  @include border-bottom-left(10%);
  @include border-bottom-right(10%);
  @include border-top( 3px solid $laptopDark); 
  background: linear-gradient(to bottom, $laptop 0%, $laptopDarker 100% );
  margin: 121px -35px;
  width: 150px;
  height: 110px;
  position:absolute; 
  z-index:999999999;
        &:before {
     content: "";
          top: 40%; right: 0; bottom: 0; left:40%;
    @include transform(rotate(0deg) skewX(-30deg));
     @include border-top-left(30%);  
     @include border-bottom-right(30%);     
     @include border-bottom-left(30%);
     position: absolute;
     width:20px;
     height:20px;
     background:#fff;
     border: 2px inset #ddd; 
   animation: flash 3s ease-in-out infinite alternate;    
  }  
}
 
 


.codepenbackground{
  background:#000;
  border-radius:50%;
  width:40px;
  height:40px;
  position:absolute;
  top:140px;
  left:-24px;
  z-index:9999999999;
}

 

.codepen {
  @include transform(rotate(35deg)skewX(-20deg));
  border:2px solid #fff;
  width:19px;
  height:16px;
  margin: 8px 10px;  
        
   &:before {
     content: "";   
  border:2px solid #fff;
  width:15px;
  height:12px;
  left:4px;
  top:4px;   
  position:absolute;  
  }
  
}


.codepenLines{  
  background:#fff;
  width:2px;
  height:9px;
  left:5px;
  top: -19px; 
  position:relative;  
}

.codepenLines2{  
  background:#fff;
  width:2px;
  height:9px;
  left:20px;
  top: -19px; 
  position:relative;  
}

.codepenLines3{  
  background:#fff;
  width:2px;
  height:9px;
  left:18px;
  top: -45px; 
  position:relative;  
}

.codepenLines4{  
  background:#fff;
  width:2px;
  height:9px;
  left:32px;
  top: -45px; 
  position:relative;  
}




@keyframes flash{
   
	0%   { opacity: 0.6; }
  100% { opacity: 1; }
}
  


 

 


.tablet{
  @include border-bottom-right(30%);     
  @include border-bottom-left(30%);
  background:#000;
  width:100px;
  height:5px;
  position:relative;
  margin: 278% -240%;
  
}


.pen{
  position:absolute;
  background:$base-color;
  width:12px;
  height:13px;
  top:218px;
  left:-70px;
  border-radius:10%;
  
   &:before {
     content: "";   
  border:2px solid #333;
  background:#181818;
  border-radius:14px;
  width:2px;
  height:36px;
  left:3px;
  bottom:10px;   
  position:absolute;  
  }
}






.table{
   top: 240%; right: 0; bottom: 0; left:0; 
  @include border-top-left(20%);
  @include border-top-right(20%);
  @include border-bottom-left(20%);
  @include border-bottom-right(20%);
  @include border-top( 3px solid $DeskTopDark); 
  background: linear-gradient(to bottom, $DeskTop 0%, $DeskTopDarker 100% );
  left:-260%; 
  width: 445px;
  height: 20px;
  position:relative; 
  z-index:999999999; 
  
}


.frame {
  
  background:#F7A072;
  border:4px solid #333;
  color:#fff;
  width:120px;
  height:140px;
  margin:auto;
  position:absolute;
  top:20px;left:0px;right:50%;
  text-align:center;
  padding-top:60px;
  
  
}


body {
  background:#12D4FF;
  text-align: center;
  padding-top: 100px;
      }

.half{
  
  background:#051923;
  width:100%;
  height:350px;
  position:absolute;
  top:10px;
  padding:90px;
  
}
            
          
!
            
              /*programming journal 
 

.vase{
  position:absolute;
  background:$base-color;
  top:155px;
  width:34px;
  height:24px;  
  left:157px;
  border-radius:30%;
     
  &:before {
     content: "";
    background:$base-color;
    width:60px;
    height:4px;
    position:absolute;
    top:24px;
    left:-14px; 
 }
}



.vasestick{
  background:$base-color;
  width:5px;
  height:40px;
  left:171px;
  top:180px;
  position:absolute; 
}


.vaseleg1{
  
    @include transform(rotate(-35deg));
  border-radius:(360%);
  border-bottom: 6px solid $base-color; 
  width:40px;
  height:40px;
  left:136px;
  top:191px;
  position:absolute;
  
  
   &:before {
     content: "";
         @include transform(rotate(55deg));
     border-radius:(360%);
  border-bottom: 6px solid $base-color;  
     
     width:40px;
  height:40px;
  left:31px;
  top:16px;
  position:absolute;
  }
  
  
}





00004d
  under co still working on this
  note to self. add bangs. */



/* @for $i from 1 through 2 
  eyes 
    &:nth-child(#{$i}) 
      &:after 
        content: "#{$i}" */
            
          
!
999px
Loading ..................

Console