Icon Block: Large

No notes defined.

<span class="sds-iconBlock -iconBlockLg" aria-hidden="true">
    <span class="sds-iconBlock__icon sds-icon sds-icon-photo"></span>
</span>
{% include "@icon-block-frame" %}
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}iconBlock {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	display: inline-flex;
    	align-items: center;
    	justify-content: center;
    	flex-shrink: 0;
    	width: map-deep-get($design-tokens, "comp-icon-block-width");
    	height: map-deep-get($design-tokens, "comp-icon-block-height");
    	border-radius: map-deep-get($design-tokens, "comp-icon-block-border-radius");
    	@include custom-prop-fallback("background-color","comp-icon-block-primary-muted-background-color");
    	@include custom-prop-fallback("color","comp-icon-block-primary-muted-icon-background-color");
    
    	/* 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 */
    
    	// iconBlock__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// iconBlock -iconBlockInverse
    	&.-iconBlockInverse {
    
    		// follows same logic as base element
    
    		@include custom-prop-fallback("background-color","comp-icon-block-primary-inverse-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-primary-inverse-icon-background-color");
    
    	}
    
    	&.-iconBlockColored {
    
    		/* @TODO change this to colored token that doesn't exist yet*/
    		@include custom-prop-fallback("color","comp-icon-block-primary-inverse-background-color");
    
    	}
    
    	&.-iconBlockXs {
    
    		width: map-deep-get($design-tokens, "comp-icon-block-extra-small-width");
    		height: map-deep-get($design-tokens, "comp-icon-block-extra-small-height");
    		border-radius: map-deep-get($design-tokens, "comp-icon-block-extra-small-border-radius");
    
    		#{$self}__icon {
    
    			&::before {
    
    				font-size: map-deep-get($design-tokens, "comp-icon-block-extra-small-icon-size");
    
    			}
    
    		}
    
    	}
    
    	&.-iconBlockSm {
    
    		width: map-deep-get($design-tokens, "comp-icon-block-small-width");
    		height: map-deep-get($design-tokens, "comp-icon-block-small-height");
    		border-radius: map-deep-get($design-tokens, "comp-icon-block-small-border-radius");
    
    		#{$self}__icon {
    
    			&::before {
    
    				font-size: map-deep-get($design-tokens, "comp-icon-block-small-icon-size");
    
    			}
    
    		}
    
    	}
    
    	&.-iconBlockLg {
    
    		width: map-deep-get($design-tokens, "comp-icon-block-large-width");
    		height: map-deep-get($design-tokens, "comp-icon-block-large-height");
    		border-radius: map-deep-get($design-tokens, "comp-icon-block-large-border-radius");
    
    		#{$self}__icon {
    
    			&::before {
    
    				font-size: map-deep-get($design-tokens, "comp-icon-block-large-icon-size");
    
    			}
    
    		}
    
    	}
    
    	&.-iconBlockXl {
    
    		width: map-deep-get($design-tokens, "comp-icon-block-extra-large-width");
    		height: map-deep-get($design-tokens, "comp-icon-block-extra-large-height");
    		border-radius: map-deep-get($design-tokens, "comp-icon-block-large-border-radius");
    
    		#{$self}__icon {
    
    			&::before {
    
    				font-size: map-deep-get($design-tokens, "comp-icon-block-extra-large-icon-size");
    
    			}
    
    		}
    
    	}
    
    	&.-iconBlock2xl {
    
    		width: map-deep-get($design-tokens, "comp-icon-block-mega-width");
    		height: map-deep-get($design-tokens, "comp-icon-block-mega-height");
    		border-radius: map-deep-get($design-tokens, "comp-icon-block-large-border-radius");
    
    		#{$self}__icon {
    
    			&::before {
    
    				font-size: map-deep-get($design-tokens, "comp-icon-block-mega-icon-size");
    
    			}
    
    		}
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/icon-block/_icon-block.scss
  • Filesystem Path: components/token-based/content/block/icon-block/_icon-block.scss
  • Size: 3.8 KB