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.


	<title>Working with Mixins</title>
	  <link rel="stylesheet" href="styles.css" type="text/css">

	 	<h1>Working with Mixins</h1>

  <div class='container'>
    <p><a href='#'>Lorem ipsum dolor</a> sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

    <p>Copyright &copy; 2014</p>


 * LESS Variables are defined with an @ character
 * and can have different kinds of data types: 
 *  color, string, boolean, multi-value

//color variables
@wisteria: #8e44ad;                          // hex color value
@nephretis: #27ae60;                         // hex color value
@midnight_blue: #2c3e50;                     // hex color value

@black: #000;                                // named color value

//change the value of this variable to change the template color   
@template_color: @midnight_blue;                          

//font type variables
@fontSize: 24px;                             // numeric value

//layout variables
@border: 2px solid @black;                   // multi-value variable
@padding: 15px;  
@margin: 10px;

//content variable
@stringVar: " - on Codepen";                 // string variable 

header {
  font-size: @fontSize;
  background: lighten(@template_color, 40%);
  border: @border;
  text-align: center;
  h1 {
    color: @template_color;
    &:after {
      content: @stringVar;
      color: darken(@template_color, 20%);

.container {
  margin: @margin+30 0;
  p {
    padding: 0 @padding+30;
    a {
     color: @wisteria;
     text-decoration: none;
     &:hover {
      color: darken(@template_color,20%);

footer {
  border: @border;
  text-align: center;
  p {
    color: @template_color;