Skip Nav Link

Usage

The skip nav link component is to be included in the snet frame. See snet/templates/page for inclusion.
<a href="#frameMain" class="sds-skipNavLink">
    Skip to content
</a>
<a href="#frameMain" class="{{ namespace }}skipNavLink{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
	Skip to content
</a>
  • Content:
    .#{$namespace}skipNavLink {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    
    	/* variables specific to current element */
    
    	$element-specific-variables: "";
    
    
    	/* properties of current element  + media queries */
    
    	position: absolute;
    	bottom: 100%;
    	left: 50%;
    	transform: translate(-50%, 0);
    	border: $border-width solid transparent;
    	@include custom-prop-fallback("color", "sys-color-text-secondary-vivid");
    
    	//transition: transform 0.15s linear;
    
    	/* 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 */
    
    	// skipNavLink__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// skipNavLink -altStyle
    	&.-altStyle {
    
    		// follows same logic as base element
    
    	}
    
    	/* random parent element */
    	/* 
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    		transform: translate(-50%, 200%);
    		@include custom-prop-fallback("border-color", "sys-color-text-secondary-vivid");
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/skip-nav-link/_skip-nav-link.scss
  • Filesystem Path: components/base-components/atoms/skip-nav-link/_skip-nav-link.scss
  • Size: 1.3 KB