Modal: Default

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

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

                <div class="sds-modal__title modal-title">Nouvelle demande ouverture entité</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">
                    <div class="sds-stackXl">
                        <p>Veuillez insérer les informations demandées.</p>
                        <div class="row row-sm">
                            <div class="col-12 col-sm-6">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Entité

                                    </label>
                                    <div class="sds-input">
                                        <input id="" class="sds-input form-control" type="text" placeholder="Body" value="">

                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Référence

                                    </label>
                                    <div class="sds-input">
                                        <input id="" class="sds-input form-control" type="text" placeholder="Entrez une communication" value="09287" readonly>

                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Groupe

                                    </label>
                                    <div class="sds-input">
                                        <input id="" class="sds-input form-control" type="text" placeholder="Body" value="">

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

            </div>

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

                <div class="sds-btnGroup">
                    <button type="button" class="sds-btn -btnSecondary -btnInverse" data-dismiss="modal">

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

                    </button>
                    <a href="" class="sds-btn -btnPrimary">

                        <span class="sds-btn__text">Initier la demande</span>

                    </a>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block header %}
	<div class="{{ namespace }}modal__title modal-title">Nouvelle demande ouverture entité</div>
{% endblock %}
{% block body %}
	<div class="{{ namespace }}box -insetLg">
		<div class="{{ namespace }}stackXl">
			<p>Veuillez insérer les informations demandées.</p>
			<div class="row row-sm">
				<div class="col-12 col-sm-6">
					<div class="form-group">
						{% render "@label--form",{text: "Entité"},true %}
						{% render "@input",{placeholder: "Body"},true %}
					</div>
				</div>
				<div class="col-12 col-sm-6">
					<div class="form-group">
						{% render "@label--form",{text: "Référence"},true %}
						{% render "@input",{
							readonly: true,
							value: "09287"
						},true %}
					</div>
				</div>
				<div class="col-12 col-sm-6">
					<div class="form-group">
						{% render "@label--form",{text: "Groupe"},true %}
						{% render "@input",{placeholder: "Body"},true %}
					</div>
				</div>
			</div>
		</div>
	</div>
{% endblock %}
{% block footer %}
	<div class="{{ namespace }}btnGroup">
		{% render "@btn-secondary-inverse", {
			text: "Annuler",
			attrs: {
				"data-dismiss": "modal"
			}
		} ,true %}
		{% render "@btn-primary",{
			text: "Initier la demande",
			eltType: "a"
		},true %}
	</div>
{% 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