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

            
              <div id="r8-balloon-radio" class="container">
    <p>
    <ul>
        <li><input class="radio r8-radio-float" type="radio" name="null" value="0" /></li>
        <li><input checked class="radio r8-radio-float" type="radio" name="null" value="1 "disabled /></li>
        <li><input class="radio r8-radio-float" type="radio" name="null" value="2"/></li>
        <li><input class="radio r8-radio-float" type="radio" name="null" value="3" /></li>
      <li><input class="radio r8-radio-float" type="radio" name="null" value="5" disabled/></li>
      </ul>

    </p>
</div>
<div id="r8-logo-coin" ></div>
            
          
!
            
              @import "compass/css3";

@import 'compass';
@import 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/1251/bootstrap.min.css';
@import 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/1251/r8-style.css';
@mixin vendor-prefix($name, $argument) {
  -webkit-#{$name}: #{$argument};
  -ms-#{$name}: #{$argument};
  -moz-#{$name}: #{$argument};
  -o-#{$name}: #{$argument};
  #{$name}: #{$argument};
}



* {
    box-sizing: border-box;
    font-family:'Open Sans';
    outline:none!important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    
    @include vendor-prefix( font-smoothing, antialiased );
}

body {
  text-align:center;
  margin:50px auto 200px auto;

  
  
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1251/mooning.png') repeat;
  
@media (-webkit-min-device-pixel-ratio: 2),
  ( min-resolution: 192dpi) { 
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1251/mooning_@2X.png') repeat;
  }
  #r8-logo-coin{
        width:110px;
			height:110px;
			display:block;
			margin:15px;
			position:absolute;
			bottom:15px;
			right:15px;
			border: none;
			outline:none;
			@include vendor-prefix( user-select, none );
			background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1251/R8-launcher-icon-light.svg') 0 0 no-repeat!important;
		}
  margin: 0px auto!important;

  #r8-balloon-radio{

   margin-top:125px!important;
    width:500px;
    display:block;

.r8-radio-float {
  cursor:pointer;
    background: #CCC;
    border:1px solid #333;
    &:checked{
        background: #F7F7F9; 
    }
    &:hover {
        background: #666;
        @include vendor-prefix(  box-shadow, 0 0 5px #FFF );
    }
    &:checked:hover{
      @include vendor-prefix(  box-shadow, none );
    }
}


  ul{
    list-style:none;
    li{
      display:inline-block;
      @include vendor-prefix(  transform, rotateZ(45deg) );
    }
  }

/* Radio Elements
===============================*/
.radio {
  position:relative;
  width:30px;
  height:30px;
  margin:10px;
  margin-top:0px;

  @include vendor-prefix(  appearance, none );

  &:hover{
    @include vendor-prefix( animation, stabalize 1 1s);
  }
  
  @include vendor-prefix(  transform-origin, center );
  @include vendor-prefix(  border-radius, 50% 50% 3px 50% );
  @include vendor-prefix(  transition, all .3s ease-in-out );

 &:checked {
  @include vendor-prefix(  transition, background .3s ease-in-out );
  @include vendor-prefix(  transform, scale(1.2) );
}
  &:disabled{
     cursor:no-drop!important;
    opacity:0.25;
    background: #CCC;
    @include vendor-prefix(  transition, none!important );
    @include vendor-prefix( animation, none!important );
  }
    &:checked:disabled{
     cursor:no-drop!important;
    opacity:0.40;
    background: #F7F7F9; 
    @include vendor-prefix(  transition, none!important );
    @include vendor-prefix( animation, none!important );
  }

&:checked:before{
 background:#f9086e;
 width:20px;
  height:20px;
  border:3px solid rgba(255,255,255,0.5);
}


&:before {
  position:absolute;
  top:4px;
  left:4px;
  width:20px;
  height:20px;
  background:#fff;
  content:"";
 @include vendor-prefix(  border-radius, 50% );
   @include vendor-prefix(  transition, all .3s ease-in-out );
}
&:after {
        /* Hover shadow */
        width:30px;
        height:10px;
        clear:both;
        top:35px;
        left:25px;
        content:'';
        display:block; 
        position:absolute;
        background: #041e21;
        opacity:0.25;

        @include vendor-prefix( transform-origin, middle right );
        @include vendor-prefix( transform, rotateZ(-45deg) );
        @include vendor-prefix( transition, height 1s ease );

          overflow:visible;
          background: -moz-radial-gradient(center, ellipse cover,  #041e21 0%, transparent 100%);
          background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#041e21), color-stop(50%,transparent));
          background: -webkit-radial-gradient(center, ellipse cover,  #041e21 0%, transparent 50%);
          background: -o-radial-gradient(center, ellipse cover,  #041e21 0%,transparent 100%);
          background: -ms-radial-gradient(center, ellipse cover,  #041e21 0%,transparent 100%);
          background: radial-gradient(ellipse at center,  #041e21 0%,transparent 50%);
          filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#041e21', endColorstr='transparent',GradientType=1 );
}



  }
}
}
@keyframes stabalize{
  0%{
    transform: scale(0.8);
  }
  25%{
   transform: scale(1.2);
  }
  50%{
    transform: scale(0.9);
  }
  75%{
    transform: scale(1.1);
  }
  100%{
    transform: scale(1);
  }
}
@-webkit-keyframes stabalize{
  0%{
    -webkit-transform: scale(0.8);
  }
  25%{
   -webkit-transform: scale(1.2);
  }
  50%{
    -webkit-transform: scale(0.9);
  }
  75%{
    -webkit-transform: scale(1.1);
  }
  100%{
    -webkit-transform: scale(1);
  }
}
@-moz-keyframes stabalize{
  0%{
    -moz-transform: scale(0.8);
  }
  25%{
   -moz-transform: scale(1.2);
  }
  50%{
    -moz-transform: scale(0.9);
  }
  75%{
    -moz-transform: scale(1.1);
  }
  100%{
    -moz-transform: scale(1);
  }
}
@-ms-keyframes stabalize{
  0%{
    -ms-transform: scale(0.8);
  }
  25%{
   -ms-transform: scale(1.2);
  }
  50%{
    -ms-transform: scale(0.9);
  }
  75%{
    -ms-transform: scale(1.1);
  }
  100%{
    -ms-transform: scale(1);
  }
}

            
          
!
            
              /*
These look and perform very well on mobile… There is a subconscious satisfaction granted when you tap the radio and the tap sends the radio into the distance followed by a counter swing forward.


I recently included states for the 'disabled' as well as 'checked & disabled'.

I know some may think its a useless option but in my opinion it serves well in instances where one wants to display the area to the user even if it is the only available option.
*/
            
          
!
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