Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="ui-kit blue">
  <div class="row">
    <button class="current blue" data-color="blue">Blue</button>
    <button class="green" data-color="green">Green</button>
    <button class="yellow" data-color="yellow">Yellow</button>
    <button class="pink" data-color="pink">Pink</button>
  </div>
		<div class="row">
			<h1>Heading level 1</h1>
			<h2>Heading level 2</h2>
			<h3>Heading level 3</h3>
			<h4>Heading level 4</h4>
			<h5>Heading level 5</h5>
			<h6>Heading level 6</h6>			
		</div>
		<div class="row">
			<p>Lorem ipsum <a href="">dolor</a> sit amet, consectetur <strong>adipisicing</strong> elit. Mollitia, tempore esse illo porro nihil? Iusto, eligendi reiciendis provident voluptatem nobis saepe. <em>Distinctio</em>, repellat odio consectetur odit hic architecto quae eveniet.</p>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus, fuga explicabo architecto saepe similique odit voluptates maxime repudiandae porro quis impedit vitae neque odio placeat quibusdam quia atque. Mollitia, consectetur.</p>
			<blockquote>consectetur adipisicing elit. Deserunt, distinctio  dolores inventore sint sunt officia explicabo totam blanditiis iure dolorum illum deleniti commodi </blockquote>
			<p>Lorem ipsum dolor sit voluptatum minus rerum aperiam provident optio ipsum.</p>
			
		</div>

		<div class="row">
			<ul>
				<li>List element</li>
				<li>List element</li>
				<li>List element</li>
				<li>List element</li>
			</ul>			
		</div>

			
		<div class="row">
			<button>Button</button>
		</div>
		
		<div class="row">
			<label class="fake-placeholder">
				<input type="text">	
				<span>Text</span>			
			</label>
		</div>
  <div class="row">
			<div class="fake-select">
				  <div class="fake-select-title">Options</div>
				  <div class="fake-select-objects">
				    <label>
				      <input type="radio" name="option"/><span>Option 1</span>
				    </label>
				    <label>
				      <input type="radio" name="option"/><span>Option 2</span>
				    </label>
				    <label>
				      <input type="radio" name="option"/><span>Option 3</span>
				    </label>
				  </div>
			</div>
		</div>
  
		<div class="row">
			<textarea name="" id="" cols="30" rows="10"></textarea>
		</div>
		<div class="row">
			<label class="fake-radio">
				<input type="radio" name="radio">
				<span></span>				
			</label>
			<label class="fake-radio">
				<input type="radio" name="radio">
				<span></span>				
			</label>
		</div>
		<div class="row">
			<label class="fake-checkbox">
				<input type="checkbox">
				<span></span>				
			</label>
		</div>


	</div>
              
            
!

CSS

              
                html {
font-size: 62.5%;
}
body {
font-size: 1.6em;
line-height: 1.5;
background: #282d33;
color: #fff;
font-family: 'Open Sans', sans-serif;
padding-top: 60px;
}
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
strong{
  font-weight:bold;
}
/*----------------------------------------------------------------------
------------------------------BUTTONS SWITCH-------------------------
----------------------------------------------------------------------*/
.ui-kit .row:first-child button.blue{
  background:#42a9ec;
}
.ui-kit .row:first-child button.green{
  background:#5BD198;  
}
.ui-kit .row:first-child button.yellow{
  background:#F1C63D;  
}
.ui-kit .row:first-child button.pink{
  background:#F55487;  
}
.ui-kit .row:first-child button.current {
border-bottom: 2px solid #fff;
}
/*----------------------------------------------------------------------
------------------------------UI----------------------------------------
----------------------------------------------------------------------*/
.ui-kit{
	width: 620px;
	margin: 0 auto;
	margin-bottom: 50px;
}
.row{
	margin:20px 0;
}
input[type=text],input[type=password],input[type=email],button{
height: 36px;
padding:10px;
}
textarea{
padding:10px;
height: 150px;
max-width: 100%;
}
input,select,textarea,button{
	border: none;
	outline:none !important;
	margin: 0;
	background: #e9ecee;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
}
input:focus,textarea:focus{
background:#f0f4f7
}
button{
	background: #42a9ec;
	color: #fff;
	min-width: 150px;
	line-height: 36px;
	height: 36px;
	padding: 0 10px;
  cursor:pointer;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;	
}
button:hover{
  box-shadow:inset 0 -36px 0 rgba(0,0,0,0.1);
}
button:active{
  box-shadow:inset 0 -36px 0 rgba(0,0,0,0.2);
}
  -webkit-transform: scale(0.98);
  -moz-transform: ;
  -ms-transform: ;
  -o-transform: ;
  transform: ;
}
input[type=text],input[type=password],input[type=email]{
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;	
}
em{
	font-style: italic;
}
ul {
padding-left: 1em;
}
ul li:before {
    content: "• ";
    color: #42a9ec;
}
blockquote {
margin: 1em;
position: relative;
}
blockquote:before, blockquote:after {
content: '“';
position: absolute;
left: -0.5em;
top: 0;
color: #42a9ec;
line-height: 0;
font-size: 2em;
}
blockquote:after {
	content: '”';
	left: inherit;
	right: -0.5em;
	top: inherit;
	bottom: -0.2em;
	}
/*---------------------------------------------------------------------
-----------------------------------------HEADINGS----------------------
----------------------------------------------------------------------*/
h1{
	font-size:2em;
}
h2{
	font-size:1.8em;
}
h3{
	font-size:1.6em;	
}
h4{
	font-size:1.4em;	
}
h5{
	font-size:1.2em;	
}
h6{
	font-size:1.1em;	
}
/*----------------------------------------------------------------------
-----------------------------------------HEADINGS-----------------------
----------------------------------------------------------------------*/
a{
	position: relative;
  text-decoration:none;
	color :#42a9ec;
	box-shadow: inset 0 -1px 0 ;
	-webkit-transition: all 100ms linear;
	-moz-transition: all 100ms linear;
	-ms-transition: all 100ms linear;
	-o-transition: all 100ms linear;
	transition: all 100ms linear;	
}
a:hover{
	color :#fff !important;
	box-shadow: inset 0 -1.5em 0 #42a9ec;
}
/*---------------------------------------------------------------------
-----------------------------------------INPUT TEXT--------------------
-----------------------------------------------------------------------*/
input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus {
background: rgba(255, 255, 255, 0.5);
box-shadow: inset 0 -1px 0 #42a9ec;
}
textarea:focus{
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 -1px 0 #42a9ec;
}
/*--------------------------------------------------------------------
-----------------------------------------FAKE PLACEHOLDER-------------
----------------------------------------------------------------------*/
.fake-placeholder {
position: relative;
display: inline-block;
}
.fake-placeholder input+ span {
position: absolute;
display: none;
top: 0;
bottom: 0;
left: 10px;
line-height: 36px;
color: rgb(149, 149, 149);
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;	
}
.fake-placeholder input.empty + span{
display: block;
}
.fake-placeholder input:focus + span{
display: block !important;
}
.fake-placeholder input:focus + span {
position: absolute;
top: -10px;
bottom: inherit;
left: 0;
line-height: 1;
color: #42a9ec;
font-size: 9px;
}
/*---------------------------------------------------------------------
-----------------------------------------FAKE RADIO--------------------
----------------------------------------------------------------------*/
.fake-radio {
display: inline-block;
}
.fake-radio input {
position: absolute;
visibility: hidden;
}
.fake-radio input + span {
	width: 20px;
	height: 20px;
	display:block;
	background: #e9ecee;
	border-radius: 50%;
	position: relative;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
	}

.fake-radio input + span:before {
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	right: 5px;
	bottom: 5px;
	border-radius: 50%;
	background: black;
	opacity: 0.2;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
	}
.fake-radio:hover input + span:before {
	opacity: 0.5;
	}
.fake-radio input:checked + span ,.fake-radio input.checked + span {
	background: #42a9ec;
	}
.fake-radio input:checked + span:before ,.fake-radio input.checked + span:before {
	opacity: 0.6;
	top: 2px;
	left: 2px;
	right: 2px;
	bottom: 2px;
	}
/*---------------------------------------------------------------------
-----------------------------------------FAKE CHECKBOX-----------------
----------------------------------------------------------------------*/
.fake-checkbox {
display: inline-block;
}
.fake-checkbox input {
position: absolute;
visibility: hidden;
}
.fake-checkbox input + span {
	width: 20px;
	height: 20px;
	display:block;
	background: #e9ecee;
	position: relative;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
	}

.fake-checkbox input + span:before {
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	right: 5px;
	bottom: 5px;
	background: black;
	opacity: 0.2;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
	}
.fake-checkbox:hover input + span:before {
	opacity: 0.5;
	}
.fake-checkbox input:checked + span ,.fake-checkbox input.checked + span {
	background: #42a9ec;
	}
.fake-checkbox input:checked + span:before ,.fake-checkbox input.checked + span:before {
	opacity: 0.6;
	top: 2px;
	left: 2px;
	right: 2px;
	bottom: 2px;
	}
.fake-checkbox input + span:after {
content: '';
position: absolute;
height: 5px;
width: 10px;
border-left: 2px solid #fff;
border-bottom: 2px solid #fff;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
top: 6px;
left: 5px;
opacity: 0;
}
.fake-checkbox input:checked + span:after {
	opacity: 1;
}
/*--------------------------------------------------------------------
-----------------------------------------FAKE SELECT------------------
----------------------------------------------------------------------*/
.fake-select{
  width:300px;
  position: relative;
  cursor: pointer;  
  color: #585858;
  height: 36px;
  line-height: 36px;
  z-index: 1;
}
.fake-select:after {
content: '';
position: absolute;
border-top: 10px solid rgba(0, 0, 0, 0.5);
border-left: 6px solid transparent;
border-right: 6px solid transparent;
top: 14px;
right: 10px;
}
.fake-select input[type="radio"]{
  position:absolute;
  left:-9999px;
}

.fake-select-title {
width: 100%;
display: block;
background: #e9ecee;
text-align: center;
}

.fake-select input[type="radio"] + span {
background: #e9ecee;
display: block;
text-align: center;
cursor: pointer;
width: 100%;
}
.fake-select-objects {
position: absolute;
top: 0;
padding-top: 36px;
width: 100%;
overflow: hidden;
max-height: 0;
}
.fake-select:hover .fake-select-objects  input[type="radio"] + span {
position: relative;
top: 0;
-webkit-transition: all 100ms linear;
-moz-transition: all 100ms linear;
-ms-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
}
.fake-select:hover input[type="radio"] + span:hover {
background:#BBB;
}
.fake-select:hover input[type="radio"]:checked + span:hover {
background:#42a9ec;
color: #fff;
}
.fake-select input[type="radio"]:checked + span {
background: #42a9ec;
color: #fff !important;
position: absolute;
top: 0em;
}
.fake-select:hover .fake-select-objects {
max-height: 540px;
}

/*---------------------------------------------------------------------
-----------------------------------------UI- COLORS--------------------
----------------------------------------------------------------------*/
/*----------------GREEN------------*/
.green .fake-select input[type="radio"]:checked + span,.green .fake-select:hover input[type="radio"]:checked + span:hover,.green button,.green .fake-radio input:checked + span ,.green .fake-radio input.checked + span,.green .fake-checkbox input:checked + span ,.green .fake-checkbox input.checked + span{
	background: #5BD198;
}
.green .fake-select input[type="radio"]:checked + span,.green ul li:before,.green blockquote:before,.green  blockquote:after,.green a,.green .fake-placeholder input:focus + span {
    color: #5BD198;
}
.green a:hover{
	box-shadow: inset 0 -1.5em 0 #5BD198;
}
.green textarea:focus,.green input[type="text"]:focus,.green input[type="password"]:focus,.green input[type="email"]:focus {
box-shadow: inset 0 -1px 0 #5BD198;
}
/*----------------YELLOW------------*/
.yellow .fake-select input[type="radio"]:checked + span,.yellow .fake-select:hover input[type="radio"]:checked + span:hover,.yellow button,.yellow .fake-radio input:checked + span ,.yellow .fake-radio input.checked + span,.yellow .fake-checkbox input:checked + span ,.yellow .fake-checkbox input.checked + span{
	background: #F1C63D;
}
.yellow .fake-select input[type="radio"]:checked + span,.yellow ul li:before,.yellow blockquote:before,.yellow  blockquote:after,.yellow a,.yellow .fake-placeholder input:focus + span {
    color: #F1C63D;
}
.yellow a:hover{
	box-shadow: inset 0 -1.5em 0 #F1C63D;
}
.yellow textarea:focus,.yellow input[type="text"]:focus,.yellow input[type="password"]:focus,.yellow input[type="email"]:focus {
box-shadow: inset 0 -1px 0 #F1C63D;
}
/*----------------PINK------------*/
.pink .fake-select input[type="radio"]:checked + span,.pink .fake-select:hover input[type="radio"]:checked + span:hover,.pink button,.pink .fake-radio input:checked + span ,.pink .fake-radio input.checked + span,.pink .fake-checkbox input:checked + span ,.pink .fake-checkbox input.checked + span{
	background: #F55487;
}
.pink .fake-select input[type="radio"]:checked + span,.pink ul li:before,.pink blockquote:before,.pink  blockquote:after,.pink a,.pink .fake-placeholder input:focus + span {
    color: #F55487;
}
.pink a:hover{
	box-shadow: inset 0 -1.5em 0 #F55487;
}
.pink textarea:focus,.pink input[type="text"]:focus,.pink input[type="password"]:focus,.pink input[type="email"]:focus {
box-shadow: inset 0 -1px 0 #F55487;
}


              
            
!

JS

              
                //https://twitter.com/One_div
//http://one-div.com <-- CSS3 single element database

jQuery(document).ready(function($){
	$('.fake-placeholder input').each(function(){
		if($(this).val()==""){
			$(this).addClass('empty');	
		}
	})
	$('.fake-placeholder input').on('change',function(){
		if($(this).val()==""){
			$(this).addClass('empty');	
		}else{
			$(this).removeClass('empty');	
		}
	})
	  $('.fake-select-objects').on('click',function(e){
	    if( $(event.target).hasClass('fake-select-objects')){
	    	$(this).find('input[type=radio]').prop('checked',false);
	    }
  })
  /*---------- Used for the example-------*/
  $('.ui-kit .row:first-child button').on('click',function(){
    $('.ui-kit').removeClass($('button.current').attr('data-color'));
    $('.ui-kit .row:first-child button').removeClass('current');
    $('.ui-kit').addClass($(this).attr('data-color'));
    $(this).addClass('current');
  })
})
              
            
!
999px

Console