Document Download

No notes defined.

<div class="sds-documentDownload sds-hoverContentSecondary">
    <div class="sds-documentDownload__content">
        <span class="sds-iconCircle -secondary100" aria-hidden="true">

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

        </span>

        <p class="sds-documentDownload__text">
            Data protection policy
        </p>
    </div>
    <div class="sds-documentDownload__actionArea">
        <a href="" class="sds-btn -iconBtn -btnSecondary stretched-link">

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

            <div class="sr-only">Télécharger</div>

        </a>
    </div>
</div>
<div class="{{ namespace }}documentDownload{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}documentDownload__content">
		{% render "@icon-circle-regular--secondary-100",{icon: icon},true %}
		<p class="{{ namespace }}documentDownload__text">
			{{ text }}
		</p>
	</div>
	<div class="{{ namespace }}documentDownload__actionArea">
		{% render "@icon-btn-secondary",{
			eltType: "a",
			classes: ["stretched-link"],
			icon: btnIcon,
			action: "Télécharger"
		},true %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}documentDownload {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    
    	display: flex;
    	align-items: baseline;
    	justify-content: space-between;
    	@include spacer-component-inline("md");
    	position: relative; // when action as stretched link
    	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 */
    
    	// documentDownload__content
    	&__content {
    
    		// follows same logic as parent
    
    		@include spacer-component-inline("md");
    		display: flex;
    		align-items: stretch;
    
    	}
    
    	// documentDownload__text
    	&__text {
    
    		// follows same logic as parent
    
    		font-weight: map-deep-get($token-font-weight-map, "semi-bold");
    		display: flex;
    		align-items: center;
    
    	}
    
    
    	/* modifiers */
    
    	// documentDownload -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/spk-document-download/_document-download.scss
  • Filesystem Path: components/spuerkeess-site/molecules/document-download/_document-download.scss
  • Size: 1.5 KB