No notes defined.
<div class="sds-message sds-stackMd">
<div class="sds-message__header">
<span class="sds-icon sds-icon-infocirclefill"></span>
<div class="sds-message__iconAlign">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque culpa cumque debitis dicta ducimus fugiat fugit maiores modi molestiae officiis provident quis, quos ratione sapiente sunt tempora temporibus unde veniam!</p>
</div>
</div>
</div>
<div class="{{ namespace }}message {{ namespace }}stackMd{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<div class="{{ namespace }}message__header">
{% if iconLeft %}
<span class="{{ namespace }}icon {{ namespace }}{{ iconLeft }}"></span>
{% endif %}
<div class="{{ namespace }}message__iconAlign">
{% if heading %}
<div class="{{ namespace }}message__heading h4">{{ heading }}</div>
{% endif %}
<p>{{ text | safe }}</p>
{% if button %}
{% render "@btn-primary",{
classes: [namespace+"message__btn"],
text: "Passer par S-Net"
},true %}
{% endif %}
</div>
</div>
{% if options %}
<ul class="{{ namespace }}message__bulletOptions {{ namespace }}stackMd list-unstyled">
{% for key, optionItem in options %}
<li class="{{ namespace }}message__option">
{{ optionItem.text }}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
/* variables specific to current element */
$message-font-size: map-deep-get($design-tokens, "sys-font-size-helper-medium");
.#{$namespace}message {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
@include spacer-component-inset("md");
border-radius: map-deep-get($token-radius-map, "16");
@include custom-prop-fallback("background-color","sys-color-background-primary-10");
@include custom-prop-fallback("color","sys-color-text-primary-vivid");
font-size: $message-font-size;
/* 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 */
// message__childElement
&__header {
display: flex;
align-items: stretch;
@include spacer-component-inline("sm");
}
&__iconAlign {
// follows same logic as parent
display: flex;
flex-direction: column;
justify-content: center;
}
&__heading + * {
margin-top: map-deep-get($token-spacer-stack-max-map, "xs");
}
&__btn {
align-self: flex-start;
margin-top: map-deep-get($token-spacer-stack-max-map, "md");
}
&__option {
display: flex;
align-items: flex-start;
&::before {
display: flex;
align-items: center;
height: $message-font-size * map-deep-get($token-font-line-height-map, "xxl");
content: map-deep-get($token-icon-map, "arrownext");
@include icon-base;
margin-right: map-deep-get($token-spacer-unit-map, "8");
font-size: map-deep-get($design-tokens, "sys-font-size-body-extra-large-max");
}
}
/* modifiers */
// message -light
&.-light {
// follows same logic as base element
@include custom-prop-fallback("background-color","sys-color-elevation-surface-flat");
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}