Modal: Gestion Acces User

When a modal is triggered, the modal-open class triggers
<div class="sds-modal modal fade -bodySecondary06" id="gestionAccesUser" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-md modal-dialog-centered modal-dialog-scrollable">
        <div class="sds-modal__content modal-content">

            <div class="sds-modal__header modal-header">

                <div class="sds-modal__title modal-title">
                    Assignation { sujet }
                </div>

                <button type="button" class="sds-btn -iconBtn -btnSecondary -ghost sds-modal__close" data-dismiss="modal" aria-label="Close">

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

                </button>

            </div>

            <div class="sds-modal__body modal-body">

                <div class="sds-box -insetLg sds-stackMd">
                    <div class="sds-stackXl sds-modal__stickyBodyHeader position-sticky">
                        <div class="sds-input -search -hasIcon">
                            <input id="" class="sds-input form-control" type="text" placeholder="Search" value="">

                            <div class="sds-input__searchActions">
                                <div class="sds-input__clearBtn">
                                    <button type="button" class="sds-btn -iconBtn -btnSecondary -ghost -smaller">

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

                                    </button>
                                </div>
                                <div class="sds-input__searchBtn">
                                    <button type="button" class="sds-btn -btnSecondary -btnSmall" disabled>

                                        <span class="sds-btn__text">Rechercher</span>

                                    </button>
                                </div>
                            </div>

                            <div class="sds-input__iconLeft">
                                <span class="sds-icon sds-icon-search"></span>
                            </div>

                        </div>
                        <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-number-circle">
                            <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-number-circle"><span class="sds-checkboxDot" aria-hidden="true"></span>
                            <span class="sds-numberCircle -large">
                                3
                            </span>
                            <span class=" sds-textSemiBold">Entités sélectionnées</span>

                        </label>
                    </div>
                    <ul class="list-unstyled sds-stackLg">

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-team0">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-team0" checked><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -highlight30 -large">
                                    99+
                                </span>
                                <span class="">{ Team Name0 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-team1">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-team1" checked><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -highlight30 -large">
                                    99+
                                </span>
                                <span class="">{ Team Name1 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-team2">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-team2" checked><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -highlight30 -large">
                                    99+
                                </span>
                                <span class="">{ Team Name2 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity0">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity0"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -info100 -large">
                                    99+
                                </span>
                                <span class="">{ Entity Name0 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity1">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity1"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -info100 -large">
                                    99+
                                </span>
                                <span class="">{ Entity Name1 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity2">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity2"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -info100 -large">
                                    99+
                                </span>
                                <span class="">{ Entity Name2 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity0">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity0"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -secondary100 -large">
                                    99+
                                </span>
                                <span class="">{ Name0 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity1">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity1"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -secondary100 -large">
                                    99+
                                </span>
                                <span class="">{ Name1 }</span>

                            </label>
                        </li>

                        <li>
                            <label class="sds-checkboxNumberCircle sds-showCustomIndicatorHover" for="checkbox-avatar-text-entity2">
                                <input value="checkbox-value" type="checkbox" name="" class="sr-only custom-control-input " id="checkbox-avatar-text-entity2"><span class="sds-checkboxDot" aria-hidden="true"></span>
                                <span class="sds-numberCircle -secondary100 -large">
                                    99+
                                </span>
                                <span class="">{ Name2 }</span>

                            </label>
                        </li>

                    </ul>
                </div>

            </div>

            <div class="sds-modal__footer modal-footer">

                <button type="button" class="sds-btn -btnPrimary">

                    <span class="sds-btn__text">Assigner</span>

                </button>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block header %}
	<div class="{{ namespace }}modal__title modal-title">
		Assignation { sujet }
	</div>
{% endblock %}
{% block body %}
	<div class="{{ namespace }}box -insetLg {{ namespace }}stackMd">
		<div class="{{ namespace }}stackXl {{ namespace }}modal__stickyBodyHeader position-sticky">
			{% render "@input--search" %}
			{% render "@cpb-checkbox-number-circle",{
				numberCircleText: "3",
				semibold: true,
				text: "Entités sélectionnées"
			},true %}
		</div>
		<ul class="list-unstyled {{ namespace }}stackLg">
			{% for i in range(0,3) %}
				<li>
					{% render "@cpb-checkbox-number-circle", {
						numberCircleClasses: ["-highlight30","-large"],
						id: "checkbox-avatar-text-team"+i,
						text: "{ Team Name"+i+" }",
						checked: true
					},true %}
				</li>
			{% endfor %}
			{% for i in range(0,3) %}
				<li>
					{% render "@cpb-checkbox-number-circle", {
						numberCircleClasses: ["-info100","-large"],
						id: "checkbox-avatar-text-entity"+i,
						text: "{ Entity Name"+i+" }"
					},true %}
				</li>
			{% endfor %}
			{% for i in range(0,3) %}
				<li>
					{% render "@cpb-checkbox-number-circle", {
						numberCircleClasses: ["-secondary100","-large"],
						id: "checkbox-avatar-text-entity"+i,
						text: "{ Name"+i+" }"
					},true %}
				</li>
			{% endfor %}
		</ul>
	</div>
{% endblock %}
{% block footer %}
	{% render "@btn-primary",{
		text: "Assigner"
	},true %}
{% endblock %}
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}modal {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    
    	/* 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 */
    
    	// modal__stickyBodyHeader
    	&__stickyBodyHeader {
    
    		// follows same logic as parent
    
    		top: -($modal-inner-padding-mobile);
    		z-index: z("low");
    		background-color: map-deep-get($token-color-grayscale-map, "0");
    		padding-top: map-deep-get($token-spacer-inset-map, "md");
    		padding-bottom: map-deep-get($token-spacer-inset-map, "md");
    		margin-top: -(map-deep-get($token-spacer-inset-map, "md"));
    
    		@include media-breakpoint-up(sm) {
    			top: -24px;
    		}
    
    		&.-inContentFlow {}
    
    	}
    
    	// modal__stickyBodyHeaderSearch
    	&__stickyBodyHeaderSearch {
    		margin-top: -(map-deep-get($token-spacer-stack-max-map, "md"));
    	}
    
    
    		/* modifiers */
    
    	// modal -altStyle
    	&.-altStyle {
    
    		// follows same logic as base element
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/cpb-modal/_modal.scss
  • Filesystem Path: components/corporate-bridge/organisms/modal/_modal.scss
  • Size: 1.5 KB