Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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

              
                <div class="flex-container">
  <div class="flex-row">
    <div class="flex-col-xs-12 p-0">
      <h3 class="steps-detail">Les étapes en détail</h3>
    </div>
    <div class="flex-col-xs-6 p-0">
      <ul class="steps">
        <li>Pour créer un mail à partir des templates existants, cliquez sur <strong>"choisir un template"</strong>. Le template choisi sera automatiquement inséré dans le champ d'édition.</li>
        <li>Editez le contenu de votre email</li>
        <li>Rendez-vous dans <strong>"View"</strong>, et décochez <strong>"Visual Aids"</strong></li>
        <li>Cliquez sur <strong>"Fichier / Imprimer"</strong> pour enregistrer le fichier PDF du template actualisé </li>
        <li>Cliquez sur <strong>Générez le fichier html</strong> pour enregistrer le fichier html du template actualisé </li>
      </ul>
    </div>
    <div class="flex-col-xs-6 p-0">
      <ul class="steps">
        <li> Pour composer un nouveau template, choisissez dans la sidebar les composants à insérer. Vous pouvez déplacer ou supprimer les blocs dans l'éditeur visuel.</li>
        <li>Cliquez sur <strong>"Générer le code"</strong>.</li>
        <li>Cliquez sur <strong>"Générer le PDF"</strong> pour enregistrer le fichier PDF du template actualisé </li>
        <li>Cliquez sur <strong>Générer le fichier html</strong> pour enregistrer le fichier html du template actualisé </li>
        <li>Copiez-collez ensuite le code du champ textarea dans l'éditeur TinyMce en sélectionnant le "code source" dans l'onglet "Tools"</li>

      </ul>
    </div>
  </div>
  </div>
              
            
!

CSS

              
                body{
  min-height:100%;
  margin:0;
  background: #f7f7f7;
}
.flex-col-xs-12,
.flex-col-sm-12,
.flex-col-md-12,
.flex-col-lg-12 {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 1em;
  width: 100%;
}

@media (min-width: 540px) {
  .flex-col-xs-12 {
    max-width: calc(100% * (12 / 12));
    width: calc(100% * (12 / 12));
  }
}

@media (min-width: 768px) {
  .flex-col-sm-12 {
    max-width: calc(100% * (12 / 12));
    width: calc(100% * (12 / 12));
  }
}

@media (min-width: 992px) {
  .flex-col-md-12 {
    max-width: calc(100% * (12 / 12));
    width: calc(100% * (12 / 12));
  }
}
.flex-container {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 1em;
}

@media (min-width: 540px) {
  .flex-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .flex-container {
    max-width: 768px;
  }
}

@media (min-width: 992px) {
  .flex-container {
    max-width: 992px;
  }
}

@media (min-width: 1200px) {
  .flex-container {
    max-width: 1200px;
  }
}

.flex-row {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.flex-col-xs-6,
.flex-col-sm-6,
.flex-col-md-6,
.flex-col-lg-6 {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 1em;
  width: 100%;
}

@media (min-width: 540px) {
  .flex-col-xs-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

@media (min-width: 768px) {
  .flex-col-sm-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

@media (min-width: 992px) {
  .flex-col-md-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}
@media (min-width: 1200px) {
  .flex-col-lg-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}
/******************/
/******************/
/**** STEPS *****/
/******************/
.steps-detail{
  margin:0;
  width:100%
}
.steps{
  position: relative;
  padding-left: 29px;
  list-style: none;
  border:1px solid #CCC;
  max-height:0;
  opacity:0;
  visibility:hidden;
  transition:.3s;

}
.steps.slide-steps{
  max-height:100%;
  opacity:1;
  visibility:visible;
}
.steps-detail{
  color: #545095;
  border: 1px solid #545095;
  background-color: #ffffff;
  padding: 10px;
  cursor:pointer;
}
.steps-detail:before {
  float: right !important;
  content: '\002B';
  padding-right: 5px;
}
.steps-detail.slide:before {
  float: right !important;
  content: '\2212';
}
.steps:before{
  content: '';
  position: absolute;
  top: 0;
  left:0;
  height: 100%;
  border-left: 2px solid #CCC;
}
.steps li{
  position: relative;
  counter-increment: li;
  vertical-align:middle;
}
.steps li:not(:last-child) {
  padding-bottom: 20px;
}

.steps li::after {
  content: counter(li);
  position: absolute;
  top: 0;
  left: -40px;
  width: 25px;
  height: 25px;
  border: 2px solid #CCC;
  border-radius: 50%;
  background-color: #FFF;
  text-align: center;
  font-size: 16px;
}
              
            
!

JS

              
                	$('.steps-detail').click(function(){
		$(this).toggleClass('slide');
		$('.steps').toggleClass('slide-steps');
	})
              
            
!
999px

Console