tchanged footer to be less visible (and removed div spacer) - monochromatic - monochromatic blog: http://blog.z3bra.org
HTML git clone git://z3bra.org/monochromatic
DIR Log
DIR Files
DIR Refs
---
DIR commit 2a039c60bf8aa5b7774895e7a95f6056fd5a6744
DIR parent 370abc6214d8728b261fc073f495eec120325500
HTML Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Fri, 9 Aug 2013 00:12:16 +0200
changed footer to be less visible (and removed div spacer)
Diffstat:
M 2013/08/test-your-css.html | 3 ++-
M about.html | 3 ++-
M css/monochrome.css | 8 +++++++-
M foot.template | 5 ++---
M index.html | 3 ++-
M update.sh | 4 ++--
6 files changed, 17 insertions(+), 9 deletions(-)
---
DIR diff --git a/2013/08/test-your-css.html b/2013/08/test-your-css.html
t@@ -106,8 +106,9 @@ main (<span class="Type">int</span> argc, <span class="Type">char</span> **argv)
</div>
<div id='blank'></div>
<!-- Footer {{{ -->
+ <!-- footer {{{ -->
<footer>
- © 2013 WTFPL — <a href='http://www.wtfpl.net/about/'>Do What the Fuck You Want to Public License</a>
+ © 2013 wtfpl — <a href='http://www.wtfpl.net/about/'>do what the fuck you want to public license</a>
— contact : <<a href='mailto:willy@mailoo.org'>willy at mailoo dot org</a>>
</footer>
<!-- }}} -->
DIR diff --git a/about.html b/about.html
t@@ -62,8 +62,9 @@
</div>
<div id='blank'></div>
<!-- Footer {{{ -->
+ <!-- footer {{{ -->
<footer>
- © 2013 WTFPL — <a href='http://www.wtfpl.net/about/'>Do What the Fuck You Want to Public License</a>
+ © 2013 wtfpl — <a href='http://www.wtfpl.net/about/'>do what the fuck you want to public license</a>
— contact : <<a href='mailto:willy@mailoo.org'>willy at mailoo dot org</a>>
</footer>
<!-- }}} -->
DIR diff --git a/css/monochrome.css b/css/monochrome.css
t@@ -35,13 +35,19 @@ hr {
box-shadow: 0px 1px 1px #000;
}
-header, footer {
+header {
background-color: #111;
padding: 10px;
}
footer {
+ font-size:60%;
text-align: center;
+ margin: auto;
+ width: 70%;
+ max-width: 700px;
+ border-top:1px solid #333;
+ padding: 10px;
}
article {
DIR diff --git a/foot.template b/foot.template
t@@ -1,7 +1,6 @@
- <div id='blank'></div>
- <!-- Footer {{{ -->
+ <!-- footer {{{ -->
<footer>
- © 2013 WTFPL — <a href='http://www.wtfpl.net/about/'>Do What the Fuck You Want to Public License</a>
+ © 2013 wtfpl — <a href='http://www.wtfpl.net/about/'>do what the fuck you want to public license</a>
— contact : <<a href='mailto:willy@mailoo.org'>willy at mailoo dot org</a>>
</footer>
<!-- }}} -->
DIR diff --git a/index.html b/index.html
t@@ -31,8 +31,9 @@
</div>
<div id='blank'></div>
<!-- Footer {{{ -->
+ <!-- footer {{{ -->
<footer>
- © 2013 WTFPL — <a href='http://www.wtfpl.net/about/'>Do What the Fuck You Want to Public License</a>
+ © 2013 wtfpl — <a href='http://www.wtfpl.net/about/'>do what the fuck you want to public license</a>
— contact : <<a href='mailto:willy@mailoo.org'>willy at mailoo dot org</a>>
</footer>
<!-- }}} -->
DIR diff --git a/update.sh b/update.sh
t@@ -1,9 +1,9 @@
#!/bin/bash
for file in $(find . -name '*.html'); do
- if [[ -n "$(cat $file|tr -d '\n' |grep -E '</header>.*<footer')" ]]; then
+ if [[ -n "$(cat $file|tr -d '\n' |grep -E '</header>.*<footer>')" ]]; then
cat head.template > buffer.html
- sed '1,/<\/header>/d;/<div id=.blank.>/,$d' $file >> buffer.html
+ sed '1,/<\/header>/d;/<footer>/,$d' $file >> buffer.html
cat foot.template >> buffer.html
mv buffer.html $file