cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              //- Rounded Radio Buttons
h3 Rounded Radio Buttons
ul.rounded-radio
  li
    input(type="radio" name="rounded-choice" checked)
    span
    label Yes
  li
    input(type="radio" name="rounded-choice")
    span
    label No

//- Checked Radio Buttons
h3 Checked Radio Buttons
ul.checked-radio
  li
    input(type="radio" name="checked-choice")
    span
    label Choice number one
  li
    input(type="radio" name="checked-choice" checked)
    span
    label Choice number two
  li
    input(type="radio" name="checked-choice")
    span
    label Choice number three 
    
//- Switch Radio Buttons
h3 Switch Radio Buttons
ul.switch-radio
  li
    input(type="radio" name="switch" checked)
    span
    label Yes
  li
    input(type="radio" name="switch")
    span
    label No
    
h3 Toggle
label(class="switch" for="toggleCheck")
  input(type="checkbox" id="toggleCheck")
  div(class="slider-icon-holder")
            
          
!
            
              /*----------Variables-----------*/
$blue: #336699
$white: #fff
$yellow: #f2d514
$black: #000

/*---------Global---------*/
*
  margin: 0
  padding: 0
  box-sizing: border-box
body
  font-family: 'Open Sans', sans-serif
  padding: 20px
  background: #f5f5f5

ul
  margin-bottom: 20px
    
  li
    list-style: none

h3
  text-decoration: underline
  margin-bottom: 8px

/*-----For Rounded Radio Buttons----*/
.rounded-radio
  li
    position: relative
    span
      position: relative
      display: inline-block
      width: 20px
      height: 20px
      background: $blue
      left: 0
      top: 5px
      border-radius: 50%
      &::before
        position: absolute
        left: 50%
        top: 50%
        content: ""
        width: 8px
        height: 8px
        background: $yellow
        border-radius: 50%
        opacity: 0
        -webkit-transform: translate(-50%,-50%)
        transform: translate(-50%,-50%)
        -webkit-transition: all 0.3s linear
        transition: all 0.3s linear

    label
      padding-left: 10px
    
    input[type="radio"]
      position: absolute
      z-index: 99
      left: 5px
      top: 5px
      opacity: 0
      -webkit-transform: scale(1.5)
      transform: scale(1.5)
      &:checked + span::before
        opacity: 1
        
      
/*-----For Checked Radio Buttons----*/
.checked-radio
  @extend .rounded-radio
  
  li
    span
      width: 25px
      height: 25px
      background: transparent
      border: 3px solid $blue
      &::before
        content: "\f00c"
        font-family: 'FontAwesome'
        background: none
        width: auto
        height: auto
        color: $blue
        font-size: 14px
    input[type="radio"]
      -webkit-transform: scale(2)
      transform: scale(2)
      
/*-----For Switch Radio Buttons----*/
.switch-radio
  li
    display: inline-block
    position: relative
    span
      position: relative
      display: inline-block
      width: 50px
      height: 30px
      background: lighten($black, 80%)
      border-radius: 3px
      border: 1px solid lighten($black, 70%)
      -webkit-transition: all 0.2s linear
      transition: all 0.2s linear
    input[type="radio"]
      position: absolute
      left: 50%
      top: 50%
      z-index: 99
      opacity: 0
      -webkit-transform: translate(-50%,-50%) scale(4, 2.5)
      transform: translate(-50%,-50%) scale(4, 2.5)
      &:checked + span
        background: $blue
      &:checked + span + label
        color: $white
    label
      position: absolute
      top: 5px
      left: 50%
      -webkit-transform: translateX(-50%)
      transform: translateX(-50%)
      font-size: 14px
      font-weight: 600
      -webkit-transition: all 0.2s linear
      transition: all 0.2s linear 
      
      
/*-----For Custom Toggle Silder----*/
.switch
  display: inline-block
  height: 34px
  position: relative
  width: 70px
  
  .slider-icon-holder
    background-color: #ccc
    bottom: 0
    cursor: pointer
    left: 0
    position: absolute
    right: 0
    top: 0
    border-radius: 30px
    -webkit-transition: .4s
    -ms-transition: .4s
    transition: .4s
    &:before
      background-color: #fff
      bottom: 4px
      border-radius: 50%
      content: ""
      height: 26px
      left: 4px
      right: inherit
      position: absolute
      -webkit-transition: .4s
      -ms-transition: .4s
      transition: .4s
      width: 26px
    
  input
    display: none
    &:checked + .slider-icon-holder
      background: #336699
      &:before
        -webkit-transform: translateX(35px)
        -ms-transform: translateX(35px)
        transform: translateX(35px)
        
      
      
            
          
!
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