Heading Btn

No notes defined.

<div class="sds-headingBtn d-flex align-items-center justify-content-between">
    <div class="h4">Heading</div>
    <button type="button" class="sds-btn -btnSecondary">

        <span class="sds-btn__text">Modifier</span>

    </button>
</div>
<div class="{{ namespace }}headingBtn d-flex align-items-center justify-content-between{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
    <div class="h{{ lvl }}">{{ title }}</div>
    {% render '@btn-secondary',btnOptions, true %}
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}headingBtn {
    
      /* Save root element context for easy access if nesting is needed */
    
      $self: &;
    
    
      /* properties of current element  + media queries */
      @include spacer-component-inline("md");
    
    
      /* Pseudo Elements */
    
      &::before {
      }
    
      &::after {
      }
    
      /*
      Include elements that are linked to the current element but have to reside at the root level of the stylesheet
      (e.g: keyframes)
      */
      @at-root {
      }
    
    
      /* children - write selector in full in comments in order to facilitate search */
    
      // headingBtn__childElement
      &__childElement {
    
        // follows same logic as parent
    
      }
    
    
      /* modifiers */
    
      // headingBtn -altStyle
      &.-altStyle {
    
        // follows same logic as base element
    
      }
    
      /* random parent element */
      /*
      *
      *   Syntax : .randomParentElt & {}
      *
      */
    
      /* Pseudo Classes */
    
      &:hover {
        @media (hover: hover) {
    
        }
      }
    
      &:focus {
      }
    
      &:active {
      }
    
      &:focus,
      &:active {
      }
    
    }
  • URL: /components/raw/snet-heading-btn/_heading-btn.scss
  • Filesystem Path: components/snet/molecules/heading-btn/_heading-btn.scss
  • Size: 1 KB