[FM Discuss] default css

James Simmons nicestep at gmail.com
Mon Jan 10 14:45:23 PST 2011


Adam,

I think the body text font is too small for a printed book.  My own
style sheet is in the blog post I did awhile back.  Other than that
you've made some worthwhile improvements.

This is the sample I created with your style sheet:

http://objavi.flossmanuals.net/books/makeyourownsugaractivities-en-2011.01.10-22.45.26.pdf

James Simmons


On Mon, Jan 10, 2011 at 12:49 PM, adam hyde <adam at flossmanuals.net> wrote:
> hi,
>
> I want to change the default FM css to the following...any comments
> welcome...(you can try it from the export tab in any book...choose
> 'advanced options' and custom css, then paste it into the text field
> that appears)...
>
> -------------------
>
>
> div#PageBreak {
>  height:0px !important;
> }
>
> body {
>  background: #fff;
>  color: #000;
>  font-family: "fontin sans";
>  font-size: 10.2pt;
> }
>
> p {
>  /*text-indent:15px;*/
>  /* text-align: justify;*/
>  /* white-space:pre-line; */
>  page-break-inside:avoid;
>  font-size: 10.2pt;
> }
>
>
> div.page-footer .page {
>  font-size: 8pt;
> }
>
> a{
>  color: #000;
>  text-decoration: none;
>  font-style: Italics;
>  border-bottom: dotted 1px #777;
> }
>
> h1 {
>  font-size: 23pt;
>  page-break-after: avoid;
>  line-height:36pt;
>  page-break-before: always;
> }
>
> h2  {
>  font-size: 15pt;
>  page-break-after: avoid;
>  line-height:24pt;
> margin-bottom:-12pt;
> }
>
> h3 {
>  font-size: 12pt;
>  page-break-after: avoid;
>  line-height:24pt;
> margin-bottom:-12pt;
> }
>
>
> div.chapter-number {
>  display:none;
> }
>
> div.captionBox p{
>  font-size: 8pt;
>  font-style: italic;
> }
>
> ul, ol, blockquote{
>  page-break-inside: auto;
> }
>
>
> .page-break{
>  page-break-before: always;
>  height: 7em;
>  display: block;
>  border:0;
> }
>
> div.objavi-subsection{
>  page-break-before:always;
>  page-break-after: auto;
> }
>
> .unseen{
>  z-index: -66;
>  margin-left: -1000pt;
> }
>
> .objavi-chapter{
>  color: #000;
> }
>
> h1 .initial{
>  color: #000;
>  font-size: 1.6em;
>  font-weight: normal;
> }
>
> img-right{
>  float: right;
>  margin-left: 8pt;
> }
>
> p.caption{
>  font-size: 0.8em;
>  margin: 0;
> }
>
> .objavi-subsection{
>  display: block;
>  page-break-before: always;
> /*  page-break-after: always;*/
> /*  text-transform: uppercase; */
>  font-size: 20pt;
> }
>
> body > .objavi-subsection:first-child,
> body div#chapter-1 .objavi-subsection:first-child{
>  page-break-before: avoid;
> }
>
> .objavi-subsection .initial {
>  font-size: 1em;
>  color: #000;
> }
>
> .objavi-subsection-heading{
>  font-size: 36pt;
>  font-weight: bold;
> }
>
>
> /*h1.first-heading {
>  page-break-before: avoid;
> }*/
>
>
> h1.frontpage{
>  margin-top: 70%;
>  font-size: 20pt;
>  text-align: center;
>  page-break-after: always;
>  page-break-before: avoid;
>  max-width: 700pt;
>  font-weight: normal;
> }
>
> div.copyright{
>  padding: 1em;
> }
>
>
> /* TOC ******************************/
> table {
>  float: none;
> }
>
> table.toc {
>  /*border: 1pt dotted #999;*/
>  width: 95%;
>
> }
>
> table.toc td{
>  vertical-align:top
>  padding-left: 0.5em;
> }
>
> td.chapter {
>  padding: 0 0.5em;
>  text-align: right;
> }
>
> table.toc td.pagenumber {
>  text-align: right;
>  vertical-align:bottom;
> }
>
> td.section {
>  padding-top: 1.1em;
>  font-weight: bold;
> }
> /* End TOC **************************/
>
>
>
> pre, code, tt {
>  font-family: "Courier", "Courier New", monospace;
>  font-size: 9.8pt;
> }
>
>
> pre {
>  max-width:620px;
>  /*overflow: hidden;*/
>  white-space: pre-wrap;       /* css-3 */
>  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
>  white-space: -pre-wrap;      /* Opera 4-6 */
>  white-space: -o-pre-wrap;    /* Opera 7 */
>  word-wrap: break-word;       /* Internet Explorer 5.5+ */
> }
>
> img {
>  max-width:620px;
>  height: auto !important;
>  text-align: center;
> }
>
> table {
>  /*page-break-inside:avoid;*/
> }
>
>
>
> adam
>
>
> --
> vote for booki in the Open Web Awards!
>
> Booki (the latest FM project - http://www.booki.cc - a collaborative
> publishing platform) is in the final of the Open Web Awards.
> Great! We are 1 of 3 projects. If we win we get 5000 which we will use
> to do a code sprint on a tropical island somewhere ;)
>
> please please please register :
> http://www.drumbeat.org/user/register
>
> and vote for us by visiting this page and clicking on the 'vote' link (top right):
> http://www.drumbeat.org/project/open-web-publishing
>
> and pass this around!!!! :)
>
> Adam Hyde
> Founder FLOSS Manuals &
> Booki Project Manager
>
> Contact Information
> German mobile : + 49 177 4935122
> Email : adam at flossmanuals.net
> irc : irc.freenode.net #flossmanuals
>
>
> "Free manuals for free software"
> http://www.flossmanuals.net/about
>
> Free Software for making Free Books
> http://www.booki.cc/
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
>



More information about the Discuss mailing list