Avatar Text

No notes defined.

<!-- Small -->
<div class="sds-avatarText -small">

    <div class="sds-avatar centeredBgi -small">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content">
        <div class="sds-textSemiBold">Jil Schmit</div>
    </div>
</div>

<!-- Extra Small -->
<div class="sds-avatarText -small">

    <div class="sds-avatar centeredBgi -xtraSmall">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content">
        <div class="sds-textSemiBold">Jil Schmit</div>
    </div>
</div>

<!-- Large Btn -->
<div class="sds-avatarText -largeBtn">

    <div class="sds-avatar centeredBgi -large">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content sds-stackXs">
        <div class="h3">Jil Schmit</div>
        <div>née le 08.05.1990</div>
        <div>Nationalité : Luxembourgeoise</div>
        <div>Deuxiéme Nationalité: pas saisie</div>
    </div>
    <button type="button" class="sds-btn -btnSecondary">

        <span class="sds-btn__text">Modifier</span>

    </button>
</div>

<!-- Large Btn Link -->
<div class="sds-avatarText -largeBtn">

    <div class="sds-avatar centeredBgi -large">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content sds-stackXs">
        <div class="h3">Jil Schmit</div>
        <ul class="list-unstyled">
            <li>née le 08.05.1990</li>
            <li>Nationalité : Luxembourgeoise</li>
            <li>Deuxiéme Nationalité: pas saisie</li>
        </ul>
        <div class="sds-avatarText__link text-truncate">
            <a href="#" class="sds-link">

                Profil i-hub

                <span class="sds-link__icon sds-icon sds-icon-externallink"></span>

            </a>
        </div>
    </div>
    <div class="sds-avatarText__btn">
        <button type="button" class="sds-btn -btnSecondary">

            <span class="sds-btn__text">Modifier</span>

        </button>
    </div>
</div>

<!-- Medium -->
<div class="sds-avatarText -medium">

    <div class="sds-avatar centeredBgi -medium">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content sds-stackXs">
        <div class="h4">Avenue J.-F. Kennedy</div>

        <div>Avenue J.-F. Kennedy, 39 - 1855, Luxembourg</div>

    </div>
</div>

<!-- Text Helper -->
<div class="sds-avatarText">

    <div class="sds-avatar centeredBgi">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content">
        <div class="sds-textHelper">Jil Schmit</div>
    </div>
</div>

<!-- Number Circle Text Helper -->
<div class="sds-avatarText">
    <span class="sds-numberCircle -highlight30 -large">
        C
    </span>
    <div class="sds-avatarText__content">
        <div class="sds-textHelper">Jil Schmit</div>
    </div>
</div>

<!-- Meta -->
<div class="sds-avatarText">

    <div class="sds-avatar centeredBgi -avatarXl">

        <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

    </div>
    <div class="sds-avatarText__content stackXxs">
        <div class="h2">Jil Schmit</div>

        <div class="sds-avatarText__meta">{Rôle}</div>

    </div>
</div>

<!-- Small -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content">
		<div class="{{ namespace }}textSemiBold">Jil Schmit</div>
	</div>
</div>

<!-- Extra Small -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content">
		<div class="{{ namespace }}textSemiBold">Jil Schmit</div>
	</div>
</div>

<!-- Large Btn -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content {{ namespace }}stackXs">
		<div class="h3">Jil Schmit</div>
		<div>née le 08.05.1990</div>
		<div>Nationalité : Luxembourgeoise</div>
		<div>Deuxiéme Nationalité: pas saisie</div>
	</div>
    {% render '@btn-secondary',{text: "Modifier"}, true %}
</div>

<!-- Large Btn Link -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content {{ namespace }}stackXs">
		<div class="h3">Jil Schmit</div>
		<ul class="list-unstyled">
			<li>née le 08.05.1990</li>
			<li>Nationalité : Luxembourgeoise</li>
			<li>Deuxiéme Nationalité: pas saisie</li>
		</ul>
		<div class="{{ namespace }}avatarText__link text-truncate">
			{% render "@link--icon-right",{
				text: "Profil i-hub"
			},true %}
		</div>
	</div>
    <div class="{{ namespace }}avatarText__btn">
		{% render '@btn-secondary',{text: "Modifier"}, true %}
	</div>
</div>

<!-- Medium -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content {{ namespace }}stackXs">
		<div class="h{{ headingLvl }}">{{ title }}</div>
		{% if description %}
			<div>Avenue J.-F. Kennedy, 39 - 1855, Luxembourg</div>
		{% endif %}
	</div>
</div>

<!-- Text Helper -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content">
		<div class="{{ namespace }}textHelper">{{ text }}</div>
	</div>
</div>

<!-- Number Circle Text Helper -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@snet-number-circle",numberCircleOptions,true %}
	<div class="{{ namespace }}avatarText__content">
		<div class="{{ namespace }}textHelper">{{ text }}</div>
	</div>
</div>

<!-- Meta -->
<div class="{{ namespace }}avatarText{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% render "@avatar--image-extra-large",avatarOptions,true %}
	<div class="{{ namespace }}avatarText__content {{ namepsace }}stackXxs">
		<div class="h{{ lvl }}">Jil Schmit</div>
		{% if meta %}
			<div class="{{ namespace }}avatarText__meta">{{ meta }}</div>
		{% endif %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}avatarText {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	display: flex;
    	align-items: center;
    	@include spacer-component-inline("md");
    
    	/* 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 */
    
    	// avatarText__meta
    	&__meta {
    
    		// follows same logic as parent
    
    		@include custom-prop-fallback("color", "sys-color-text-primary-muted");
    
    	}
    
    	&__link {
    
    
    
    	}
    
    
    	/* modifiers */
    
    	// avatarText -altStyle
    	&.-small {
    
    		// follows same logic as base element
    
    		@include spacer-component-inline("sm");
    
    	}
    
    	&.-largeBtn {
    
    		display: block;
    		align-items: flex-start;
    		position: relative;
    
    		@include media-breakpoint-up(md) {
    
    			display: flex;
    
    		}
    
    		#{$self}__content {
    
    			margin-right: auto;
    
    		}
    
    		#{$self}__link {
    
    			position: absolute;
    			top: 0;
    			right: 0;
    			width: calc(100% - #{$avatar-large-dimensions-global});
    			text-align: right;
    			
    			@include media-breakpoint-up(md) {
    
    				position: static;
    				width: auto;
    				margin-top: map-deep-get($token-spacer-stack-max-map, "md");
    				text-align: left;
    
    			}
    
    		}
    
    		#{$self}__btn {
    
    			margin-top: map-deep-get($token-spacer-stack-max-map, "md");
    			
    			@include media-breakpoint-up(md) {
    				margin-top: 0;
    			}
    		}
    
    	}
    
    	&.-medium {
    
    		@include spacer-component-inline("md");
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-avatar-text/_avatar-text.scss
  • Filesystem Path: components/snet/molecules/avatar-text/_avatar-text.scss
  • Size: 1.9 KB