on master help sign in
Add flattr button, update css a bit
commit1539e8fc7193e3fc8c753cad880f481edb3fafd5 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateWed 22 Feb 2012, 14:12 (15 years ago) parent1bcc9df
3 files changed+29−39
web/css/default.css+24−17 web/sidebar.markdown−2 web/templates/default.html+5−20
web/css/default.css+24−17
@@ -1,10 +1,10 @@
11html {
2− padding: 0px;
3− margin: 0px;
42 background-color: white;
53 color: black;
64 font-family: sans-serif;
7− line-height: 160%;
5+ line-height: 140%;
6+ margin: 0px;
7+ padding: 0px;
88}
99
1010body {
@@ -34,17 +34,26 @@ div#sidebar {
3434 margin-right: 30px;
3535 width: 160px;
3636 float: left;
37− text-align: right;
37+}
38+
39+div#sidebar h1 {
40+ clear: both;
41+ float: right;
3842}
3943
4044div#sidebar a {
45+ clear: both;
4146 display: block;
42− font-size: 110%;
43− text-decoration: none;
47+ float: right;
4448 margin-bottom: 10px;
49+ text-decoration: none;
4550 text-transform: uppercase;
4651}
4752
53+div#sidebar img {
54+ margin: 0px;
55+}
56+
4857div#content {
4958 width: 670px;
5059 float: right;
@@ -57,16 +66,23 @@ div#footer {
5766 text-align: center;
5867}
5968
69+p {
70+ padding: 0px;
71+ margin: 10px 0px 10px 0px;
72+}
73+
6074a {
6175 color: black;
6276}
6377
6478h1 {
6579 font-size: 20px;
80+ margin: 24px 0px 16px 0px;
6681}
6782
6883h2 {
6984 font-size: 18px;
85+ margin: 24px 0px 16px 0px;
7086}
7187
7288h3 {
@@ -81,19 +97,10 @@ h1 a, h2 a, h3 a {
8197 text-decoration: none;
8298}
8399
84−div.column {
85− width: 50%;
86− float: left;
87−}
88−
89−div.column p {
90− padding-right: 15px;
91−}
92−
93100img {
94− display: block;
95− margin: 10px auto 10px auto;
96101 border: none;
102+ display: block;
103+ margin: 6px auto 30px auto;
97104}
98105
99106ul {
web/sidebar.markdown−2
@@ -1,5 +1,3 @@
1−# Navigation
2−
31[home](/index.html)
42[philosophy](/philosophy.html)
53[about](/about.html)
web/templates/default.html+5−20
@@ -13,22 +13,6 @@
1313 <!-- Metadata. -->
1414 <meta name="keywords" content="hakyll,static site generator,static,site,generator,haskell,blog"/>
1515 <meta name="description" content="Hakyll - A Static Site Generator in Haskell."/>
16−
17− <!-- Flattr JS -->
18− <!--
19− <script type="text/javascript">
20− /* <![CDATA[ */
21− (function() {
22− var s = document.createElement('script'), t =
23− document.getElementsByTagName('script')[0];
24− s.type = 'text/javascript';
25− s.async = true;
26− s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
27− t.parentNode.insertBefore(s, t);
28− })();
29− /* ]]> */
30− </script>
31− -->
3216 </head>
3317 <body>
3418 <div id="main">
@@ -38,13 +22,14 @@
3822 </div>
3923 <!-- Sidebar. -->
4024 <div id="sidebar">
25+ <h1>Navigation</h1>
4126 $sidebar$
4227
4328 <!-- Flattr button -->
44− <!--
45− <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://jaspervdj.be/hakyll"></a>
46− <noscript><a href="http://flattr.com/thing/291889/Hakyll" target="_blank"> <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
47− -->
29+ <h1>Donate</h1>
30+ <a href="http://flattr.com/thing/291889/Hakyll" target="_blank">
31+ <img src="http://api.flattr.com/button/flattr-badge-large.png"
32+ alt="Flattr this" title="Flattr this" border="0" /></a>
4833 </div>
4934
5035 <div id="content">