Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new style #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ Any change you want to make to your CV from then on would have to be done on the

## Styling

The included CSS will render your CV in two styles:
s
The included CSS will render your CV in three styles:

1. `kjhealy` the original default, inspired by [kjhealy's vita
template](https://github.com/kjhealy/kjh-vita).
2. `davewhipp` is a tweaked version of `kjhealy`, with bigger fonts and dates
right aligned.
3. `benmeller` is a monochrome version of `davewhipp` with heavier headings
brought vertically inline with the main content.

To change the default style, simply change the variable in the
`_config.yml` file.
Expand Down
214 changes: 214 additions & 0 deletions media/benmeller-print.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

/* end of reset */



body {
font: normal normal 400;
font-size: 11pt;
line-height: 1.2em;
/*also written as... font: normal normal 400 100%/1.5em;*/
font-family: Avenir,Verdana,sans-serif;
/* margin-top: 1em;
margin-left: 1em; */
}

p {
position: relative;
margin-bottom: 1.2em;
margin-right: 0;
width: 82%;
font-weight: 300;
color: #535150;
}

b, strong {
color: #000;
}

code {
font: normal normal;
font-size: 90%;
/*line-height: 1em;*/
font-family: Avenir,Monaco,Menlo,monospace,sans-serif;
color: #ccc;
}

p code {
position: absolute;
text-align: right;
right: -20%;
}


ul {
position: relative;
width: 82%;
margin-bottom: 1.5em;
margin-top: -1em;
}

/*uncomment to get dashes in the list*/
li:before {
content: "-";
position: relative;
left: -0.25em;
}

li {
/*second line indent*/
padding-left: 1.25em;
/* text-indent: -1.25em; */
}

li ul {
position: relative;
left: 0;
width: 82%;
margin-top: 0.25em;
}

h1,h2,h3,h4 {
font-weight: 400;
font-family: Avenir,Cousine,Verdana,sans-serif;
width: 82%;

text-transform: uppercase;
}

h1 {
text-align: left;
font-size: 3em;
line-height: 1.1em;
letter-spacing: 3px;
position: relative;
font-weight: 700;
}

h1+p {
/*subtitle*/
font-style: italic;
font-size: 110%;
}

h2 {
font-size: 1.4em;
margin-top: 2em;
position: relative;
font-weight: 500;
margin-bottom: 1.4em;
}

/* Add black bar under H2 */
h2::before {
content: '';
position: absolute;
left: 0;
top: 1.2em;
height: 15px;
width: 65px;
border-top: 5px solid black;
}

h3 {
font-size: 1em;
line-height: 2em;
position: relative;
font-weight: 500;
}

a {
color: inherit;
text-decoration:none
}

a:hover {
color:#39f
}

div#webaddress > p {
text-transform: uppercase;
}

em {
font-weight: normal;
font-style: italic;
}

strong {
font-weight: bold;
}

#ghbutton {
display: none;
visibility: hidden;
}

#address {
display: none;
}

hr {
border-top: 0.5px solid rgb(66, 66, 66);
}


/* Style for profile image at top. Insert image before H1 */
img {
position: absolute;
right: -22%;
height: 7.5em;
border-radius: 50%;
}

@page {
margin: 8%;
}
Loading