Brand Line

Disabled style

Should you want the brand line to have a disabled color, you can:

  • add the modifier class seen on the disabled variant to the element itself
  • wrap the brand line in an element with a disabled attribute
<!-- Default -->
<div class="sds-brandLine"></div>

<!-- Disabled -->
<div class="sds-brandLine -isDisabled"></div>

<div class="{{ namespace }}brandLine{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}"></div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}brandLine {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	@extend %brandLine;
    
    	/* 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 */
    
    	// brandLine__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// brandLine -isDisabled
    	&[disabled] &,
    	&.-isDisabled {
    
    		// follows same logic as base element
    
    		@extend %brandLineDisabled;
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/brand-line/_brand-line.scss
  • Filesystem Path: components/token-based/content/brand-line/_brand-line.scss
  • Size: 1 KB