Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed style again

  • Loading branch information...
commit 48c4851f734ea92e54e1f7b5c3bd96bd8fb3342a 1 parent 6385492
@mdipierro authored
Showing with 15 additions and 10 deletions.
  1. +7 −2 controllers/default.py
  2. +8 −8 views/default/chapter.html
View
9 controllers/default.py
@@ -111,9 +111,14 @@ def search():
if k>=0:
snippet = data[data.rfind('\n\n',0,k)+1:data.find('\n\n',k)].strip()
results.append((chapter[0],chapter[1],convert2html(book_id,snippet)))
- content = CAT(*[DIV(H2(A(chapter[1],_href=URL('chapter',args=(book_id,chapter[0])))),
+ content = CAT(*[DIV(H2(A(chapter[1],
+ _href=URL('chapter',
+ vars=dict(search=search),
+ args=(book_id,chapter[0])))),
chapter[2],BR(),
- A('more',_href=URL('chapter',args=(book_id,chapter[0])),_class="btn"))
+ A('more',_href=URL('chapter',
+ vars=dict(search=search),
+ args=(book_id,chapter[0])),_class="btn"))
for chapter in results])
if not results:
response.flash = "no results"
View
16 views/default/chapter.html
@@ -10,12 +10,12 @@
{{extend 'layout.html'}}
<style>
.highlight {background-color: yellow}
-.article h1 { font-size: 32px;}
-.article h2 { font-size: 28px;}
-.article h3 { font-size: 24px;}
-.article h4 { font-size: 20px;}
-.article h5 { font-size: 16px;}
-.article h6 { font-size: 12px;}
+.article h1 { font-size: 32px; padding-top: 1em}
+.article h2 { font-size: 28px; padding-top: 1em}
+.article h3 { font-size: 24px; padding-top: 1em}
+.article h4 { font-size: 20px; padding-top: 1em}
+.article h5 { font-size: 16px; padding-top: 1em}
+.article h6 { font-size: 12px; padding-top: 1em}
.article img {padding-left: 30px; }
.article p, .article li {text-align: justify;margin-bottom:0.5em;}
@@ -23,8 +23,8 @@
.article ul {margin-left: 2em;}
.inxx { background-color: #999999; color: white; position: absolute; right: -100px; white-space: nowrap; font-size: 0.8em; padding: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;}
.article h1 code, .article h2 code, .article h3 code, .article h4 code, .article h5 code, .article h6 code {
- display: block;
- color : #333333;
+ display: in-line block;
+ color : inherit;
border: 0px;
font-size: inherit;
background: transparent;
Please sign in to comment.
Something went wrong with that request. Please try again.