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

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.

            
              //- 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
🕑 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