Skip to content

Commit

Permalink
Better HTML output styles, based of @rtomayko's bare styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Mar 19, 2011
1 parent 59aff59 commit 347354f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 73 deletions.
2 changes: 1 addition & 1 deletion lib/git-scribe/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def do_html
info "GENERATING HTML"
# TODO: look for custom stylesheets
styledir = local('stylesheets')
cmd = "asciidoc -a stylesdir=#{styledir} -a theme=handbookish #{BOOK_FILE}"
cmd = "asciidoc -a stylesdir=#{styledir} -a theme=scribe #{BOOK_FILE}"
if ex(cmd)
@done['html'] == true
'book.html'
Expand Down
File renamed without changes.
90 changes: 18 additions & 72 deletions stylesheets/handbookish.css → stylesheets/scribe.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* BEG */
/* ---------------------------------------------------------------------------
Bare AsciiDoc styles
Ryan Tomayko <r@tomayko.com>
Expand All @@ -8,7 +7,7 @@ body {
font-family:verdana,helvetica,arial,sans-serif;
font-size:81.25%; /* 13px */
line-height:1.538; /* 20px */
margin:40px 50px;
margin:40px auto 50px auto;
max-width:53.8461538462em; /* 790px */
color:#333;
}
Expand All @@ -32,7 +31,9 @@ p, ul, ol, dl {
margin:10px 0
}

dl { }
dl {
margin-left:40px
}

dt {
font-weight:normal;
Expand All @@ -46,39 +47,35 @@ h1, h2, h3, h4, h5 {
}

h1 {
font-size:30px;
font-size:40px;
line-height:1.428;
margin:20px 0;
}

h2 {
font-size:23px;
font-size:30px;
line-height:1.36363636; /* repeating, of course */
margin:20px 0;
margin:60px 0 20px 0;
}

h2 + .sectionbody {}

h3 {
font-size:18px;
font-size:24px;
line-height:1.1;
margin:30px 0 10px 0;
}

h4 {
font-size:13px;
font-weight:bold;
line-height:1.538;
font-size:18px;
line-height:1.1;
margin:20px 0 5px 0;
}

h5 {
font-size:13px;
font-style:italic;
line-height:1.538;
}

pre {
font-size:larger;
line-height:1.1;
}

#header {
Expand All @@ -88,9 +85,9 @@ pre {

#header h1 { margin-bottom:0 }


.title, .sidebar-title {
font-weight:normal;
color:#000;
margin-bottom:0;
}

Expand All @@ -112,6 +109,10 @@ pre {
color:#888;
}

.listingblock {
margin: 13px 0;
}

.listingblock .content {
border:1px solid silver;
background:#eee;
Expand Down Expand Up @@ -173,59 +174,4 @@ pre {
#author {
color:#000;
text-transform:uppercase
}

/* vim: set ft=css ts=4 sw=4 noexpandtab: */

/* END @import url(bare.css); */

/* ---------------------------------------------------------------------------
FreeBSD AsciiDoc Theme
Ryan Tomayko <r@tomayko.com>
Based on The FreeBSD Handbook and various other FreeBSD documenration.
--------------------------------------------------------------------------- */

body {
font-family:verdana,helvetica,arial,sans-serif;
font-size:100%;
color:#000;
}

tt { color:#007A00 }
pre tt { color:#000 }

dt { color:#000 }

h1, h2, h3, h4, h5 {
font-family:'lucida grande',helvetica,verdana,sans-serif;
color:#900;
font-weight:bold;
}

#header {
text-align:left;
}
#header h1 { margin-bottom:40px }

h1 {
font-size:36px;
line-height:1;
margin:40px 0;
}

h2 {
font-size:28px;
line-height:1;
margin:30px 0 20px 0;
}

.sectionbody {
margin-left:30px;
}

pre {
background:#EEE;
}

/* vim: set ft=css ts=4 sw=4 noexpandtab: */
}

0 comments on commit 347354f

Please sign in to comment.