Empty State: Media

No notes defined.

<div class="sds-emptyState text-center">

    <img class="sds-emptyState__media" src="../../media/illustrative-icons/sdsillu-earthglobegrey.svg" alt="" />

    <div class="sds-emptyState__textBlock">

        <h3 class="h4 sds-emptyState__text sds-colorInherit">
            Aucune équipe assignée
        </h3>

        <p class="sds-emptyState__text sds-textSemiBold">L’utilisateur n’est assigné à aucune équipe pour l’instant.</p>

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

    </div>

    <button type="button" class="sds-btn -btnSecondary">

        <span class="sds-icon sds-icon-plus"></span>

        <span class="sds-btn__text">
            Assigner équipes

        </span>

    </button>

</div>
{% if sunken %}
<div class="{{ namespace }}box -boxInsetLg -boxSunken">
{% endif %}
<div class="{{ namespace }}emptyState{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% if media %}
		<img class="{{ namespace }}emptyState__media" src="{{ media | path }}" alt="" />
	{% elseif icon %}
		<span class="{{ namespace }}emptyState__icon {{ namespace }}icon {{ namespace }}{{ icon }}" aria-hidden="true"></span>
	{% else %}
	{% endif %}
	<div class="{{ namespace }}emptyState__textBlock{% if not media %} {{ namespace }}stackXxs{% endif %}">
		{% if title %}
			{% render "@heading--h4", {text: title, headingLvl: titleLevel or 3, headingLvlClass: 4, classes: [namespace + "emptyState__text", namespace + "colorInherit"]}, true %}
		{% endif %}
		{% if text %}
			<p class="{{ namespace }}emptyState__text {{ namespace }}textSemiBold{% if textBodyLg %} {{ namespace }}textBodyLg{% endif %}">{{ text }}</p>
		{% endif %}
		{% if brandLine %}
			{% render "@brand-line--disabled" %}
		{% endif %}
		{% if description %}
			<p class="{{ namespace }}emptyState__text {{ namespace }}textHelper">{{ description }}</p>
		{% endif %}
		{% if subText %}
			<p class="{{ namespace }}emptyState__text {{ namespace }}textSemiBold">{{ subText }}</p>
		{% endif %}
	</div>
	{% if button %}
		{% render "@btn-secondary--icon-left",{
			classes: btnClasses,
			icon: btnIcon,
			text: btnText
		},true %}
	{% endif %}
</div>
{% if sunken %}
</div>
{% endif %}
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}emptyState {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    
    	/* Pseudo Elements */
    	display: flex !important;
    	flex-direction: column;
    	align-items: center;
    	justify-content: center;
    	@include custom-prop-fallback("color","comp-empty-state-title-text-color","true","true");
    	@include custom-prop-fallback("gap","ui-space-stack-static-1000");
    	flex-grow: 1;
    
    	&::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 */
    	&__icon {
    
    		// follows same logic as parent
    		&::before {
    
    			font-size: map-deep-get($token-sizes-unit-map, "40");
    
    		}
    
    	}
    
    	&__text {
    
    		text-align: center;
    		max-width: 50ch;
    
    	}
    
    	.#{$namespace}brandLine {
    
    		margin: auto;
    		@include custom-prop-fallback("margin-block-start","ui-space-stack-static-1000");
    		@include custom-prop-fallback("margin-block-end","ui-space-stack-static-500");
    
    	}
    
    	/* modifiers */
    
    	// emptyState -big
    	// emptyState -emptyStateLg
    	&.-big,
    	&.-emptyStateLg {
    
    		// follows same logic as base element
    		@include custom-prop-fallback("gap","ui-space-stack-static-1500");
    
    		#{$self}__icon {
    
    			// follows same logic as parent
    			&::before {
    
    				font-size: map-deep-get($token-sizes-unit-map, "64");
    
    			}
    
    		}
    
    	}
    
    	&.-bgSecondary06 {
    
    		background-color: map-deep-get($token-color-brand-map, "secondary", "06");
    
    	}
    	
    	&.-noPadding {
    		padding: 0;
    	}
    
    	&.-verticalSpacingBig {
    
    		padding-top: map-deep-get($token-spacer-unit-map, "64");
    		padding-bottom: map-deep-get($token-spacer-unit-map, "64");
    
    		@include media-breakpoint-up(lg) {
    			padding-top: map-deep-get($token-spacer-unit-map, "64") * 2;
    			padding-bottom: map-deep-get($token-spacer-unit-map, "64") * 2;
    		}
    
    	}
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/empty-state/_empty-state.scss
  • Filesystem Path: components/token-based/feedback-and-indicators/empty-state/_empty-state.scss
  • Size: 2.2 KB