123

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .page
	.row.header
		.col-xs-2
			img.img-fluid(src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/147197/logoFlashGrade.png')
		.col-xs.test-code
			h1 Test Code: 
				strong 00000000
	.row
		.col-xs-6
			h1 Test: 
				strong testName
		.col-xs-6
			h1 Class: 
				strong className
				
	.row
		.col-xs-12
			.summary
				.row.between-xs
					.col-xs-5
						dl
							dt.header
								h2 Summary of your test
							dd
								.row.center-xs.high-level
									.col-xs-4
										dl
											dt Low
											dd 000
									.col-xs-4
										dl
											dt Average
											dd 000
									.col-xs-4
										dl
											dt High
											dd 000
								.row.summary-hr
									hr.dark
								.row.center-xs.high-level-meta
									.col-xs-3
										dl
											dt Tests
											dd 000
									.col-xs-3
										dl
											dt Questions
											dd 000
									.col-xs-3
										dl
											dt Median
											dd 000
									.col-xs-3
										dl
											dt Stnd Dev
											dd 000
					.col-xs-6
						dl
							dt.header
								h2 What is the score distribution?
							dd.score-distribution
								.Rtable.Rtable--3cols
									//- Header row
									.Rtable-cell.header-row Range
									.Rtable-cell.header-row.text-center No. of Tests
									.Rtable-cell.header-row 
									
									hr
									//- row			
									.Rtable-cell 90% - 100%
									.Rtable-cell.text-center 00
									.Rtable-cell(data-amount='10') -
									//- row			
									.Rtable-cell 80% - 89%
									.Rtable-cell.text-center 00
									.Rtable-cell(data-amount='10') -
									//- row			
									.Rtable-cell 70% - 79%
									.Rtable-cell.text-center 00
									.Rtable-cell(data-amount='10') -
									//- row			
									.Rtable-cell 60% - 69%
									.Rtable-cell.text-center 00
									.Rtable-cell(data-amount='10') -
									//- row			
									.Rtable-cell Below 60%
									.Rtable-cell.text-center 00
									.Rtable-cell(data-amount='10') -
									hr
				.row
					.col-xs-12
						.info-container
							img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/147197/paper-mascot.png")
							p
								| Get more insights at 
								strong FlashGrade.com
								| . All tests graded from a multifunction printer are saved in the FlashGrade Cloud.
								
	.row.student-performance
		.col-xs-12
			h2.header How did your students perform?
		.col-xs-12
			.row.student-table
				.col-xs-12
					.row.header-row
						//- Header row
						.col-xs-3
							p Name
						.col-xs.text-center
							p Score
						.col-xs.text-center
							p Correct
						.col-xs.text-center
							p Incorrect
						.col-xs.text-center
							p Blank
						.col-xs.text-center
							p Errors

				//- row
				hr.thick
				.col-xs-12
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
							
				//- row
				hr.thin
				.col-xs-12
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
							
				//- row
				hr.thin
				.col-xs-12
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
							
				//- row
				hr.thin
				.col-xs-12
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
					.row.data-row
						.col-xs-3
							p Last name, First name
						.col-xs.text-center 
							p 100%
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p 999
						.col-xs.text-center 
							p &#9888;
            
          
!
            
              // Colors
$black: #000;
$sanmarino: #4b68a9;
$glaucous: #6b82be;
$polo: #879dcb;
$palewater: #dde1ef;
$haze: #eef1f7;
$white: #fff;

// font weights
$font-light: 300;
$font-regular: 400;
$font-bold: 700;

body{
	background-color: $haze;
	padding: .5in;
	font-family: 'Open Sans', sans-serif;
	font-size: 12pt;
}
strong{
	font-weight: $font-bold;
}

.page{
	height: 11in;
	width: 8.5in;
	background-color: $white;
	margin: 0 auto;
	box-shadow: 0 1px 3px rgba($sanmarino, .1), 0 1px 2px rgba($sanmarino, .25);
	padding: .5in;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}

hr{
	width: 100%;
	height: 1px;
	border: none;
	background: $black;
	margin: 1em 0;
	padding: 0 .5em;
}

// utility classes
.dark{
	color: $black;
}
hr{
	&.thick{
		height: 2px;
	}
	&.thin{
		margin: .5em 0 .75em;
	}
}

.img-fluid{
	height: auto;
	max-width: 100%;
}

.text-center{
	text-align: center;
}

// Header Row
.row.header{
	margin-bottom:1em;
	justify-content: space-between;
	align-items: center;
}
.test-code{
	display: flex;
	justify-content: flex-end;
	font-size: 14pt;
	margin-bottom: .25em;
}

// summary
.summary {
	background-color: $palewater;
	padding: .25in;
	margin: 0 0 0.25in;
	.header{
		font-weight: $font-bold;
		color: $sanmarino;
		margin-bottom: .75em;
	}
}

.test-info {
	dt{
		font-size: 10pt;
		font-weight: $font-light;
		margin-bottom: .5em;
	}
	dd{
		font-weight: $font-bold;
		color: $sanmarino;
		margin-bottom: 1em;
	}
}

.high-level{
	div[class^="col-xs-"]{
		padding: 0;
	}
	
	dt{
		font-size: 10pt;
		font-weight: $font-light;
	}
	dd{
		font-size: 16pt;
		font-weight: $font-bold;
		color: $white;
		padding: .25em;
	}
	:first-child dl dd{
		background-color: $polo;
	}
	:nth-child(2) dl dd{
		background-color: $glaucous;
	}
	:nth-child(3) dl dd{
		background-color: $sanmarino;
	}
}

.high-level-meta{
	div[class^="col-xs-"]{
		padding: .125em;
	}
	dt{
		font-size: 10pt;
		font-weight: $font-light;
	}
	dd{
		font-size: 12pt;
		border: 2px solid $sanmarino;
		font-weight: $font-bold;
		padding: .25em;
	}
}

.high-level, .high-level-meta, .summary-hr{
	&.row{
		margin: 0;
	}
	dt{
		margin-bottom: .25em;
	}
}

.info-container{
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: $haze;
	padding: .125in;
	margin-top: .2in;
	font-size: 8pt;
	img{
		height: .4in;
	}
}

// Score distribution
.score-distribution{
	font-size: 10pt;
	.header{
		font-size: 10pt;
	}
}

// Student Performance
.student-performance{
	.header{
		font-weight: $font-bold;
		color: $sanmarino;
		margin-bottom: 1.5em;
	}
	.student-table {
		font-size: 10pt;
		.header-row{
			font-weight: $font-bold;
		}
		.data-row {
			margin-bottom: .5em;
		}
		.corrected {
				text-decoration: line-through;
			}
	}
}

// Table
.Rtable {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
	hr{
		margin: .5em 0;
	}
}
.Rtable-cell {
  box-sizing: border-box;
  flex-grow: 1;
  width: 100%;  // Default to full width
  padding: 0 .125em .5em;
  overflow: hidden; // Or flex might break
  list-style: none;
  border: none;
  > h1, > h2, > h3, > h4, > h5, > h6 { margin: 0; }
	&.header-row{
		font-weight: $font-bold;
		padding: 0 .125em .125em;
	}
}

/* Table column sizing
================================== */
.Rtable--2cols > .Rtable-cell  { width: 50%; }
.Rtable--3cols > .Rtable-cell  { width: 33.33%; }
.Rtable--4cols > .Rtable-cell  { width: 25%; }
.Rtable--5cols > .Rtable-cell  { width: 20%; }
.Rtable--6cols > .Rtable-cell  { width: 16.6%; }
.Rtable--flex > .Rtable-cell  { width:auto; }
            
          
!
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.

Console