// ========================================================================== // Objects / SVG Icons // ========================================================================== // Markup // // 1. If icon is accessible and has a title // 2. If icon is decorative // // // // // Global styles for icones // ========================================================================== .o-icon { display: inline-block; vertical-align: middle; svg { --icon-height: calc(var(--icon-width) * math.div(1, (var(--icon-ratio)))); display: block; width: var(--icon-width); height: var(--icon-height); fill: currentColor; } } // SVG sizes // ========================================================================== // // Logo // .svg-logo { // --icon-width: #{rem(100px)}; // --icon-ratio: math.div(20, 30); // width/height based on svg viewBox // // Sizes // .o-icon.-big & { // --icon-width: #{rem(200px)}; // } // }