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 includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


	h1 Pug mixin with microdata
	//- --------------------------- BEGIN --------------------------------
	mixin breadcrumb(levels)
			ol.breadcrumb(vocab="" typeof="BreadcrumbList")
				each level, index in levels

					//- Index is zero based
					- var count = index + 1

					li.breadcrumb-item(property="itemListElement" typeof="ListItem")
						a(href=level[1] property="item" typeof="WebPage" )
						meta(property="position" content!=count)

	+breadcrumb([["Main", "index.html"],["News", "news.html"], ["Contacts", "contacts.html"]])
	//- --------------------------- END --------------------------------


                /* ------------------------------ VARIABLES AND SASS MIXINS ----------------------------- */
$default-font: 'Open Sans', sans-serif

$accent: #ffb74d
$link: #4a90e2
$link_hover: darken($link, 10%)
$accent_hover: darken($accent, 10%)

$text_color: #2f3640
$gray: #edeff0
$dark_gray: #b5bac1
$light_gray: #E5E5E5

@function rem($px)
	@return $px / 16px + 0rem
	@return $px

@mixin inline-block($va: top)
	display: inline-block
	vertical-align: $va
/* ------------------------------ VARIABLES AND SASS MIXINS ----------------------------- */

/* ------------------------------ BREADCRUMB BEGIN ------------------------------ */
	background: none
	padding: 0
	margin: 0
		padding-right: rem(15px)
		& + &
			padding-left: 0
				content: "→"
				color: $dark_gray
				font-size: rem(13px)
				line-height: rem(13px)
				display: inline-block
				padding-right: rem(15px)
				padding-top: rem(6px)
			color: $dark_gray
			transition: .3s ease-in
			text-decoration: none
			&:hover, &:focus
				color: $accent
				pointer-events: none
				color: $text_color
/* ------------------------------ BREADCRUMB END ------------------------------ */

/* ------------------------------ ADDITIONAL STYLES ----------------------------- */
	font-size: 16px
	background: $gray
	font-family: $default-font
	height: 100%

	height: 100%
	display: flex
	background-color: $gray

	font-size: 20px
	margin-bottom: 20px

	width: 500px
	margin: auto
	border-radius: 4px
	background-color: #ffffff
	box-shadow: 0 1px 2px 0 #c9ced1
	padding: rem(20px)
/* ------------------------------ ADDITIONAL STYLES ----------------------------- */


                $(document).ready(function() {
	// ------------  BEGIN ------------ 

	// ------------  END ------------