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

              
                <html lang="fr-BE">
<head>
  <meta charset="UTF-8" />
  <title>Modal</title>
</head>
<body>
  <div id="tete">
    <div id="titre">
      <img src="https://lintermediaire.be/wp-content/themes/lintermediaire/favicon.png" alt="Logo" title="logo" />
      <h1>L'interMEDIAire</h1>
    </div>
    <ul id="menu" class="">
    <li><a href="#Accueil">Accueil</a></li>
    <li><a href="#Portfolio">Portfolio</a></li>
    <li><a href="#Blog">Ce Blog</a></li>
    <li><a href="#Contact">Contact</a></li>  
    </ul>
  </div>
  <div id="contenu">
  <h2 id="Accueil">Filtre isotope </h2>
  <div class="button-group sort-by-button-group">
  <button class="button is-checked" data-sort-value="original-order">original order</button>
  <button class="button" data-sort-value="name">name</button>
  <button class="button" data-sort-value="symbol">symbol</button>
  <button class="button" data-sort-value="number">number</button>
  <button class="button" data-sort-value="weight">weight</button>
  <button class="button" data-sort-value="category">category</button>
</div>
   
  <div class="grid">
  <div class="element-item transition metal " data-category="transition">
    <h3 class="name">Mercury</h3>
    <p class="symbol">Hg</p>
    <p class="number">80</p>
    <p class="weight">200.59</p>
  </div>
  <div class="element-item metalloid " data-category="metalloid">
    <h3 class="name">Tellurium</h3>
    <p class="symbol">Te</p>
    <p class="number">52</p>
    <p class="weight">127.6</p>
  </div>
  <div class="element-item post-transition metal " data-category="post-transition">
    <h3 class="name">Bismuth</h3>
    <p class="symbol">Bi</p>
    <p class="number">83</p>
    <p class="weight">208.980</p>
  </div>
  <div class="element-item post-transition metal " data-category="post-transition">
    <h3 class="name">Lead</h3>
    <p class="symbol">Pb</p>
    <p class="number">82</p>
    <p class="weight">207.2</p>
  </div>
  <div class="element-item transition metal " data-category="transition">
    <h3 class="name">Gold</h3>
    <p class="symbol">Au</p>
    <p class="number">79</p>
    <p class="weight">196.967</p>
  </div>
  <div class="element-item alkali metal " data-category="alkali">
    <h3 class="name">Potassium</h3>
    <p class="symbol">K</p>
    <p class="number">19</p>
    <p class="weight">39.0983</p>
  </div>
  <div class="element-item alkali metal " data-category="alkali">
    <h3 class="name">Sodium</h3>
    <p class="symbol">Na</p>
    <p class="number">11</p>
    <p class="weight">22.99</p>
  </div>
  <div class="element-item transition metal " data-category="transition">
    <h3 class="name">Cadmium</h3>
    <p class="symbol">Cd</p>
    <p class="number">48</p>
    <p class="weight">112.411</p>
  </div>
  <div class="element-item alkaline-earth metal " data-category="alkaline-earth">
    <h3 class="name">Calcium</h3>
    <p class="symbol">Ca</p>
    <p class="number">20</p>
    <p class="weight">40.078</p>
  </div>
  <div class="element-item transition metal " data-category="transition">
    <h3 class="name">Rhenium</h3>
    <p class="symbol">Re</p>
    <p class="number">75</p>
    <p class="weight">186.207</p>
  </div>
  <div class="element-item post-transition metal " data-category="post-transition">
    <h3 class="name">Thallium</h3>
    <p class="symbol">Tl</p>
    <p class="number">81</p>
    <p class="weight">204.383</p>
  </div>
  <div class="element-item metalloid " data-category="metalloid">
    <h3 class="name">Antimony</h3>
    <p class="symbol">Sb</p>
    <p class="number">51</p>
    <p class="weight">121.76</p>
  </div>
  <div class="element-item transition metal " data-category="transition">
    <h3 class="name">Cobalt</h3>
    <p class="symbol">Co</p>
    <p class="number">27</p>
    <p class="weight">58.933</p>
  </div>
  <div class="element-item lanthanoid metal inner-transition " data-category="lanthanoid">
    <h3 class="name">Ytterbium</h3>
    <p class="symbol">Yb</p>
    <p class="number">70</p>
    <p class="weight">173.054</p>
  </div>
  <div class="element-item noble-gas nonmetal " data-category="noble-gas">
    <h3 class="name">Argon</h3>
    <p class="symbol">Ar</p>
    <p class="number">18</p>
    <p class="weight">39.948</p>
  </div>
  <div class="element-item diatomic nonmetal " data-category="diatomic">
    <h3 class="name">Nitrogen</h3>
    <p class="symbol">N</p>
    <p class="number">7</p>
    <p class="weight">14.007</p>
  </div>
  <div class="element-item actinoid metal inner-transition " data-category="actinoid">
    <h3 class="name">Uranium</h3>
    <p class="symbol">U</p>
    <p class="number">92</p>
    <p class="weight">238.029</p>
  </div>
  <div class="element-item actinoid metal inner-transition " data-category="actinoid">
    <h3 class="name">Plutonium</h3>
    <p class="symbol">Pu</p>
    <p class="number">94</p>
    <p class="weight">(244)</p>
  </div>
</div>
  </div>
  </body>
</html>
<!-- Design by l'interMEDIAire -->
              
            
!

CSS

              
                /*hover cs*/
button {
  border: none;
  outline: none;
  color: white;
}

.hvr-bounce-to-bottom:before{
  background: rgba(55,55,55,1);
}
/*---L'interMEDIAire---/*
/*COULEURS*/
$noir:        rgba(0,0,0,1);
$noirfonce:   rgba(29,31,32,1);
$rose:        rgba(152,38,114,1);
$bleu:        rgba(128,155,189,1);
$blanc:       rgba(255,255,255,1);
$gris:        rgba(55,55,55,1);
$gris3:       rgba(204,204,204,1);

/*TOUS LES ELEMENTS*/
*,*:after,*:before {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 600px;
  background: $noirfonce;
  font-size: 1em;
  color: $blanc;
  overflow-x: hidden;
}
    a {
      margin: 0px 10px;
      color: $gris3;
      text-decoration: none;
      transition: all .7s ease;
    }
    
    a:hover,a:active {
      color: white;
      cursor: pointer;
    }

#tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100vw;
  height: 75px;
  padding: 10px 15px;
  background: $noir;
  border: 0px solid $gris;
  border-bottom-width: 5px;
  
  #titre {
    display: flex;
    align-items: baseline;
    
    img {
      width: auto;
      height: 50px;
    }
    
    h1 {
      margin-left: 10px;
      font-size: 1.4em;
    }
  }
  
  #menu {
    display: flex;
    margin: 0px;
    padding: 30px 0px 0px;
    list-style: none;
    }
}

#contenu {
  padding: 10px 15px;
  background: $noirfonce;
  transition: all .7s ease;
  
  h2 {
    color: $bleu;  
  }
  
  p {
    font-size: .9em;
    line-height: 1.4em;
  }
  
  a,button{
    margin: 0px;
    color: $rose;
    text-decoration: none;
    transition: all .7s ease;
    background: #000;
    padding: 5px 7px;
  }
  
  a:hover,a:active,button:hover,button:active{
    color: $blanc;
    cursor: pointer;
  }
}

@media screen and (min-width: 640px) {
  body {
    background: $gris;
  }
  
  #contenu, #tete {
    margin: 0px auto;
    width: 640px;
  }
  
  #contenu {
    min-height: calc(100vh - 70px);
  }
}
/*Design by l'interMEDIAire*/
              
            
!

JS

              
                // init Isotope
var $grid = $('.grid').isotope({
  itemSelector: '.element-item',
  layoutMode: 'masonry',
  getSortData: {
    name: '.name',
    symbol: '.symbol',
    number: '.number parseInt',
    category: '[data-category]',
    weight: function( itemElem ) {
      var weight = $( itemElem ).find('.weight').text();
      return parseFloat( weight.replace( /[\(\)]/g, '') );
    }
  }
});

// bind sort button click
$('.sort-by-button-group').on( 'click', 'button', function() {
  var sortValue = $(this).attr('data-sort-value');
  $grid.isotope({ sortBy: sortValue });
});

// change is-checked class on buttons
$('.button-group').each( function( i, buttonGroup ) {
  var $buttonGroup = $( buttonGroup );
  $buttonGroup.on( 'click', 'button', function() {
    $buttonGroup.find('.is-checked').removeClass('is-checked');
    $( this ).addClass('is-checked');
  });
});
/*hover css*/
$(document).ready(function(){
$("button").attr("class","hvr-bounce-to-bottom");
  });
/*Design by l'interMEDIAire*/
              
            
!
999px

Console