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


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


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.


   <div class="center-container">
     <div class="title">Button Collection</div>
     <button class="code-btn">Code</button>
     <button class="modal-btn">View</button>
     <button class="submit-btn">Search</button>


//  White Colors
$super-white:		#ffffff;
$white:   		 	#f2f2f2;
$off-white:			#e5e5e5;
$white-grey:	 	#c5c5c5;

//  Grey Colors
$lighter-pale-grey: #89898e;
$light-pale-grey:   #7c7c81;
$light-grey-grey:	  #636367;
$super-light-grey:	#56565a;
$light-grey-blue: 	#4a4a4d;
$dark-grey-blue: 	  #313133;
$dark-black-blue: 	#252526;

//  Pink Colors
$bright-pink:  	#f65ba6;
$light-pink:	 	#ff4d79;
$medium-pink:		#ff3366;
$dark-pink: 		#ea2e6d;

//  Button Colors
$top-button:		#ea2e6d;
$bottom-button:	#e8175d;

//  Fonts
$title-font:	   	   'Anton', sans-serif;
$bold-font-weight: 	  400;

$body-font:		   	   'Nunito', sans-serif;
$medium-font-weight:  400; 
$regular-font-weight: 300;   

/* =====================
	    Google Fonts
======================== */
@import url('|Nunito:300,400');

/* =====================
	    Mini Reset
======================== */
/*! minireset.css v0.0.3 | MIT License | */

/* =====================
======================== */
html { font-size: 62.5%; }
html, body { height: 100%; min-width: 320px; }

body {
   display: flex;
   flex-direction: column;
   background-color: $light-grey-blue;
   color: $white;
   font-size: 17px;
   line-height: 1.6;
   font-family: $body-font;

a {
  color: $medium-pink;
  text-decoration: none;
  &:hover {
	color: $dark-pink;
    outline: 0;

main { 
  flex: 1 0 auto; 
  padding-top: 80px; 

@media only screen and (max-width: 767px) {
 main { padding-top: 70px; }

section {
   padding: 0 15px 0 15px;  
   margin: 0 auto;
   max-width: 1440px;

.center-container {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)

.title {
  font-family: $body-font;
  font-size: 5rem;
	font-weight: $regular-font-weight;
  letter-spacing: 1.21px;
  margin: 10px;
  text-align: center;

/* =====================
	  Button Collection
======================== */
.code-btn, .modal-btn, .submit-btn {
	background-image: linear-gradient(180deg, $bright-pink 0%, $dark-pink 100%);
	border: 0 solid transparent;
	border-radius: 4px;	
	box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
	color: $white;
  display: inline-block;
  font-family: $title-font;
	font-weight: $bold-font-weight;
	letter-spacing: 1.21px;	  
  margin: 5px;
  text-align: center;
  text-decoration: none;    
	vertical-align: middle;	

.code-btn   { font-size: 27px; padding: 6px 17px 4px 14px; }
.modal-btn  { font-size: 27px; padding: 6px 17px 4px 14px; }
.submit-btn { font-size: 27px; padding: 6px 24px 4px 14px; }

.code-btn:hover, .code-btn:focus, .code-btn:active,
.modal-btn:hover, .modal-btn:focus, .modal-btn:active, 
.submit-btn:hover, .submit-btn:focus, .submit-btn:active {
	background-image: linear-gradient(0deg, $medium-pink 0%, $light-pink 100%);
    color: $super-white;
    cursor: pointer;
    text-decoration: none;

.code-btn:after, .modal-btn:after, .submit-btn:after {
    background-size: 100% 100%;	
    content:  "\0000a0";
    display: inline-block;
    height: 32px;
    left: 9px;
    line-height: 32px;
    position: relative;
    top: 0;    
    width: 32px;

.modal-btn:after  { background: url("") no-repeat left center transparent; }
.submit-btn:after { background: url("") no-repeat left center transparent; margin: 0 -10px 0 0; }
.code-btn:after   { background: url("") no-repeat left center transparent; width: 45px; }