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.

            
              .ddrpad
  .power-bleed
  .power-border
    .power-inner
      .power-inner-top
      .power-inner-bot
  .select
  .start
  .playarea
    .corner-squares.tl
      .holder
        .slash-b
        .slash-f
    .corner-squares.tr
      .holder
        .oh
    .corner-squares.bl
      .holder
        .side-a
        .side-b
        .side-c
    .corner-squares.br
      .holder
        - for (var s = 1; s<5; s++){
        div(class="side-"+s)
        -}
    .redblue.bs-top
      .shade-bs-top
        .arrowbluetop-white
          .arrowbluetop-blue
    .redblue.rs-right
      .shade-rs-right
        .arrowredright-white
          .arrowredright-red
    .redblue.bs-bot
      .shade-bs-bot
        .arrowbluebot-white
          .arrowbluebot-blue
    .redblue.rs-left
      .shade-rs-left
        .arrowredleft-white
          .arrowredleft-red
      
    .center
    
            
          
!
            
              // colours
$bg:linear-gradient(to right, #7ac5d8 0%, #b49fda 19%, #57c6e1 42%, #b49fda 79%, #7ac5d8 100%);

$x: rgba(55%, 23%, 45%, 0.7);//find-me colour
$subject:rgb(28%, 28%, 30%);
$black: rgb(28%, 28%, 30%); //blackish
$white: rgb(98%, 94%, 98%); //whitish
$greylt: rgb(69%, 69%, 71%); //greyish
$greydk: rgb(41%, 39%, 40%); //charcoal
$blue: rgb(38%, 65%, 96%);
$red: rgb(86%, 36%, 49%);
//shapes & sizes
$circle: 50%;
$rounded: 50px;
$size: 100px;
@mixin wh($w, $h) {
    width: $w;
    height: $h;
}
@mixin square($l){
  width: $l;
  height: $l;
}
@mixin corners($l){
  width: $l;
  height: $l;
  border: 1px solid black;
  border-radius: 10px;
  background-image: radial-gradient(ellipse farthest-corner at center, white 0%, $white 30%, $black 60%);
}
@mixin holder {
  top: 20%;
  left: 20%;
  border-radius: $circle;
  background: $white;
  box-shadow: 0 0 15px 10px $greydk, inset 0 0 5px 10px $greylt;
}
@mixin lines($h){
  width: 15%;
  height: $h;
  background: $black;
  border-radius: 20px;
}
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  }
body{
	height: 100vh;
  background: $bg;
}

.ddrpad{
  position: relative;
  @include wh($size*4, $size*4.5);
  margin: auto;
  margin-top: 5%;
  background: $black;
  border: 5px solid black;
  border-radius: 20px;
  & * {
		position: absolute;
	}
}
.select {
  width: 15%;
  height: 4%;
  background: $black;
  border-radius: 20px;
  border: 2px solid $white;
  background: $red;
  top: 4%;
  left: 10%;
}
.select:after{
  position:absolute;
  content: "SELECT";
  top: 110%;
  font-family: 'Racing Sans One', cursive;
  color: $white;
}
.start {
  width: 15%;
  height: 4%;
  background: $black;
  border-radius: 20px;
  border: 2px solid $white;
  background: $blue;
  top: 4%;
  right: 10%;
}
.start:after{
  position:absolute;
  content: "START";
  top: 110%;
  left: 6%;
  font-family: 'Racing Sans One', cursive;
  color: $white;
}
.playarea{
  top: 13%;
  left: 0%;
  @include wh(100%, 87%);
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  background: $white;
}
.subject-copy{
  width: 100%;
  height: 100%;
  position: absolute;
  background: $subject;
  border-radius: $circle;
  z-index: 2;
}
.corner-squares{
  @include corners(30%);
}
.tl, .tr {
  top: 3%;
}
.bl, .br {
  bottom: 3%;
}
.tl, .bl {
  left: 3%;
}
.tr, .br {
  right: 3%;
}
.holder{
  @include square(60%);
  @include holder;
}

.slash-b { 
  @include lines(80%);
  left: 43%;
  top: 10%;
  transform: rotate(-45deg);
}
.slash-f {
  @include lines(80%);
  left: 43%;
  top: 10%;
  transform: rotate(45deg);
}
.oh {
  background: none;
  @include square(74%);
  top: 13%;
  left: 13%;
  border: 10px solid $black;
  border-radius: $circle;
}
.side-c {
  @include lines(70%);
  left: 43%;
  top:35%;
  transform: rotate(90deg);
}
.side-a {
  @include lines(70%);
  left: 10%;
  top: 10%;
  background: $black;
  transform-origin: bottom right;
  transform: rotate(30deg);
}
.side-b {
  @include lines(70%);
  right: 10%;
  top: 10%;
  background: $black;
  transform-origin: bottom left;
  transform: rotate(-30deg);
}
.side-1, .side-2, .side-3, .side-4{
  @include lines(70%);
}

.side-2, .side-4{
  top: 15%;
}
.side-1, .side-3 {
  transform-origin: bottom right;
  transform: rotate(90deg);
}
.side-1{
  top: 15%;
}
.side-2{
  left: 70%;

}
.side-3{
  bottom: 70%;
}
.side-4{
  left: 15%;
}
.redblue {
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}
.bs-top, .bs-bot {
  @include wh(30%, 36%);
  background: $blue;
  left: 35%;
}
.rs-right, .rs-left {
  @include wh(36%, 30%);
  background: $red;
  top: 35%;
}
.bs-bot {
  bottom: 0%;
}
.rs-right {
  right: 0%;
}
.center{
  @include square(36%);
  background: $white;
  border: 5px solid $white;
  border-radius: $circle;
  box-shadow: inset 0 0 35px 20px $black;
  left: 32%;
  top: 32%;
}
.center:after{
  position:absolute;
  content: "STAY COOL";
  font-family: 'Racing Sans One', cursive;
  font-style: italic;
  top: 40%;
  left: 5%;
  font-size: 1.5em;
  text-shadow: 1px 1px white, -1px -1px white;
}
.shade-rs-left {
  @include wh(100%, 80%);
  top: 10%;
  box-shadow: inset 10px 0 25px 1px $black;
  background-image: linear-gradient(to left, $red 60%, $black 100%);
}
.shade-rs-right {
  @include wh(100%, 80%);
  top: 10%;
  box-shadow: inset -10px 0 25px 1px $black;
  background-image: linear-gradient(to right, $red 60%, $black 100%);
}
.arrowredleft-white {
  @include wh(60%, 90%);
  top: 5%;
  right: 15%;
  background: $white;
  clip-path: polygon(50% 0, 50% 20%, 96% 20%, 96% 80%, 50% 80%, 50% 100%, 0% 50%);
}
.arrowredleft-red {
  @include wh(100%, 100%);
   transform: scale(0.9, 0.9);
  right: 2%;
  background: $red;
  clip-path: polygon(50% 0, 50% 20%, 100% 20%, 100% 80%, 50% 80%, 50% 100%, 0% 50%);
}
.arrowredright-white {
  @include wh(60%, 90%);
  top: 5%;
  left: 15%;
  background: $white;
  clip-path: polygon(4% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 4% 80%);
}
.arrowredright-red{
  @include wh(100%, 100%);
 transform: scale(0.9, 0.9);
  left: 2%;
  background: $red;
  clip-path: polygon(0% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 0% 80%);
}
.shade-bs-top {
  @include wh(80%, 100%);
  left: 10%;
  box-shadow: inset 0 10px 25px 1px $black;
  background-image: linear-gradient(to top, $blue 60%, $black 100%);
}
.shade-bs-bot {
  @include wh(80%, 100%);
  left: 10%;
  box-shadow: inset 0 -10px 25px 1px $black;
  background-image: linear-gradient(to bottom, $blue 60%, $black 100%);
}
.arrowbluetop-white {
  @include wh(90%, 60%);
  bottom: 15%;
  left: 5%;
  background: $white;
  transform: rotate(-90deg);
  clip-path: polygon(4% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 4% 80%);
}
.arrowbluetop-blue{
  @include wh(100%, 100%);
 transform: scale(0.9, 0.9);
  left: 2%;
  background: $blue;
  clip-path: polygon(0% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 0% 80%);
}
.arrowbluebot-white {
  @include wh(90%, 60%);
  top: 15%;
  left: 5%;
  background: $white;
  transform: rotate(90deg);
  clip-path: polygon(4% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 4% 80%);
}
.arrowbluebot-blue{
  @include wh(100%, 100%);
 transform: scale(0.9, 0.9);
  left: 2%;
  background: $blue;
  clip-path: polygon(0% 20%, 50% 21%, 50% 0, 100% 50%, 50% 100%, 50% 80%, 0% 80%);
}
.power-border {
  @include wh(25%, 8%);
  background: black;
  left: 37.5%;
  top: -3%;
  clip-path: polygon(35% 0, 65% 0, 100% 25%, 75% 100%, 25% 100%, 0% 25%);
}
.power-inner {
  @include wh(100%, 100%);
  background: $greydk;
  transform: scale(0.8, 0.8);
  clip-path: polygon(35% 0, 65% 0, 100% 25%, 75% 100%, 25% 100%, 0% 25%);
}
.power-inner-bot {
  background: rgb(58%, 56%, 58%);
  @include wh(50%, 60%);
  left: 25%;
  top: 40%;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.power-inner-top{
  background: $greylt;
  @include wh(36%, 40%);
  left: 32%;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}
.power-bleed {
  @include wh(20%, 5%);
  left: 40%;
  background: $greylt;
  box-shadow: 0 10px 15px 10px $greylt;
  border-bottom-right-radius: $circle;
  border-bottom-left-radius: $circle;
}
            
          
!
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