Skip Navigation

No notes defined.

<a href="#main" class="sds-skipNavigation sds-box -insetMd sds-scaleInteraction text-underline">
    Skip navigation
</a>
<a href="#main" class="{{ namespace }}skipNavigation {{ namespace }}box -insetMd {{ namespace }}scaleInteraction text-underline{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	Skip navigation
</a>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}skipNavigation {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    	/* properties of current element  + media queries */
    	@include custom-prop-fallback("color","ui-interaction-active-text-color");
    	opacity: 0;
    	transition-duration: 0.15s;
    	transition-timing-function: linear;
    	transition-property: opacity, transform;
    	display: inline-flex;
    	text-align: center;
    	position: fixed;
    	z-index: z("modal-backdrop");
    	margin: auto;
    	top: map-deep-get($design-tokens,"ui-space-stack-static-1000");
    	left: 50%;
    	transform: translate(-50%,-150%);
    
    	/* 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 */
    
    	// skipNavigation__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// skipNavigation -altStyle
    	&.-altStyle {
    
    		// follows same logic as base element
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    			@include custom-prop-fallback("color","ui-interaction-active-hovered-text-color");
    		}
    	}
    
    	&:focus,
    	&:focus-visible {
    		opacity: 1;
    		transform: translate(-50%,0);
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/skip-navigation/_skip-navigation.scss
  • Filesystem Path: components/token-based/actions-and-inputs/skip-navigation/_skip-navigation.scss
  • Size: 1.5 KB