Account Selector: Disabled

No notes defined.

<div class="sds-accountSelector dropdown -isDisabled">
    <div class="sds-accountSelector__content sds-stackXs">
        <div class="h4">{Account Name}</div>
        <div class="sds-accountSelector__number sds-textHelper">LU## #### #### #### ####</div>

        <div class="sds-amount -amountNegative -amountLg">

            <div class="sds-amount__body">
                <span class="sds-amount__value">{-#.###,##}</span>

                <span class="sds-amount__currency"></span>

            </div>

        </div>

    </div>
    <div class="sds-accountSelector__actions">
        <button type="button" class="sds-btn -iconBtn -btnSecondary sds-accountSelector__btn stretched-link" data-toggle="dropdown" aria-expanded="false" data-display="static" disabled>

            <span class="sds-icon sds-icon-chevrondown"></span>

            <div class="sr-only">Toggle account selector dropdown with accounts</div>

        </button>
        <div class="sds-accountSelector__dropdown dropdown-menu dropdown-menu-right">
            <form class="sds-stackMd" action="">
                <div class="sds-accountSelector__dropdownHeading h3">Mes comptes personnels</div>
                <div class="sds-stackSm">
                    <div class="h4">Comptes et cartes</div>
                    <div class="sds-accountSelector__dropdownSection sds-stackSm">
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id="" checked><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                    </div>
                </div>
                <div class="sds-stackSm">
                    <div class="h4">Epargne</div>
                    <div class="sds-accountSelector__dropdownSection sds-stackSm">
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                    </div>
                </div>
                <div class="sds-stackSm">
                    <div class="h4">Investissements</div>
                    <div class="sds-accountSelector__dropdownSection sds-stackSm">
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                    </div>
                </div>
                <div class="sds-stackSm">
                    <div class="h4">Prêts</div>
                    <div class="sds-accountSelector__dropdownSection sds-stackSm">
                        <div class="sds-accountCard sds-showCustomIndicatorHover">
                            <label class="sds-accountCard__inner">
                                <input value="radio-value" type="radio" name="radio-name" class="sr-only sds-accountCard__input" id=""><span class="sds-radioDot  sds-accountCard__checkItem" aria-hidden="true"></span>

                                <div class="sds-avatar centeredBgi -avatarSm">

                                    <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                                </div>

                                <span class="sds-accountCard__content sds-stackXs">
                                    <div>
                                        Jil Schmit

                                    </div>
                                    <span class="sds-textHelper sds-accountCard__meta">
                                        compte courant
                                    </span>
                                </span>

                                <div class="sds-amount -amountPositive -amountLg">

                                    <div class="sds-amount__body">
                                        <span class="sds-amount__value">{+#.###,##}</span>

                                        <span class="sds-amount__currency"></span>

                                    </div>

                                </div>

                            </label>
                        </div>
                    </div>
                </div>
            </form>
        </div>

    </div>
</div>
<div class="{{ namespace }}accountSelector dropdown{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}accountSelector__content {{ namespace }}stackXs">
		<div class="h4">{{ accountUser }}</div>
		<div class="{{ namespace }}accountSelector__number {{ namespace }}textHelper">{{ account }}</div>
		{% if amount %}
			{% if amountNegative %}
				{% render "@amount-body--negative-lg" %}
			{% else %}
				{% render "@amount-body--positive-lg" %}
			{% endif %}
		{% endif %}
	</div>
	<div class="{{ namespace }}accountSelector__actions">
		{% render "@icon-btn-secondary", {
			icon: "icon-chevrondown",
			classes: [namespace + "accountSelector__btn","stretched-link"],
			action: "Toggle account selector dropdown with accounts",
			disabled: disabled,
			attrs: {
				"data-toggle": "dropdown",
				"aria-expanded": "false",
				"data-display": "static"
			}
		},true %}
		<div class="{{ namespace }}accountSelector__dropdown dropdown-menu {{ dropdownPosition }}">
			<form class="{{ namespace }}stackMd" action="">
				<div class="{{ namespace }}accountSelector__dropdownHeading h3">Mes comptes personnels</div>
				<div class="{{ namespace }}stackSm">
					<div class="h4">Comptes et cartes</div>
					<div class="{{ namespace }}accountSelector__dropdownSection {{ namespace }}stackSm">
						{% render "@snet-account-card",{
							avatar: avatar,
							checkedOptions: true},true %}
						{% render "@snet-account-card",{avatar: avatar},true %}
						{% render "@snet-account-card",{avatar: avatar},true %}
					</div>
				</div>
				<div class="{{ namespace }}stackSm">
					<div class="h4">Epargne</div>
					<div class="{{ namespace }}accountSelector__dropdownSection {{ namespace }}stackSm">
						{% render "@snet-account-card",{avatar: avatar},true %}
					</div>
				</div>
				<div class="{{ namespace }}stackSm">
					<div class="h4">Investissements</div>
					<div class="{{ namespace }}accountSelector__dropdownSection {{ namespace }}stackSm">
						{% render "@snet-account-card",{avatar: avatar},true %}
					</div>
				</div>
				<div class="{{ namespace }}stackSm">
					<div class="h4">Prêts</div>
					<div class="{{ namespace }}accountSelector__dropdownSection {{ namespace }}stackSm">
						{% render "@snet-account-card",{avatar: avatar},true %}
					</div>
				</div>
			</form>
		</div>

	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}accountSelector {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	@include spacer-component-inset-horiz-greater("sm","md");
    	border-radius: map-deep-get($token-radius-map, "16");
    	display: inline-flex;
    	align-items: flex-start;
    
    	position: relative;
    	z-index: z("dropdown");
    
    	/* 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 */
    
    	// accountSelector__number
    	&__number {
    
    		// follows same logic as parent
    		@include custom-prop-fallback("color", "sys-color-text-primary-muted")
    
    	}
    
    	&__content {
    
    		min-width: 185px;
    		max-width: 230px;
    
    	}
    	
    	&__actions {
    
    		margin-left: map-deep-get($token-spacer-inline-map, "lg");
    		margin-top: map-deep-get($token-spacer-unit-map, "4");
    
    		&.show {
    
    			&::after {
    
    				content: "";
    				position: absolute;
    				z-index: z("negative");
    				top: 0;
    				left: 0;
    				width: 100%;
    				height: 100%;
    				@include custom-prop-fallback("background-color", "sys-color-elevation-surface-flat");
    				border-radius: map-deep-get($token-radius-map, "16");
    
    			}
    
    		}
    
    	}
    
    	&__btn {
    
    		&[aria-expanded="true"] {
    			border-color: transparent !important;
    			> *::before {
    				content: map-deep-get($token-icon-map, "chevronup")
    			}
    		}
    
    	}
    
    	&__dropdown {
    
    		width: 520px;
    		@include spacer-component-inset("lg");
    		box-shadow: map-deep-get($token-shadow-map, "detail");
    		top: calc(100% + #{map-deep-get($token-spacer-stack-max-map, "sm")});
    		max-height: calc(100vh - (#{$nav-topbar-height-global} + #{map-deep-get($token-sizes-component-map, "panel-header-height")} * 1.75));
    		overflow-y: auto;
    
    	}
    	
    	&__dropdownHeading {
    		margin-bottom: map-deep-get($token-spacer-stack-max-map, "lg");
    	}
    
    	&__dropdownSection {
    		margin-left: (-(map-deep-get($token-spacer-inline-map, "sm")));
    		margin-right: (-(map-deep-get($token-spacer-inline-map, "sm")));
    	}
    
    	/* modifiers */
    
    	// accountSelector -altStyle
    	&.-isDisabled {
    
    		// follows same logic as base element
    
    		#{$self}__content {
    
    			* {
    
    				@include custom-prop-fallback("color", "sys-color-background-neutral-120");
    
    			}
    
    		}
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-account-selector/_account-selector.scss
  • Filesystem Path: components/snet/molecules/account-selector/_account-selector.scss
  • Size: 2.7 KB