<div class="sds-actionsList">
<div class="sds-actionsList__heading">
<div class="sds-actionsList__title">
Actions list
</div>
</div>
<div class="sds-actionsList__body">
<div class="sds-actionsList__bodyItem">
<div class="sds-listItem sds-hoverContentSecondary sds-hoverContentSecondary">
<div class="sds-avatar centeredBgi">
<img class="img-fluid" src="../../media/snet/avatars/avatarBankerMain.png" alt="">
</div>
<div class="sds-listItem__text">
<div class="sds-listItem__textMain">List item helper with text</div>
<div class="sds-listItem__textMeta sds-textHelper">helper text</div>
</div>
<div class="sds-listItem__rightContent">
<div class="sds-btnGroup">
<button type="button" class="sds-btn -iconBtn -btnSecondary">
<span class="sds-icon sds-icon-edit"></span>
</button>
<button type="button" class="sds-btn -btnSecondary">
<span class="sds-btn__text">Activer</span>
<span class="sds-icon sds-icon-chevronright"></span>
</button>
</div>
</div>
</div>
</div>
<div class="sds-actionsList__bodyItem">
<div class="sds-listItem sds-hoverContentSecondary sds-hoverContentSecondary">
<div class="sds-avatar centeredBgi">
<img class="img-fluid" src="../../media/snet/avatars/avatarBankerMain.png" alt="">
</div>
<div class="sds-listItem__text">
<div class="sds-listItem__textMain">text</div>
<div class="sds-listItem__textMeta sds-textHelper"></div>
</div>
<div class="sds-listItem__rightContent">
<div class="sds-listItem__textMeta sds-textHelper">NĂ©cessite une double signature</div>
<button type="button" class="sds-btn -btnSecondary">
<span class="sds-btn__text">Activer</span>
</button>
</div>
</div>
</div>
<div class="sds-actionsList__bodyItem">
<div class="sds-listItem sds-hoverContentSecondary sds-hoverContentSecondary">
<div class="sds-avatar centeredBgi">
<img class="img-fluid" src="../../media/snet/avatars/avatarCactus.png" alt="">
</div>
<div class="sds-listItem__text">
<div class="sds-listItem__textMain">List item helper with text</div>
<div class="sds-listItem__textMeta sds-textHelper">helper text</div>
</div>
<div class="sds-listItem__rightContent">
<button type="button" class="sds-btn -btnSecondary">
<span class="sds-btn__text">Activer</span>
</button>
</div>
</div>
</div>
</div>
</div>
{% extends "@snet-actions-list-frame" %}
{% block body %}
<div class="{{ namespace }}actionsList__bodyItem">
{% render "@snet-list-item--btn-group" %}
</div>
<div class="{{ namespace }}actionsList__bodyItem">
{% render "@snet-list-item--helper-btn" %}
</div>
<div class="{{ namespace }}actionsList__bodyItem">
{% render "@snet-list-item--avatar-btn" %}
</div>
{% endblock %}
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}actionsList {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
display: flex;
flex-direction: column;
/* 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 */
// actionsList__childElement
&__heading {
// follows same logic as parent
padding-bottom: map-deep-get($token-spacer-unit-map, "16");
//margin-bottom: map-deep-get($token-spacer-unit-map, "16");
display: flex;
align-items: center;
justify-content: space-between;
@include custom-prop-fallback("background-color", "sys-color-elevation-surface-flat")
}
&__title {
@extend %headingBase;
@extend %h3;
}
&__body {
@include spacer-component-stack("sm");
display: flex;
flex-direction: column;
flex-grow: 1;
}
&__bodyItem {
margin-left: -(map-deep-get($token-spacer-unit-map, "8"));
margin-right: -(map-deep-get($token-spacer-unit-map, "8"));
flex-grow: 1;
}
&__bodyEmpty {
text-align: center;
padding: map-deep-get($token-spacer-unit-map, "40") 0;
}
&__footer {
border-top: $border-width solid;
@include custom-prop-fallback("border-top-color","sys-color-border-primary-moderate");
padding-top: map-deep-get($token-spacer-unit-map, "16");
margin-top: map-deep-get($token-spacer-unit-map, "16");
}
&__meta {
@include custom-prop-fallback("color", "sys-color-text-primary-muted")
}
/* modifiers */
// actionsList -isListItem
&.-isListItem {
// follows same logic as base element
& + & {
margin-top: map-deep-get($token-spacer-stack-max-map, "lg");
}
#{$self}__heading {
padding-bottom: map-deep-get($token-spacer-unit-map, "8");
//margin-bottom: map-deep-get($token-spacer-unit-map, "8");
}
#{$self}__title {
@extend %h4;
}
}
&.-stickyHeading {
#{$self}__heading {
position: sticky;
top: $nav-topbar-height-global;
z-index: z("low");
@extend .#{$namespace}outOfBounds;
padding-left: map-deep-get($token-spacer-inline-map, "sm");
padding-right: map-deep-get($token-spacer-inline-map, "sm");
padding-top: map-deep-get($token-spacer-inline-map, "sm");
}
}
&.-stickyHeadingTop {
#{$self}__heading {
top: 0;
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}