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 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

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

              
                <!-- Floating Module for Divi -->
<div class="da-floating-navigation">
  <button class="da-floating-navigation__button" type="button">+</button>
  <nav class="da-floating-navigation__menu">
    <header class="da-floating-navigation__user">
      <div class="da-floating-navigation__thumbnail">
        <img alt="Foto" src="http://lightingsound.solutions/wp-content/uploads/2016/07/logo_lighte_.png?size=300" />
      </div>
      <div class="da-floating-navigation__content">
        <h2 class="da-floating-navigation__title">LightingSound</h2>
        <p class="da-floating-navigation__description">
          L'Immagine del tuo Evento
        </p>
      </div>
    </header>
    
    <!-- Voci Menu -->
    
    
    
    <a class="da-floating-navigation__item" href="https://andytran.me">Settings</a>
    <a class="da-floating-navigation__item" href="https://andytran.me">Help Desk</a>
    <a class="da-floating-navigation__item" href="https://andytran.me">Log Out</a>
  </nav>
</div>
              
            
!

CSS

              
                .da-floating-navigation {
  z-index: 999999;
  position: fixed;           /* Posizione Modulo - Fissa */
  right: 20px;               /* Margine DX */
  bottom: 20px;              /* Margine Bottom */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Blocco Interno - Titolo e Descrizione */
  &__content{
    
  }
  
  /* Utente */
  &__user {
    display: flex;
    align-items: center;
    flex-direction: row;
    /* Linea Sotto blocco Iniziale - User */
    border-bottom: 1px solid #904E441A; /* #EEEEEE */
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Thumb */
  &__thumbnail {
    width: 60px;
    max-width: 60px;
    min-width: 60px;
    border: 1px solid #EEEEEE;
    border-radius: 100%;
    margin: 0 20px 0 0;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
    
    img {
      display: block;
      width: 100%;
      max-width: 100%;
      border-radius: 100%;
    }
  }
  
  /* Titolo */
  &__title {
    color: #444444;
    margin: 0 0 2px;
    padding: 0;
    font-size: 14px !important;
  }
  
  /* Descrizione */
  &__description {
    margin: 0;
    padding-top: 5px;
    color: #999999;
    font-size: 12px;
    
    
    a {
      color: inherit;
      text-decoration: none;  
    }
  }
  
  /* Pulsante */
  &__button {
    outline: none;
    /*background: #BB5F65;*/
    background: #FFFFFF;
    width: 40px;
    height: 40px;
    border: 1px solid #EEEEEE;
    border-radius: 100%;
    // box-shadow: 0 4px 12px rgba(#000, 0.12);
    font-size: 12px;
    font-weight: 600;
    transform-origin: center;
    transition: 200ms ease;
    cursor: pointer;   
  }
  
  &__button:hover{ color: #EE3D37; } /* #CE3532 */
  
  /* Posizione Pulsante - Responsive */
  @media only screen and (max-width : 801px) {
     &__button { margin-bottom: 40px; }
  }
  
  &__menu {
    position: absolute;
    right: 0;
    bottom: 100%;
    /* BackGround Menu */
    background: #BB5F6500;  /* #FFFFFF */ 
    width: 240px;
    border: 1px solid #EEEEEE; /* #EEEEEE */
    border-radius: 5px;
    box-shadow: 0 8px 12px rgba(#000, 0.12); /* Ombre */
    transform: translateY(0);
    opacity: 0;               /* Scompare al Click */
    transition: 200ms ease;
    
    /* Nascondi Modulo fino ad Attivazione */
    display: none;            
  }
  
  /* ************************* */
  /* Figli__item - Voci Elenco */
  /* ************************* */
  &__item {
    /* Display su Righe */
    /*display: block;*/
    display: table-cell;
    /* Larghezza e Altezza Blocchi Voci */ 
    width: 100%;  
    height: 40px;
    /* Linea Sotto ogni Voce */
    border-bottom: 1px solid #EEEEEE; /* #EEEEEE */
    /* Posizione e Stile Testo Voci */
    /* padding: 0px 20px; */
    padding-top: 0px;
    padding-right: 48px;
    padding-bottom: 0px;
    padding-left: 40px;
    box-sizing: border-box;
    text-decoration: none;
    color: #444444; /* Colore Testo Elementi */
    font-size: 12px;
    font-weight: 600;
    line-height: 40px;
    
    /* Ultima Voce */ 
    &:last-child {
      border-bottom: 0px;
    }   
  }/* Fine___Figli__item - Voci Elenco */
  
   /* Hover su Elemento - Descrizione Menu */
  &__description:hover{ color: #8A8A8A; }
  
   /* Hover su Elemento - item Menu */
  &__item:hover{ color: #EE3D37; } /* #CE3532 */
  
  /* *************************** */
  /* Attivazione Modulo al Click */
  /* *************************** */
  &--active {    
    /* Rotazione Elemento Interno al Pulsante */
    .da-floating-navigation__button {
      transform: rotate(45deg);
    }
    
    /* Distanza tra Blocco e Pulsante */
    .da-floating-navigation__menu {
      transform: translateY(-12px);
      opacity: 1;
      
      /* Mostra Modulo al Click */ 
      display: block;      
    }
  }
  
}
              
            
!

JS

              
                jQuery('.da-floating-navigation__button').on('click', function(e) {
  jQuery(this).parent().toggleClass('da-floating-navigation--active');
});
              
            
!
999px

Console