From: Bernardo Innocenti
Date: Thu, 4 Oct 2007 16:54:34 +0000 (+0200)
Subject: Less visible anchors to headings.
X-Git-Tag: v3.0~52
X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2cd7e796c7e07cdfd052afbb9d35a4ded3782ef1;p=geekigeeki.git
Less visible anchors to headings.
---
diff --git a/geekigeeki.css b/geekigeeki.css
index c0e640d..ca69856 100755
--- a/geekigeeki.css
+++ b/geekigeeki.css
@@ -108,6 +108,22 @@ h5 {
padding-left: 5px;
}
+/* Heading anchors */
+.heading:link, .heading:visited {
+ border: none;
+ color: #d7d7d7;
+ font-size: .8em;
+ vertical-align: text-top;
+}
+* > .heading:link, * > .heading:visited {
+ visibility: hidden;
+}
+
+h1:hover .heading, h2:hover .heading, h3:hover .heading,
+h4:hover .heading, h5:hover .heading, h6:hover .heading {
+ visibility: visible;
+}
+
strong.success {
padding-left: 0.1em;
background-color: #22ee22;
diff --git a/geekigeeki.py b/geekigeeki.py
index 12b6b7c..adc7d2a 100755
--- a/geekigeeki.py
+++ b/geekigeeki.py
@@ -1,4 +1,5 @@
#! /usr/bin/env python
+# -*- coding: utf-8 -*-
#
# Copyright 1999, 2000 Martin Pool
# Copyright 2002 Gerardo Poggiali
@@ -355,7 +356,8 @@ class PageFormatter:
else:
self.h_level = len(word) - 1
self.h_cnt += 1
- result = '* ' % (self.h_level, self.h_cnt, self.h_cnt)
+ #abridged = re.sub('[^a-z_]', '', word.lower().replace(' ', '_'))
+ result = '¶ ' % (self.h_level, self.h_cnt, self.h_cnt)
return result
def _br_repl(self, word):
@@ -672,7 +674,7 @@ class Page:
+ '
')
print '