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.

	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 ------------ 
🕑 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.