Device: Default

No notes defined.

<div class="sds-snetGuide__device -mobile">

    <div class="sds-snetGuide__deviceImg">
        <img class="img-fluid" src="../../media/snet/components/snet-guide/mobile-example.png" />

        <span class="sds-snetGuide__indicator" style="top: 50%; left: 15%;">
            <span></span>
        </span>

    </div>
</div>
<div class="{{ namespace }}snetGuide__device{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	{% if desktopHeader %}
		<div class="{{ namespace }}snetGuide__deviceHeader">
			<span></span>
			<span></span>
			<span></span>
		</div>
	{% endif %}
	<div class="{{ namespace }}snetGuide__deviceImg">
		<img class="img-fluid" src="{{ (mediaPath + img) | path }}"/>
		{% if indicator %}
			<span class="{{ namespace }}snetGuide__indicator" style="top: 50%; left: 15%;">
				<span></span>
			</span>
		{% endif %}
	</div>
</div>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}snetGuide__device {
    
    	/* 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 */
    
    
    	// device__img
    	&__img {
    
    		// follows same logic as parent
    
    
    
    	}
    
    
    	/* modifiers */
    
    	&.-mobile {
    		//aspect-ratio: 750/1624;
    	}
    
    	// device -desktop
    	&.-desktop {
    
    		// follows same logic as base element
    
    		// device__header
    
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/spk-device/_device.scss
  • Filesystem Path: components/spuerkeess-site/atoms/device/_device.scss
  • Size: 993 Bytes