No notes defined.
<!-- Default -->
<div class="sds-advancedSelectItem">
<span class="sds-advancedSelectItem__img">
<img src="https://cdn.imagin.studio/getImage?&=&customer=spuerkeess&make=opel&modelFamily=mokka-e&modelRange=mokka-e&modelVariant=od&modelYear=2021&powerTrain=fossil&transmission=0&bodySize=5&trim=0&paintId=pspc0068&angle=23&width=120&zoomType=fullscreen" alt="">
</span>
<div class="sds-advancedSelectItem__content">
<p>Jeep</p>
<p class="sds-advancedSelectItem__meta sds-textHelper">Cooper SE</p>
</div>
</div>
<!-- No Img -->
<div class="sds-advancedSelectItem">
<div class="sds-advancedSelectItem__content">
<p>Jeep</p>
<p class="sds-advancedSelectItem__meta sds-textHelper">Cooper SE</p>
</div>
</div>
<!-- Dropdown Trigger -->
<button type="button" class="sds-advancedSelectItem" data-toggle="dropdown" data-offset="0,8">
<span class="sds-advancedSelectItem__img">
<img src="https://cdn.imagin.studio/getImage?&=&customer=spuerkeess&make=opel&modelFamily=mokka-e&modelRange=mokka-e&modelVariant=od&modelYear=2021&powerTrain=fossil&transmission=0&bodySize=5&trim=0&paintId=pspc0068&angle=23&width=120&zoomType=fullscreen" alt="">
</span>
<div class="sds-advancedSelectItem__content">
<p>Jeep</p>
<p class="sds-advancedSelectItem__meta sds-textHelper">Cooper SE</p>
</div>
<span class="sds-advancedSelectItem__icon sds-icon sds-icon-chevrondown" aria-hidden="true"></span>
</button>
<!-- Dropdown Trigger No Img -->
<button type="button" class="sds-advancedSelectItem" data-toggle="dropdown" data-offset="0,8">
<div class="sds-advancedSelectItem__content">
<p>SĂ©lectionner</p>
</div>
<span class="sds-advancedSelectItem__icon sds-icon sds-icon-chevrondown" aria-hidden="true"></span>
</button>
<{{ eltType }}
{% if eltType === "button" %} type="button"{%- endif -%}
class="{{ namespace }}advancedSelectItem{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}"{% for attrKey, attr in attrs %} {{ attrKey }}="{{ attr }}"{% endfor %}
>
{% if img %}
<span class="{{ namespace }}advancedSelectItem__img">
<img src="https://cdn.imagin.studio/getImage?&=&customer=spuerkeess&make=opel&modelFamily=mokka-e&modelRange=mokka-e&modelVariant=od&modelYear=2021&powerTrain=fossil&transmission=0&bodySize=5&trim=0&paintId=pspc0068&angle=23&width=120&zoomType=fullscreen" alt="">
</span>
{% endif %}
<div class="{{ namespace }}advancedSelectItem__content">
<p>{{ text }}</p>
{% if meta %}
<p class="{{ namespace }}advancedSelectItem__meta {{ namespace }}textHelper">{{ meta }}</p>
{% endif %}
</div>
{% if icon %}
<span class="{{ namespace }}advancedSelectItem__icon {{ namespace }}icon {{ namespace }}icon-chevrondown" aria-hidden="true"></span>
{% endif %}
</{{ eltType }}>
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}advancedSelectItem {
/* 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");
text-align: left; // needed if item is button
width: 100%; // needed if item is button
border-radius: map-deep-get($token-radius-map, "16");
padding: map-deep-get($token-spacer-inset-map, "sm");
/* 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 */
// advancedSelectItem__img
&__img {
// follows same logic as parent
aspect-ratio: 16/10;
width: map-deep-get($token-sizes-unit-map, "96");
IMG {
object-fit: cover;
width: 100%;
height: 100%;
}
}
&__meta {
@include custom-prop-fallback("color","sys-color-text-primary-muted");
}
&__icon {
margin-left: auto;
@include custom-prop-fallback("color","sys-color-text-primary-muted");
transition: transform 0.15s linear;
}
/* modifiers */
// advancedSelectItem -altStyle
&.-altStyle {
// follows same logic as base element
}
&[data-toggle="dropdown"] {
border-bottom: $input-border-width solid;
@include custom-prop-fallback("border-color","sys-color-border-primary-moderate");
border-radius: 0;
background-color: transparent !important;
&:focus {
@include custom-prop-fallback("border-bottom-color", "comp-input-active-border-color");
}
&[aria-expanded="true"] {
@include custom-prop-fallback("border-bottom-color", "comp-input-active-border-color");
#{$self}__icon {
transform: rotate(180deg);
}
}
}
&[disabled] {
pointer-events: none;
* {
@include custom-prop-fallback("color", "sys-color-background-neutral-120");
opacity: 0.64;
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover,
&:focus {
@media (hover: hover) {
@include custom-prop-fallback("background-color", "sys-color-background-primary-6");
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}