From dafe4b4e40e7a4d7c9719aecd73f5fc5f80c7207 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sat, 25 Jul 2015 19:45:24 -0700 Subject: narrow theme: 200x200 icon => 150x150 200x200 icon wastes too much valuable screen estate on a smart phone. --- source/css/theme-narrow.css | 11 ++++++----- source/img/README.rst | 2 +- source/img/icon-150.png | Bin 0 -> 10234 bytes source/img/icon-300.png | Bin 0 -> 21348 bytes 4 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 source/img/icon-150.png create mode 100644 source/img/icon-300.png diff --git a/source/css/theme-narrow.css b/source/css/theme-narrow.css index 90735546..1610528b 100644 --- a/source/css/theme-narrow.css +++ b/source/css/theme-narrow.css @@ -12,11 +12,12 @@ nav div { } nav div .blog-icon { - height: 200px; - width: 200px; - background-image: url("/img/icon-200.png"); - background-image: -webkit-image-set( url("/img/icon-200.png") 1x, url("/img/icon-400.png") 2x ); - background-size: 200px; + padding: 0; + height: 150px; + width: 150px; + background-image: url("/img/icon-150.png"); + background-image: -webkit-image-set( url("/img/icon-150.png") 1x, url("/img/icon-300.png") 2x ); + background-size: 150px; } nav div.title, div.author { diff --git a/source/img/README.rst b/source/img/README.rst index 9e07d93a..f8dceeee 100644 --- a/source/img/README.rst +++ b/source/img/README.rst @@ -3,7 +3,7 @@ The icon and favicon files are generated via the following commands: :: cd source/img xelatex icon.tex xelatex icon-square.tex - for size in 100 200 400 2048; do convert icon.pdf -density 400 -resize $sizex$size icon-$size.png; done + for size in 100 150 200 300 400 2048; do convert icon.pdf -density 400 -resize $sizex$size icon-$size.png; done for size in 16 32 48 144; do convert icon.pdf -density 400 -resize $sizex$size favicon-$size.png; done convert icon-square.pdf -density 400 -resize 152x152 apple-touch-icon-152.png optipng favicon-*.png icon-*.png apple-touch-icon-152.png diff --git a/source/img/icon-150.png b/source/img/icon-150.png new file mode 100644 index 00000000..effbb89d Binary files /dev/null and b/source/img/icon-150.png differ diff --git a/source/img/icon-300.png b/source/img/icon-300.png new file mode 100644 index 00000000..c3bd33ad Binary files /dev/null and b/source/img/icon-300.png differ -- cgit v1.2.1