Overview

The "bare" theme is meant as a starting point for other themes. It includes a basic level of structural and typographic styling but tries to remain otherwise vanilla in its visual appearance. The manpage styles are based on the default theme included with the Bwana manpage reader for MacOS X.

Article Sample | Manpage Sample | bare.css | bare-manpage.css

Usage

Using the bare theme for articles:

$ asciidoc -a theme=bare -o document.html document.txt

Using the bare theme for manpages:

$ asciidoc -a theme=bare -d manpage -o program.1.html program.1.txt

Files

bare.css

/* ---------------------------------------------------------------------------
   Bare AsciiDoc styles
   Ryan Tomayko <r@tomayko.com>
--------------------------------------------------------------------------- */

body {
    font-family:verdana,helvetica,arial,sans-serif;
    font-size:81.25%;   /* 13px */
    line-height:1.538;  /* 20px */
    margin:40px 50px;
    max-width:53.8461538462em; /* 790px */
    color:#333;
}

em {
    font-style:italic;
}

strong {
    font-weight:bold;
    color:#000;
}

tt {
    font-family:consolas, 'lucida console', 'bitstream vera sans mono',
               'courier new', monospace;
    color:#000;
}

p, ul, ol, dl {
    margin:10px 0
}

dl {
    margin-left:40px
}

dt {
    font-weight:normal;
    color:#000;
}

h1, h2, h3, h4, h5 {
    font-family:'lucida grande',georgia,verdana,helvetica,arial,sans-serif;
    font-weight:normal;
    color:#000;
}

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

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

h2 + .sectionbody {}

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

h4 {
    font-size:13px;
    font-weight:bold;
    line-height:1.538;
}

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

pre {
    font-size:larger;
}

#header {
    text-align:center;
    margin-bottom:30px;
}

#header h1 { margin-bottom:0 }


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

.admonitionblock .title {
    font-weight:bold;
}

.admonitionblock {
    margin:30px 0px;
    color:#555;
}

.admonitionblock td.icon {
    width:30px;
    padding-right:20px;
    padding-left:20px;
    text-transform:uppercase;
    font-weight:bold;
    color:#888;
}

.listingblock .content {
    border:1px solid silver;
    background:#eee;
    padding:5px;
}

.listingblock .content pre {
    margin:0;
}

.literalblock .content {
    margin-left:40px;
}

.verseblock .content {
    white-space:pre
}

.sidebarblock .sidebar-content {
    border:1px solid silver;
    background:#FFFFEE;
    padding:0 10px;
    color:#222;
    font-size:smaller;
    line-height:1.5;
}

.sidebar-title {
    margin:10px 0;
    font-weight:bold;
    color:#442;
}

.quoteblock-content {
    font-style:italic;
    color:#444;
    margin-left:40px;
}

.quoteblock-content .attribution {
    font-style:normal;
    text-align:right;
    color:#000;
}

.exampleblock-content *:first-child { margin-top:0 }
.exampleblock-content {
    border-left:2px solid silver;
    padding-left:8px;
}

#footer {
    font-size:11px;
    margin-top:40px;
    border-top:1px solid silver;
    color:#555;
}

#author {
    color:#000;
    text-transform:uppercase
}

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

bare-manpage.css

/* ---------------------------------------------------------------------------
   Bare AsciiDoc Styles (Manpage Overlay)
   Ryan Tomayko <r@tomayko.com>
--------------------------------------------------------------------------- */

body {
  max-width:44em;
  margin:40px 20px;
  color:#444;
  text-align:justify;
}

body,h2,tt {
    font-family:consolas,'lucida console','bitstream vera sans mono',
               'courier new', monospace;
}

#header {
    text-align:left;
    margin-bottom:auto;
}

h1, h2 {
    font-weight:bold;
}

/* variable / argument */
em {
  font-style:italic;
  font-weight:normal;
  color:#000;
  text-decoration:none;
}

/* concrete command / option name / file */
tt {
  font-style:normal;
  font-weight:normal;
  font-weight:bold;
  color:#000;
}

/* concrete value */
strong {
  font-style:normal;
  font-weight:normal;
  text-decoration:underline;
  color:#000;
}

div.sectionbody { margin-left:50px }
div.sectionbody p:first-child,
div.sectionbody dl:first-child
{ margin-top:0 }

dl {
    margin-left:0px;
}

dt {
    font-weight:bold;
    color:#000;
}

dd p:first-child {
    margin-top:0;
}

h1 {
  text-transform:uppercase;
  font-size:22px;
  line-height:1.25;
  text-align:center;
}

h2 {
  font-size:16px;
  line-height:1.25;                      /* 20px baseline */
  margin:20px 0 0 0;
}

#footer {
  font-family:verdana,helvetica,sans-serif;
}

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

More Themes

About AsciiDoc Themes