123

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.

            
              <div class="wrapper">
   <div class="outer-circle"></div>
  <div class="mailbox">
    <ul class="new-mail">
      <li class="new-mail"></li>
      <li class="new-mail"></li>
    </ul>
    
    <div class="flag"></div>
    <div class="flag-eye"></div>
    <div class="flag-right-eye"></div>
    <div class="smile"></div>
      <div class="flag-holder">
    </div>
    <div class="flag-stick"></div>
    <div class="notification"></div>
  </div>
  
</div>
            
          
!
            
              //colors
$bg:#D7EFFB;
$mailbox-red:#E1242B;
$mailbox-border:#694835;
$flagholder:#333436;
$flag-stick:#BF815A;
$dark-brown:#704733;
$radius:50%;
*{
  box-sizing:border-box;
}
html,body{
  margin:0;
  padding:0;
}
body{
  background:$bg;
  
}
/*Wrapper*/
.wrapper{
  position:relative;
  margin:auto;
  display:block;
  margin-top:5%;
  width:600px;
  height:500px;
  background:none;
 // border:solid 3px black;
}
/*Outer Circle*/
.outer-circle{
  position:absolute;
  height:80%;
  width:70%;
  top:10%;
  left:15%;//100-48/2
  background:#BADCFF;
  border-radius:$radius;
  border: 3px solid #DADADA; 
  z-index:2;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
}
.mailbox{
  position:absolute;
  height:120px;
  width:200px;
  background:$mailbox-red;
  top:33%;
  left:35%;
  z-index:8;
  border-top-left-radius:50px;
  border-top-right-radius:60px;
  border:5px solid $mailbox-border;
  
  &:before{
    position:absolute;
    content:'';
    height:100%;
    width:$radius;
    background:#8B1A1C;
    border-top-left-radius:50px;
    border-top-right-radius:55px;
    border:5px solid $mailbox-border;
    top:-4%;
    left:-11%;
    
  }
  &:after{
    position:absolute;
    content:'';
    height:100%;
    width:50%;
    background:#E0252E;
    background: linear-gradient(45deg, #E0252E 50%,#D6343E 50% ,#B61F24 52%);  
    transform: skew(10deg,0deg);
    border-top-left-radius:50px;
    border-top-right-radius:55px;
    border:5px solid $mailbox-border;
     top:-4%;
    left:-20%;
  }
}
.new-mail{
  position:absolute;
  list-style:none;
  height:100px;
  width:70px;
  z-index:0;  
  border-radius:8px;
  border:3px solid #694835;
  top:-41%;
  transform:rotate(19deg);
  background-color:#FFD03C;
  background: linear-gradient(110deg, #fdcd3b 50%,#694835 50% ,#ffed4b 55%);  
}
li {
  &:nth-child(1) {
  background: linear-gradient(110deg, #E4D7F1 50%,#694835 50% ,#E4D7F1 52%);  
  position:absolute;
  left:-116%;
  top:20%;
  transform: rotate(-55deg);  
  }
  &:nth-child(2) {
  background: linear-gradient(110deg, #FDBBD7 50%,#694835 50% ,#FDBBD7 55%);  
  position:absolute;
  left:43%;
  top:29%;
  transform: rotate(-123deg);  
  } 
}
.flag-eye{
  position:absolute;
  height:28px;
  width:28px;
  left:56%;
  top:37%;
  border-radius:$radius;
  background:#244F56;
  z-index:3;
  border-left:4px solid #1F1F1F ;
  &:before{
    
  }
  &:after{
    position:absolute;
    content:'';
    height:13px;
    width:13px;
    background:#EDEDED;
    border-radius:$radius;
    top:23%;
    left:5%;
  }
}
.flag-holder{
  position:absolute;
  height:80%;
  width:6%;
  z-index:2;
  background:#333436;
  right:33%;
  top:-34%;
  &:before{
    position:absolute;
    content:'';
    background:$flagholder;
    height:20px;
    width:40px;
    border-top-left-radius:10px;
    top:-12%;    
  }
}
.flag-right-eye{
  position:absolute;
  background:$mailbox-red;
  border-top:3.5px solid $flagholder;
  height:25px;
  width:28px;
  border-radius:$radius;
  right:5%;
  top:45%;
}
.smile{
  position:absolute;
  background:$mailbox-red;
  border-bottom:3.5px solid $flagholder;
  height:25px;
  width:20px;
  border-radius:$radius;
  bottom:16%;
  right:20%;
}
.flag-stick{
  position:absolute;
  height:120px;
  width:40px;
  background:$flag-stick;
  left:28%;
  top:104%;
  border:4px solid $dark-brown;
  &:before{
    position:absolute;
    content:'';
    border-left:2px solid $dark-brown;
    width:5px;
    height:100%;
    left:25%;
  }
}
.notification{
  position:absolute;
  height:40px;
  width:40px;
  border-radius:$radius;
  background:#FD2526;
  border:3px solid $flagholder;
  z-index:4;
  right:-2%;
  top:-18%;
  text-align:center;
  color:white;
  text-height:2px;
  animation: pulse 0.75s infinite;
  &:after{
    position:absolute;
    top:25%;
    left:30%;
    height: 2.5em;
    font-family: Arial;
  font-size: 20px;
    content:'3';
    
  }
}
@keyframes pulse{
  50% {
    transform:scale(0.8);
	}
}








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

Console