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

              
                <!-- Important for mobile experience but not related to the code -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes">
<link rel="stylesheet" href="https://jar.is/cdn/css/fonts.css">
<link rel="stylesheet" href="https://jar.is/cdn/css/font-awesome.css">

<!-- -------------   A   T   T   E   N   T   I   O   N   -------------

                  Y O U R  C O D E  S T A R T S  H E R E

------------------------------------------------------------------ -->

<div id="block-one" class="wave-bottom">
	<div class="content">
	<h1>This is my title</h1>
		<p>
Ex cum case deleniti pertinax, vocibus dolores ut sea, id per possit recusabo. Ne vis possim aperiam invidunt, aliquid singulis facilisis ei sit. Sed congue ubique invenire te. An cum quot nemore. Vix ex ludus viderer vivendum, duo nostrum adipiscing honestatis ad.  Ex quando facilis mea. His sumo volutpat splendide ei, sed te brute pertinacia deterruisset. Quis error sanctus no eos, vis id quas tantas petentium, novum semper in sed. Eu quo quem eius, ea nemore consulatu mel. Eu audire volumus gloriatur vix.
    </p>
  </div>
</div>

<div id="block-two">
	<div class="content">
	<h2>My title for the second block</h2>
		<p>
Ex cum case deleniti pertinax, vocibus dolores ut sea, id per possit recusabo. Ne vis possim aperiam invidunt, aliquid singulis facilisis ei sit. Sed congue ubique invenire te. An cum quot nemore. Vix ex ludus viderer vivendum, duo nostrum adipiscing honestatis ad.  Ex quando facilis mea. His sumo volutpat splendide ei, sed te brute pertinacia deterruisset. Quis error sanctus no eos, vis id quas tantas petentium, novum semper in sed. Eu quo quem eius, ea nemore consulatu mel. Eu audire volumus gloriatur vix.
    </p>
 </div>
</div>
              
            
!

CSS

              
                // SCSS VARIABLES

// COLORS LIBRARY

$co01: #ffffff; //white
$co02: #000000; //black
$co03: #37474f; //darkgray
$co04: #666666; //gray
$co05: #f7f8f9; //lightgray
$co06: #d32f2f; //red
$co07: #e67e22; //orange
$co08: #f1c40f; //yellow
$co09: #fff39a; //lightyellow
$co10: #17578a; //darkblue
$co11: #34a4ef; //blue 
$co12: #c5fcff; //lightblue
$co13: #7c4dff; //purple
$co14: #1aaf87; //green
$co15: #91ec4f; //limegreen
$co16: #ddff79; //lightgreen

// FONTS

$ff1: 'Poppins', sans-serif;
$ff2: 'Open Sans', sans-serif;

/*------------- A  T  T  E  N  T  I  O  N  -----------------
        
        Y O U R   C O D E   S T A R T S   H E R E 
        
----------------------------------------------------------*/

#block-one.wave-bottom {
	width: 100%;
	background: url("https://jar.is/cdn/img/04.jpg") center no-repeat;
	background-size: cover;	
	background-attachment: fixed;
	padding: 100px 0 164px 0;
	position: relative;
	top:0;right:0;bottom:0;left:0;
	z-index: 1;
  &:before {
		content: '';
		position: absolute;
		background: rgba(33, 95, 125, 0.81);
		width: 100%;
		bottom:0;height: 100%;
		left:0;
		z-index: -1;
  }
	&:after {
			content: "";
			position: absolute;    
			background-image: url("https://jar.is/cdn/img/wave-05.png");   
			background-position: left center;
			background-repeat: no-repeat;
			background-size: 100% 180px;
			left: 0;
      bottom: 0;
			width: 100%;
			height: 180px;
			@media(max-width: 768px) {
				height: 128px;
				background-size: 100% 128px;
			}
			@media(max-width: 349px) {
				height: 96px;
				background-size: 100% 96px;
			}
	}
}


/*-------------------------------------------------------
  The lines below ain't related for the code. 
  Their only purpose is to improve this demo's design.
-------------------------------------------------------*/

body {
  margin: 0 auto;
}

#block-one .content,
#block-two .content {
		padding: 36px;
    max-width: 991px;
    margin: 0 auto;
		p {
			font-family: $ff2;
      line-height: 1.5;
		}
	}

#block-one .content {
		h1 {
			font-family: $ff1;
      color: $co01;
			font-weight: 900;
			font-size: 54px;
		}  
    p {
        color: $co01;
        font-size: 21px;
        font-weight: 100;    
    }
}

#block-two .content {
	h2 {
		font-family: $ff1;
		font-size: 36px;
		color: #028fa9;
    text-align: center;
	}
	p {
		font-weight: 300;
		font-size: 18px;
    color: $co03;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console