No notes defined.
<div class="sds-alert alert fade show alert-warning-100 alert-dismissible">
<div class="sds-alert__content">
<p class="sds-textHelper sds-textSemiBold">{alert title}</p>
<p class="sds-textHelper ">Votre transaction a été éliminée</p>
</div>
<button type="button" class="close" data-dismiss="alert">
<span class="sr-only">Close</span>
<span class="sds-icon sds-icon-close" aria-hidden="true"></span>
</button>
<div class="sds-alert__btnArea">
<div class="sds-alert__btnGroup sds-btnGroup -hasVerticalSpacing">
<button type="button" class="sds-btn -btnSecondary -btnSmall -block sds-alert__refuseBtn">
<span class="sds-btn__text">button text</span>
</button>
<button type="button" class="sds-btn -btnSecondary -btnSmall -block sds-alert__acceptBtn">
<span class="sds-btn__text">button text</span>
</button>
</div>
</div>
</div>
{% if wrapper %}
<div class="{{ namespace }}alertWrapper{% for mod in parentModifiers %} {{ mod }}{% endfor %}">
{% endif %}
<div class="{{ namespace }}alert alert{% if toast %} fade show{% endif %}{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<div class="{{ namespace }}alert__content">
{% if title %}
<p class="{% if toast %}{{ namespace }}textHelper {% else %}{% endif %}{{ namespace }}textSemiBold">{{ title | safe }}</p>
{% endif %}
<p class="{% if toast %}{{ namespace }}textHelper {% else %}{% endif %}">{{ text | safe }}</p>
</div>
{% if link %}
<a href="#!" class="{% if toast %}{{ namespace }}textHelper{% endif%} alert-link">{{ link }}</a>
{% endif %}
{% if dismissible %}
<button type="button" class="close"{% if closeWithoutDestroying %}{% else %} data-dismiss="alert"{% endif %}>
<span class="sr-only">Close</span>
<span class="{{ namespace }}icon {{ namespace }}icon-close" aria-hidden="true"></span>
</button>
{% endif %}
{% if multipleConfirmation %}
<div class="{{ namespace }}alert__btnArea">
<div class="{{ namespace }}alert__btnGroup {{ namespace }}btnGroup -hasVerticalSpacing">
{% render "@btn-secondary--small",{
classes: ["-block", namespace + "alert__refuseBtn"],
text: alertRefuseBtnText,
attrs: alertRefuseBtnOptions
},true %}
{% render "@btn-secondary--small",{
classes: ["-block", namespace + "alert__acceptBtn"],
text: alertAcceptBtnText,
attrs: alertAcceptBtnOptions
},true %}
</div>
</div>
{% endif %}
</div>
{% if wrapper %}
</div>
{% endif %}
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}alertWrapper {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
@include spacer-component-stack("md");
position: fixed;
left: 0;
right: 0;
bottom: $frame-content-bottom-bar-min-height-global;
z-index: z("popover");
padding: $snet-frame-main-horiz-padding-mobile-global;
max-width: map-deep-get($container-max-widths, "xl");
margin: auto;
display: flex;
flex-direction: column;
align-items: flex-end;
@include media-breakpoint-up(lg) {
padding-top: 0;
padding-bottom: 0;
padding-right: $snet-frame-main-horiz-padding-desktop-global;
bottom: $snet-frame-main-horiz-padding-desktop-global;
}
//@media screen and (min-width: map-get($tweakpoint-map, "tablet")) {
//
//}
/* 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 */
// alert__content
&__content {
// follows same logic as parent
}
> * {
max-width: 100%;
width: 375px;
}
/* modifiers */
// alert -altStyle
&.-altStyle {
// follows same logic as base element
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
.-hasBottomBar & {
bottom: $frame-content-bottom-bar-min-height-global;
}
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}alert {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
display: flex;
/* 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 */
// alert__content
&__content {
// follows same logic as parent
margin-right: auto;
flex-grow: 1;
}
&__btnArea {
width: 100%;
margin-top: map-deep-get($token-spacer-stack-max-map, "sm");
}
&__refuseBtn,
&__acceptBtn {
border: $border-width*2 solid transparent;
}
&__refuseBtn#{$self}__refuseBtn {
&:hover {
@media (hover: hover) {
background-color: rgba(map-deep-get($token-color-grayscale-map, "0"), 0.2) !important;
}
}
}
/* modifiers */
// alert -altStyle
&.-altStyle {
// follows same logic as base element
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}