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

              
                <body>
 <main>
  <section>
   <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>
    </div>
   </section>
  </main>
</body>
              
            
!

CSS

              
                //================================
//  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('https://fonts.googleapis.com/css?family=Anton|Nunito:300,400');

/* =====================
	    Mini Reset
======================== */
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,
legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 
{margin:0;padding:0}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
ul{list-style:none}
button,input,select,textarea{margin:0}
html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
img,embed,iframe,object,audio,video{height:auto;max-width:100%}
iframe{border:0}table{border-collapse:collapse;border-spacing:0}
td,th{padding:0;text-align:left}

/* =====================
	        Body
======================== */
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("https://drewgoff.com/../images/icons/modal-window-icon.svg") no-repeat left center transparent; }
.submit-btn:after { background: url("https://drewgoff.com/../images/icons/next.svg") no-repeat left center transparent; margin: 0 -10px 0 0; }
.code-btn:after   { background: url("https://drewgoff.com/../images/icons/code.svg") no-repeat left center transparent; width: 45px; }
              
            
!

JS

              
                
              
            
!
999px

Console