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.

            
              ul
	li
		span.folder _dev
		ul
			li
				span.folder.jade _jade
				ul
					li
						span.folder 0_base
						ul
							li
								span.folder mixins
								span.comment Вспомогательные миксины
							li
								span.file base.jade
								span.comment Основной шаблон
					li
						span.folder 1_blocks 
						span.comment Блоки, которые инклюдятся в страницы.
						ul
							li
								span.folder buttons
								ul
									li
										span.file submit.jade
									li
										span.file ...
							li
								span.file header.jade
							li
								span.file footer.jade
							li
								span.file ...
					li
						span.folder 2_pages 
						span.comment Страницы, которые компилируются в html
						ul
							li
								span.file index.jade
							li
								span.file ...
			li
				span.folder.scss _scss
				ul
					li
						span.folder 0_helpers
						ul
							li
								span.folder mixins
							li
								span.folder vars
							li
								span.file reset.scss
					li
						span.folder 1_libs
						span.comment Стили подключаемых библиотек, в том числе кастомизируемые
						ul
							li
								span.file selectboxit.scss
					li
						span.folder 2_basic
						ul
							li
								span.file typo.scss
								span.comment Стили для шрифтов
							li
								span.file layout.scss
								span.comment Sticky footer, сетка верхнего уровня
					li
						span.folder 3_blocks
						ul
							li
								span.folder buttons
								ul
									li
										span.file submit.scss
									li
										span.file ...
							li
								span.file header.scss
							li
								span.file footer.scss
							li
								span.file ...
					li
						span.folder 5_pages
						span.comment Как правило, тут минимум стилей (или их нет вообще). Возможно модификаторы для тега main.
						ul
							li
								span.file index.scss
							li
								span.file ...
					li
						span.file main.scss
			li 
				span.folder _js
			li
				span.folder nоde_mоdules
			li
				span.file gulpfile.js
			li
				span.file package.json
			li
				span.file .gitignоre
				span.comment nоde_mоdules/
	li
		span.folder css
		ul
			li
				span.file main.css
	li
		span.folder js
	li
		span.folder media
		ul
			li
				span.folder images
				span.comment Постоянные изображения. Например, фоновые, логотипы.
			li
				span.folder img-p
				span.comment Временные изображения, которые затем заменятся на новые в админке. Например, фото товара.
			li
				span.folder fonts
				span.comment Шрифты, подключаемые через font-face
	li
		span.file index.html
	li
		span.file ...
		
		
            
          
!
            
              $green: #589983;
$pink: #CF649A;
body {
	padding: 20px;
	font-size: 1.5em;
}
ul {
	border-left: 1/16+0em solid;
	
}
li {
	padding: 0 0 0 20/16+0em;
	position: relative;
	margin: 0 0 15/16+0em 0;
	&::before {
		content: '';
		position: absolute;
		top: 5/16+0.5em;
		left: 0;
		border-top: 1/16+0em solid;
		width: 15/16+0em;
	}
	ul {
		padding: 10/16+0em 0 0;
	}
}
.folder {
	display: inline-block;
	background: #ddd;
	padding: 5/16+0em 10/16+0em;
}
.file {
	font-style: italic;
	display: inline-block;
	padding: 5/16+0em 0;
}
.comment {
	margin: 0 10/16+0em;
	color: #777;
	font-size: 0.8em;
	vertical-align: middle;
}
.jade, .jade + ul .folder {
	background: $green;
}
.scss, .scss + ul .folder {
	background: $pink;
}
            
          
!
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