(svg: string, width: number, height: number, selector: string)
| 27 | } |
| 28 | |
| 29 | function getSVGImageCSS(svg: string, width: number, height: number, selector: string) { |
| 30 | return multiline( |
| 31 | `${selector} {`, |
| 32 | ` background-image: url("${svgToDataURL(svg)}");`, |
| 33 | ' background-position: center;', |
| 34 | ' background-repeat: no-repeat;', |
| 35 | ' background-size: cover;', |
| 36 | ' display: inline-block;', |
| 37 | ` height: ${height}px;`, |
| 38 | ` width: ${width}px;`, |
| 39 | '}', |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | const images = { |
| 44 | darkIcon: multiline( |
no test coverage detected