UNPKG

1.04 kBSCSSView Raw
1// Name: SVG
2// Description: Component to style SVGs
3//
4// Component: `uk-svg`
5//
6// ========================================================================
7
8
9/* ========================================================================
10 Component: SVG
11 ========================================================================== */
12
13/*
14 * 1. Fill all SVG elements with the current text color if no `fill` attribute is set
15 * 2. Set the fill and stroke color of all SVG elements to the current text color
16 */
17
18/* 1 */
19.uk-svg,
20/* 2 */
21.uk-svg:not(.uk-preserve) [fill*='#']:not(.uk-preserve) { fill: currentcolor; }
22.uk-svg:not(.uk-preserve) [stroke*='#']:not(.uk-preserve) { stroke: currentcolor; }
23
24/*
25 * Fix Firefox blurry SVG rendering: https://bugzilla.mozilla.org/show_bug.cgi?id=1046835
26 */
27
28.uk-svg { transform: translate(0,0); }
29
30
31// Hooks
32// ========================================================================
33
34@if(mixin-exists(hook-svg-misc)) {@include hook-svg-misc();}
35
36// @mixin hook-svg-misc(){}