SASS mit Variablen und Mixins verwenden

        
@mixin reset-headings {
    h1, h2, h3, h4 {
        / Styles
    }
}

@mixin header {
    cursor: pointer;

    &:focus {
        @include focus;
    }

    @include reset-headings;
}

@mixin content {
    margin-top: 5px;
    margin-bottom: 10px;
}

@mixin header-level-1-default {
    @include accordion-header;
    
    background-image: url("#{$pics}/bg.svg");
    background-color: $ColorGray;
    background-repeat: no-repeat;
    background-position: $level1-width 50%;
    
    / Styles
}
        
        

Auf Veränderungen im DOM reagieren

        
 MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
  if (MutationObserver) {
  
  var lastBodyHeight = 0;
  
  var observer = new MutationObserver(function (mutations, observer) {
      / do something...
  });
  
  observer.observe(document, {
      subtree: true,
      attributes: true
  });
}