Color Option

No notes defined.

<!-- Default -->
<span class="sds-colorOption" style="background-color: "></span>

<!-- Small -->
<span class="sds-colorOption -small" style="background-color: "></span>

<span class="{{ namespace }}colorOption{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}" style="background-color: {{ background }}"></span>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}colorOption {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	@extend %colorOption;
    
    	/* 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 */
    
    	// colorOption__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// colorOption -small
    	&.-small {
    
    		// follows same logic as base element
    
    		@extend %colorOptionSmall;
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/color-option/_color-option.scss
  • Filesystem Path: components/base-components/atoms/color-option/_color-option.scss
  • Size: 992 Bytes