No notes defined.
<div class="sds-employeeCard sds-box -insetLg -boxSunken -row -separatorHorizontal">
<div class="sds-avatar centeredBgi -avatarXl">
<img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">
</div>
<div class="sds-employeeCard__text">
<div class="h4">Angèle Schmitz</div>
<button class="text-left sds-textHelper sds-metaColor">Position</button>
</div>
</div>
<div class="{{ namespace }}employeeCard {{ namespace }}box -insetLg -boxSunken{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
{% render "@avatar--image-extra-large" %}
<div class="{{ namespace }}employeeCard__text">
<div class="h4">{{ title }}</div>
<button class="text-left {{ namespace }}textHelper {{ namespace }}metaColor">{{ text }}</button>
</div>
</div>
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}employeeCard {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
display: flex;
flex-direction: column;
@include spacer-component-stack("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 */
// employeeCard__childElement
&__text {
// follows same logic as parent
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
&::after {
content: "";
@extend %brandLine;
margin-top: map-deep-get($token-spacer-stack-max-map, "sm");
margin-bottom: map-deep-get($token-spacer-stack-max-map, "sm");
@include media-breakpoint-up("lg") {
margin-top: map-deep-get($token-spacer-stack-max-map, "md");
}
}
}
/* modifiers */
// employeeCard -row
&.-row {
// follows same logic as base element
display: flex;
flex-direction: row;
align-items: center;
@include unset-spacer-component-stack();
gap: map-deep-get($token-spacer-stack-max-map, "md");
#{$self}__text {
&::after {
content: none;
}
}
}
&.-separatorHorizontal {
background-color: transparent;
padding: 0;
flex-wrap: nowrap;
&::before {
content: "";
@extend %brandLine;
margin-right: map-deep-get($token-spacer-inline-map, "sm");
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}