From b62a282b75f29962ab1f3b31a19d6e56338147ec Mon Sep 17 00:00:00 2001 From: Eirik Backer Date: Tue, 21 May 2019 11:56:39 +0200 Subject: [PATCH] Add circle logos with color (#101) --- lib/nrk-logo-nrk-nyheter-symbol--blackwhite.svg | 1 + lib/nrk-logo-nrk-nyheter-symbol--color.svg | 1 + lib/nrk-logo-nrk-nyheter-symbol.svg | 1 + lib/nrk-logo-nrk-sport-symbol--blackwhite.svg | 1 + lib/nrk-logo-nrk-sport-symbol--color.svg | 1 + lib/nrk-logo-nrk-sport-symbol.svg | 1 + lib/nrk-logo-yr--blackwhite.svg | 1 + lib/nrk-logo-yr--color.svg | 1 + lib/nrk-logo-yr.svg | 4 +--- lib/readme.js | 8 ++++++-- 10 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 lib/nrk-logo-nrk-nyheter-symbol--blackwhite.svg create mode 100644 lib/nrk-logo-nrk-nyheter-symbol--color.svg create mode 100644 lib/nrk-logo-nrk-nyheter-symbol.svg create mode 100644 lib/nrk-logo-nrk-sport-symbol--blackwhite.svg create mode 100644 lib/nrk-logo-nrk-sport-symbol--color.svg create mode 100644 lib/nrk-logo-nrk-sport-symbol.svg create mode 100644 lib/nrk-logo-yr--blackwhite.svg create mode 100644 lib/nrk-logo-yr--color.svg diff --git a/lib/nrk-logo-nrk-nyheter-symbol--blackwhite.svg b/lib/nrk-logo-nrk-nyheter-symbol--blackwhite.svg new file mode 100644 index 00000000..d0fb4746 --- /dev/null +++ b/lib/nrk-logo-nrk-nyheter-symbol--blackwhite.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-nrk-nyheter-symbol--color.svg b/lib/nrk-logo-nrk-nyheter-symbol--color.svg new file mode 100644 index 00000000..ff10a11d --- /dev/null +++ b/lib/nrk-logo-nrk-nyheter-symbol--color.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-nrk-nyheter-symbol.svg b/lib/nrk-logo-nrk-nyheter-symbol.svg new file mode 100644 index 00000000..717a2926 --- /dev/null +++ b/lib/nrk-logo-nrk-nyheter-symbol.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-nrk-sport-symbol--blackwhite.svg b/lib/nrk-logo-nrk-sport-symbol--blackwhite.svg new file mode 100644 index 00000000..c3b65a2e --- /dev/null +++ b/lib/nrk-logo-nrk-sport-symbol--blackwhite.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-nrk-sport-symbol--color.svg b/lib/nrk-logo-nrk-sport-symbol--color.svg new file mode 100644 index 00000000..6c54efab --- /dev/null +++ b/lib/nrk-logo-nrk-sport-symbol--color.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-nrk-sport-symbol.svg b/lib/nrk-logo-nrk-sport-symbol.svg new file mode 100644 index 00000000..6dd8ae67 --- /dev/null +++ b/lib/nrk-logo-nrk-sport-symbol.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-yr--blackwhite.svg b/lib/nrk-logo-yr--blackwhite.svg new file mode 100644 index 00000000..f82edea6 --- /dev/null +++ b/lib/nrk-logo-yr--blackwhite.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-yr--color.svg b/lib/nrk-logo-yr--color.svg new file mode 100644 index 00000000..6be56956 --- /dev/null +++ b/lib/nrk-logo-yr--color.svg @@ -0,0 +1 @@ + diff --git a/lib/nrk-logo-yr.svg b/lib/nrk-logo-yr.svg index 428b7e1d..515698f5 100644 --- a/lib/nrk-logo-yr.svg +++ b/lib/nrk-logo-yr.svg @@ -1,3 +1 @@ - - - + diff --git a/lib/readme.js b/lib/readme.js index 65777290..4c9c0bb1 100644 --- a/lib/readme.js +++ b/lib/readme.js @@ -15,12 +15,16 @@ function escapeSVG (data) { // Group icons by type and name setTimeout(function () { - var bgs = { white: 'background: black; padding: 2px', black: 'background: white; padding: 2px' } + var bgs = { + colorwhite: 'background: black; padding: 2px', + colorblack: 'background: white; padding: 2px', + blackwhite: 'background: #ccc; padding: 2px' + } ;[].forEach.call(document.querySelectorAll('symbol'), function (icon) { var type = icon.id.slice(4).split('-')[0] // Without nrk- and state var size = icon.viewBox.baseVal var font = icon.id.indexOf('-logo-') === -1 ? 20 : 10 - var back = bgs[icon.id.split('--color')[1]] || '' + var back = bgs[icon.id.split('--')[1]] || '' var group = GROUPS[type] = GROUPS[type] || [] group.push('
' +