Icon Block: Large

No notes defined.

<span class="sds-iconBlock -iconBlockLg">
    <span class="sds-iconBlock__icon sds-icon sds-icon-photo"></span>
</span>
<span class="{{ namespace }}iconBlock{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<span class="{{ namespace }}iconBlock__icon {{ namespace }}icon {{ namespace }}{{ icon }}"></span>
</span>
  • 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;
    	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");
    
    	}
    
    	&.-iconBlockSuccessInverse {
    		@include custom-prop-fallback("background-color","comp-icon-block-success-inverse-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-success-inverse-icon-background-color");
    	}
    
    	&.-iconBlockDangerInverse {
    		@include custom-prop-fallback("background-color","comp-icon-block-danger-inverse-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-danger-inverse-icon-background-color");
    	}
    
    	&.-iconBlockWarningInverse {
    
    		@include custom-prop-fallback("background-color","comp-icon-block-warning-inverse-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-warning-inverse-icon-background-color");
    	}
    
    	&.-iconBlockInfoInverse {
    		@include custom-prop-fallback("background-color","comp-icon-block-info-inverse-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-info-inverse-icon-background-color");
    	}
    
    	&.-iconBlockHighlightMuted {
    
    		@include custom-prop-fallback("background-color","comp-icon-block-highlight-muted-background-color");
    		@include custom-prop-fallback("color","comp-icon-block-highlight-muted-icon-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");
    
    			}
    
    		}
    
    	}
    
    	/* 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/base-components/atoms/icon-block/_icon-block.scss
  • Size: 4 KB