From 2895843a4c698f33dd50da03795c918b6892e504 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 5 May 2015 22:38:16 -0700 Subject: serve the CC icon locally --- source/css/theme.css | 2 +- source/img/.gitattributes | 1 + source/img/README.rst | 5 +++++ source/img/cc-16.png | Bin 0 -> 819 bytes source/img/cc.svg | 27 +++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 source/img/.gitattributes create mode 100644 source/img/cc-16.png create mode 100644 source/img/cc.svg diff --git a/source/css/theme.css b/source/css/theme.css index 220d8e50..645bfe50 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -102,7 +102,7 @@ footer .cc-icon { height: 16px; padding: 0 4px; display: inline-block; - background-image: url("http://mirrors.creativecommons.org/presskit/icons/cc.svg"); + background-image: url("/img/cc-16.png"); background-repeat: no-repeat; background-position: center; background-size: 16px; diff --git a/source/img/.gitattributes b/source/img/.gitattributes new file mode 100644 index 00000000..58da6937 --- /dev/null +++ b/source/img/.gitattributes @@ -0,0 +1 @@ +*.svg binary diff --git a/source/img/README.rst b/source/img/README.rst index 5072d3db..53ca6399 100644 --- a/source/img/README.rst +++ b/source/img/README.rst @@ -14,3 +14,8 @@ The feed icon isn't so easy to create with TikZ (I don't know the necessary para convert feed-256.png -resize 14x14 feed-14.png optipng feed-14.png + +The CreativeCommons icon ``cc.svg`` is pulled from `the official downloads page `_ and converted to 16x16 PNG through:: + + convert cc.svg -resize 16x16 cc-16.png + optipng cc-16.png diff --git a/source/img/cc-16.png b/source/img/cc-16.png new file mode 100644 index 00000000..db746473 Binary files /dev/null and b/source/img/cc-16.png differ diff --git a/source/img/cc.svg b/source/img/cc.svg new file mode 100644 index 00000000..cb08896c --- /dev/null +++ b/source/img/cc.svg @@ -0,0 +1,27 @@ + + + + + + + + + -- cgit v1.2.1