Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">

<h1>Codepen Shop Management Tutorial</h1>

<h2>Codepen</h2>

<p>Codepen allows us to quickly write HTML, CSS and Javascript. "Pens" are publically available, sharable, and even editable. </p><p>We have a Codepen account where you can <a target="_blank" href="https://codepen.io/myt-krea/">see our work</a>.</p>

<p>Pens can be "forked", which you can think of as "Save A Copy". You need to have a free Codepen account for this. Your fork can then be edited and changed as you like.</p>




<h2>CSS and Sass</h2>

<p>CSS is a stylesheet language that describes the presentation of an HTML (or XML) document. CSS describes how elements must be rendered on screen, on paper, or in other media.</p>

<p>To learn more, mytheresa.com employees have access to CSS tutorials on <a target="_blank" href="http://www.lynda.com/CSS-tutorials/CSS-Fundamentals/417645-2.html?srchtrk=index%3a1%0alinktypeid%3a2%0aq%3acss%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2">lynda.com</a>.</p>

<p><a target="_blank" href="http://sass-lang.com/">Sass</a> is a CSS Preprocessor. Sass adds extra functionality to the CSS stylesheet language. Sass code is converted into CSS. It provides features of a programming language such as variables, loops, mathematical operations. </p>




<h2>Codepen to Monetate</h2>

<p>The pens KREA creates can be largely copy pasted directly into Monetate. However there are some things to be aware of:</p>

<ul>
  
  <li>Read the Comments
    <ul><li>The HTML, CSS, and pen itself all contain comments (grayed-out text) describing the structure and behaviour of each element. This should help you to understand what the code does.
      </li></ul>
  </li>
  
  
  <li>Ensure you copy the correct element for the correct language:
    <ul><li>The Toplevel Banner demo pen includes one HTML element for each language. If you need to create a Monetate placement for, for example, French, please only copy the HTML element for French language.</li></ul>
    </li>

    <li>Edit Sass, not CSS
    <ul><li>If you're going to make changes to the code, make any changes possible using Sass, then copy paste the CSS. For example the Toplevel banner's text color is controlled by the <code>$berry</code> variable. Change this to modify the color of all Toplevel banner text. Latin font-size is controlled by three variables: <code>$latin-font-size, $latin-font-size-tablet, $latin-font-size-desktop</code>. Modify these variables to control the display of Latin text across all breakpoints.</li></ul>
    </li>
  
  <li>
    Copy CSS, not Sass
    <ul><li>Monetate cannot process Sass. You need to copy and paste the compiled CSS into Monetate. To do this, click the small 'View Compiled' button in Codepen's CSS window.<img src="https://blog.codepen.io/wp-content/uploads/2012/06/css-view-compiled.gif" alt="" /></li></ul>
  </li>

</ul>


<h2>Going Forward</h2>

<p>KREA will publish well commented, easy to understand pens that are production ready. Codepen was previously both a working and deployment environment, however from now on we'll work locally, then publish the final code to Codepen when it's ready for Monetate. This should avoid publishing any errors or testing code to Monetate.</p>

<h2 class="thanks">Thanks!</h2>
              
            
!

CSS

              
                $mycolor: lighten(#993366, 10%);
$myblack: lighten(#393536, 0%);
$mybgnd: lighten(#f8f9ec,5%);
$myunit: 20px;

body {
  line-height: 1.6;
  background: $mybgnd;
  padding: $myunit*2;
  font-family: 'Roboto', Helvetica, sans-serif;
  font-size: $myunit;
  color: $myblack;
  code {
    background: lighten(#ccc,10%);
    color: #333;
  }
}

a,a:visited {
  color: $mycolor;
  font-weight: 700;
}

h1 {font-size: 2.2em;}
h2 {font-size: 1.4em;}

h1,h2 {
  font-weight: 700;
  margin-top: $myunit*4;
  color: $mycolor;
  border-bottom: 5px solid $mycolor;
}

h1:first-of-type {margin-top: 0;}

ul li {
  font-weight: 700;
  ul {
    list-style-type: none;
    margin-top: $myunit;
    padding-left: $myunit;
    margin-left: 0;
    img {margin: $myunit 0;}
    li {
       font-weight: 400;
       margin-bottom: $myunit;
    }
  }
}

.thanks {
  margin: $myunit*12 0;
  text-align: center;
  border-bottom: 0;
}


              
            
!

JS

              
                
              
            
!
999px

Console