1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-22 16:18:11 +00:00
bitcoinbook/theme/pdf/pdf.css

145 lines
2.9 KiB
CSS
Raw Normal View History

@charset "UTF-8";
/*--------Put Your Custom CSS Rules Below--------*/
/*--- This oneoff overrides the code in https://github.com/oreillymedia/<name_of_theme>/blob/master/pdf/pdf.css---*/
nav[data-type="toc"] > h1 {
margin-bottom: 1.2in;
}
pre[data-type="programlisting"] {
text-align: left;
}
2023-10-03 16:48:01 +00:00
/* roman (reverse emphasis) on varlist terms*/
.plain {
font-style: normal;
}
2023-10-24 14:58:16 +00:00
td.fakeheader {
font-family: "MyriadPro-SemiboldCond" !important;
font-weight: 600 !important;
color: White !important;
background-color: Black !important;
border: 0pt solid cmyk(0%,0%,0%,100%);
}
2023-10-03 16:48:01 +00:00
/*hack to align sidebars to top of page*/
.less_space {margin-top: 0 !important;}
.less_space_heading > h2 {margin-top: 0 !important;}
.less_space_h1 > h1 {margin-top: 0 !important;}
/*Image resizing*/
figure.smallerninetyfive img { width: 95%; }
figure.smallerninety img { width: 90%; }
figure.smallereightyfive img { width: 85%; }
figure.smallereighty img { width: 80%; }
figure.smallerseventyfive img { width: 75%; }
figure.smallerseventy img { width: 70%; }
figure.smallersixtyfive img { width: 65%; }
figure.smallersixty img { width: 60%; }
figure.smallerfiftyfive img { width: 55%; }
figure.smallerfifty img { width: 50%; }
figure.smallerfourtyfive img { width: 45%; }
figure.smallerfourty img { width: 40%; }
figure.smallerthirtyfive img { width: 35%; }
figure.smallerthirty img { width: 30%; }
/*class to adjust the space of code listings to fix page break*/
pre.c_less_space {
margin: 0 0 4pt 17pt;
line-height: 110%;
}
pre.c_less_space2 {
margin: 0 0 4pt 17pt;
line-height: 105%;
}
2023-10-09 19:29:24 +00:00
/*--left align paragraph for credits--*/
p.left-align{
text-align: left;
}
2023-10-09 15:56:00 +00:00
/*----Uncomment to temporarily turn on code-eyballer highlighting (make sure to recomment after you build)
pre {
background-color: yellow;
2023-10-09 15:56:00 +00:00
}---*/
/*----Uncomment to turn on automatic code wrapping
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
dl.test {
text-align: left;
margin-left: 64.79pt;
}----*/
/* two column list */
ul.twocolumn {
column-count: 2;
column-gap: 15pt;
column-fill: balance;
widows: 0;
orphans: 0;
}
/*----Uncomment to change the TOC start page (set
the number to one page _after_ the one you want;
so 6 to start on v, 8 to start on vii, etc.)
@page toc:first {
counter-reset: page 6;
}
----*/
/*----Uncomment to fix a bad break in the title
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] h1 {
padding-left: 1.5in;
}
----*/
/*----Uncomment to fix a bad break in the subtitle
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] h2 {
padding-left: 1in;
}
----*/
/*----Uncomment to fix a bad break in the author names
(increase padding value to push down, decrease
value to pull up)
section[data-type="titlepage"] p.author {
padding-left: 3in;
}
----*/