Shortcut Card

No notes defined.

<div class="sds-shortcutCard sds-box -insetLg">
    <div class="sds-shortcutCard__img">
        <img class="img-fluid" src="https://design.spuerkeess.lu/media/illustrations/svg750x560/hero/sdsillu-cardreceive.svg" alt="">
    </div>
    <div class="sds-shortcutCard__content sds-stackLg">
        <div class="sds-shortcutCard__text sds-stackXs">
            <h3 class="h4">Accéder aux marchés financiers</h3>
            <p>{Description}</p>
        </div>
        <a href="" class="sds-btn -btnSecondary sds-shortcutCard__action stretched-link">

            <span class="sds-btn__text">Lancer l'action</span>

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

        </a>
    </div>
</div>
<div class="{{ namespace }}shortcutCard {{ namespace }}box -insetLg{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	<div class="{{ namespace }}shortcutCard__img">
		<img class="img-fluid" src="{{ ("https://design.spuerkeess.lu/media" + illustrationsSDSPath + svg750xPath + "/hero/sdsillu-" +  illu + ".svg") }}" alt="">
	</div>
	<div class="{{ namespace }}shortcutCard__content {{ namespace }}stackLg">
		<div class="{{ namespace }}shortcutCard__text {{ namespace }}stackXs">
			<h3 class="h4">{{ title }}</h3>
			<p>{{ text }}</p>
		</div>
		{% render '@btn-secondary--icon-right',{
			classes: [namespace + "shortcutCard__action", "stretched-link"],
			eltType: "a",
			icon: "icon-chevronrightdouble",
			text: "Lancer l'action"
		}, true %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}shortcutCard {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	position: relative;
    	@include spacer-component-stack("lg");
    
    	/* 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 */
    
    	&,
    	&__content {
    		display: flex;
    		flex-direction: column;
    		align-items: flex-start;
    	}
    
    	// shortcutCard__content
    	&__content {
    
    		flex-grow: 1;
    		@include spacer-component-stack("lg");
    
    	}
    
    	&__img {
    
    		height: map-deep-get($token-spacer-unit-map, "8")*23;
    		width: 100%;
    		
    		@include media-breakpoint-up(md) {
    			height: auto;
    		}
    
    		IMG {
    
    			object-fit: contain;
    			object-position: center bottom;
    			width: 100%;
    			height: 100%;
    
    		}
    		
    
    	}
    
    	&__text {
    
    		flex-grow: 1;
    
    	}
    
    	// shortcutCard__action
    	&__action {
    
    		// follows same logic as parent
    
    		&.stretched-link {
    
    			&::after {
    				border-radius: $box-border-radius-global;
    			}
    
    			&:hover,
    			&:focus {
    				@media (hover: hover) {
    					&::after {
    						box-shadow: map-deep-get($token-shadow-map, "hover");
    					}
    				}
    			}
    
    		}
    
    	}
    
    
    	/* modifiers */
    
    	// shortcutCard -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/snet-shortcut-card/_shortcut-card.scss
  • Filesystem Path: components/snet/molecules/shortcut-card/_shortcut-card.scss
  • Size: 1.7 KB