From 2cd7e796c7e07cdfd052afbb9d35a4ded3782ef1 Mon Sep 17 00:00:00 2001 From: Bernardo Innocenti Date: Thu, 4 Oct 2007 18:54:34 +0200 Subject: [PATCH] Less visible anchors to headings. --- geekigeeki.css | 16 ++++++++++++++++ geekigeeki.py | 6 ++++-- 2 files changed, 20 insertions(+), 2 deletions(-) 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 '
' % (script_name(), self.page_name) print '' % (self.page_name) - print """""" % (preview or self.get_raw_body()) + print """""" % (preview or self.get_raw_body()) print """
-- 2.25.1