-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #396 from assafelovic/feature/pdf_style
added pdf stylying
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
body { | ||
font-family: 'Libre Baskerville', serif; | ||
font-size: 12pt; /* standard size for academic papers */ | ||
line-height: 1.6; /* for readability */ | ||
color: #333; /* softer on the eyes than black */ | ||
background-color: #fff; /* white background */ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
font-family: 'Libre Baskerville', serif; | ||
color: #000; /* darker than the body text */ | ||
margin-top: 1em; /* space above headers */ | ||
} | ||
|
||
h1 { | ||
font-size: 2em; /* make h1 twice the size of the body text */ | ||
} | ||
|
||
h2 { | ||
font-size: 1.5em; | ||
} | ||
|
||
/* Add some space between paragraphs */ | ||
p { | ||
margin-bottom: 1em; | ||
} | ||
|
||
/* Style for blockquotes, often used in academic papers */ | ||
blockquote { | ||
font-style: italic; | ||
margin: 1em 0; | ||
padding: 1em; | ||
background-color: #f9f9f9; /* a light grey background */ | ||
} | ||
|
||
/* You might want to style tables, figures, etc. too */ | ||
table { | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
|
||
table, th, td { | ||
border: 1px solid #ddd; | ||
text-align: left; | ||
padding: 8px; | ||
} | ||
|
||
th { | ||
background-color: #f2f2f2; | ||
color: black; | ||
} |