No notes defined.

<svg class="svgHeart" width="17" height="16" viewBox="0 0 17 16" fill="none" overflow="visible" xmlns="http://www.w3.org/2000/svg">
    <path d="M8.9375 16L7.7775 14.8665C6.43083 13.5441 5.3175 12.4033 4.4375 11.4441C3.5575 10.485 2.8575 9.62383 2.3375 8.8606C1.8175 8.09795 1.4543 7.39691 1.2479 6.75749C1.0415 6.11807 0.938033 5.46412 0.9375 4.79564C0.9375 3.42961 1.3575 2.28883 2.1975 1.3733C3.0375 0.457766 4.08417 0 5.3375 0C6.03083 0 6.69083 0.159855 7.3175 0.479564C7.94417 0.799273 8.48417 1.24977 8.9375 1.83106C9.39083 1.24977 9.93083 0.799273 10.5575 0.479564C11.1842 0.159855 11.8442 0 12.5375 0C13.7908 0 14.8375 0.457766 15.6775 1.3733C16.5175 2.28883 16.9375 3.42961 16.9375 4.79564C16.9375 5.46412 16.834 6.11807 16.6271 6.75749C16.4202 7.39691 16.057 8.09795 15.5375 8.8606C15.0175 9.62383 14.3175 10.485 13.4375 11.4441C12.5575 12.4033 11.4442 13.5441 10.0975 14.8665L8.9375 16Z" fill="black" stroke="#999" stroke-width="0" />
</svg>
<svg class="svgHeart{{ filled ? '--filled' }}" width="17" height="16" viewBox="0 0 17 16" fill="none" overflow="visible" xmlns="http://www.w3.org/2000/svg">
	<path d="M8.9375 16L7.7775 14.8665C6.43083 13.5441 5.3175 12.4033 4.4375 11.4441C3.5575 10.485 2.8575 9.62383 2.3375 8.8606C1.8175 8.09795 1.4543 7.39691 1.2479 6.75749C1.0415 6.11807 0.938033 5.46412 0.9375 4.79564C0.9375 3.42961 1.3575 2.28883 2.1975 1.3733C3.0375 0.457766 4.08417 0 5.3375 0C6.03083 0 6.69083 0.159855 7.3175 0.479564C7.94417 0.799273 8.48417 1.24977 8.9375 1.83106C9.39083 1.24977 9.93083 0.799273 10.5575 0.479564C11.1842 0.159855 11.8442 0 12.5375 0C13.7908 0 14.8375 0.457766 15.6775 1.3733C16.5175 2.28883 16.9375 3.42961 16.9375 4.79564C16.9375 5.46412 16.834 6.11807 16.6271 6.75749C16.4202 7.39691 16.057 8.09795 15.5375 8.8606C15.0175 9.62383 14.3175 10.485 13.4375 11.4441C12.5575 12.4033 11.4442 13.5441 10.0975 14.8665L8.9375 16Z"
				fill="{{ fill ?: '#C2185B' }}"
				stroke="{{ stroke ?: '#999' }}"
				stroke-width="{{ strokeWidth ?: 0 }}"/>
</svg>
  • Content:
    // add icons to this array with their filename and type,
    // the loop at the bottom of the file will create classes for them
    
    $icons: (
    	//'facebook': 'svg',
    	//'instagram': 'svg',
    	//'twitter': 'svg',
    	//'linkedin': 'svg',
    	//'youtube': 'svg',
    	//'external-primary': 'svg',
    	//'phone': 'svg',
    	//'mail': 'svg',
    	//'pin': 'svg',
    );
    
    .icon {
    	position: relative;
    	display: inline-block;
    	width: 1em;
    	height: 1em;
    	text-align: center;
    	background-size: contain;
    	background-position: center center;
    	background-repeat: no-repeat;
    	vertical-align: baseline;
    	top: 0.1em;
    
    	svg,
    	img {
    		display: block;
    		width: 100%;
    		max-height: 100%;
    		vertical-align: middle;
    	}
    
    	svg {
    		height: 100%;
    		//fill: #000;
    	}
    
    	&:before {
    		font-size: 1em;
    		display: inline-block;
    	}
    
    	@each $name, $extension in $icons {
    		&--#{$name} {
    			background-image: url('../img/icon-#{$name}.#{$extension}');
    		}
    	}
    
    	// Layout
    
    	&--margin-before {
    		margin-inline-start: 0.35em;
    	}
    
    	&--margin-after {
    		margin-inline-end: 0.35em;
    	}
    
    	// Themes
    
    	&--primary {
    		svg, path {
    			fill: $primary !important;
    		}
    	}
    
    	&--secondary {
    		svg, path {
    			fill: $secondary !important;
    		}
    	}
    
    	&--tertiary {
    		svg, path {
    			fill: $tertiary !important;
    		}
    	}
    
    	// Variant generator
    	// (see loop at top)
    
    	//@each $name, $extension in $icons {
    	//	&--#{$name} {
    	//		background-image: url('../img/icon-#{$name}.#{$extension}');
    	//	}
    	//}
    
    	// Special
    
    	@at-root {
    		a, button {
    			&:where(:has(.svgHeart)) {
    				path {
    					fill: rgba(white, 0);
    					stroke-width: 2;
    					stroke: $grey;
    					transition: all 100ms;
    				}
    
    				&:hover, &:focus {
    					path {
    						fill: rgba($pink, 0.5);
    						stroke-width: 0;
    					}
    				}
    
    				&:active {
    					path {
    						fill: $pink;
    						stroke-width: 0;
    					}
    				}
    			}
    
    			&:where(:has(.svgHeart--filled)) {
    				path {
    					transition: all 100ms;
    				}
    
    				&:hover, &:focus {
    					path {
    						fill: rgba($pink, 0.5);
    						stroke-width: 0;
    					}
    				}
    
    				&:active {
    					path {
    						fill: rgba(white, 0);
    						stroke-width: 2;
    					}
    				}
    			}
    		}
    	}
    }
    
  • URL: /components/raw/icon/_icons.scss
  • Filesystem Path: web/themes/custom/um-ssw/components/icon/_icons.scss
  • Size: 2.1 KB