# HG changeset patch # User Guido Berhoerster # Date 1410729157 -7200 # Node ID a1a934adff8dd90bd4a17209b36419937731e881 # Parent e9ad4c625b7ab079f8b7508ff16fc75e8b21df7a Add support for favicons diff -r e9ad4c625b7a -r a1a934adff8d .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sun Sep 14 23:12:37 2014 +0200 @@ -0,0 +1,3 @@ +syntax: regexp + +(? +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +SCOUR := scour +XMLLINT := xmllint + +SVGIMAGES := missing-favicon.svg + +.DEFAULT_TARGET = all + +.PHONY: all clean clobber + +all: $(SVGIMAGES) + +%.svg: %.src.svg + $(SCOUR) --quiet -i $< --create-groups --enable-id-stripping \ + --enable-comment-stripping --remove-metadata \ + --no-renderer-workaround --strip-xml-prolog --enable-viewboxing \ + --set-precision=5 | $(XMLLINT) --format --noblanks --output $@ - + +clean: + rm -f $(SVGIMAGES) + +clobber: clean diff -r e9ad4c625b7a -r a1a934adff8d booket.css --- a/booket.css Wed Sep 10 19:45:23 2014 +0200 +++ b/booket.css Sun Sep 14 23:12:37 2014 +0200 @@ -63,6 +63,10 @@ white-space: nowrap; } +img { + border: none; +} + h1 { font-size: 2em; margin: .67em 0 @@ -130,6 +134,11 @@ margin: 1em 0 0 0; } +form.bookmark-editor-form img.bookmark-favicon { + display: block; + padding: 1px 0; +} + #bookmarklet, #keyboard-shortcuts { float: right; diff -r e9ad4c625b7a -r a1a934adff8d booket.html --- a/booket.html Wed Sep 10 19:45:23 2014 +0200 +++ b/booket.html Sun Sep 14 23:12:37 2014 +0200 @@ -51,6 +51,9 @@ name="url" size="60" placeholder="http://example.com/"> +
@@ -144,7 +147,8 @@