Skip to content

Instantly share code, notes, and snippets.

@bulbil
Created July 10, 2020 17:53
Show Gist options
  • Select an option

  • Save bulbil/95aa951415fbef8fb04db22d17cdf7c8 to your computer and use it in GitHub Desktop.

Select an option

Save bulbil/95aa951415fbef8fb04db22d17cdf7c8 to your computer and use it in GitHub Desktop.
/* Typora stylesheet for a simple print cv */
/* based on cv style from https://github.com/bulbil/mdtopdf */
@charset "UTF-8";
@font-face {
font-family: 'Minion Pro';
font-style: normal;
font-weight: normal;
src: url(./cv/MinionPro-Regular.otf);
}
@font-face {
font-family: 'Minion Pro';
font-style: normal;
font-weight: bold;
src: local('MinionPro Bold'), local('MinionPro-Bold'), url(./cv/MinionPro-Bold.otf);
}
@font-face {
font-family: 'Minion Pro';
font-style: italic;
font-weight: normal;
src: local('MinionPro Italic'), local('MinionPro-It'), url(./cv/MinionPro-It.otf);
}
@font-face {
font-family: 'Minion Pro';
font-style: italic;
font-weight: bold;
src: local('MinionPro Bold Italic'), local('MinionPro-BoldIt'), url(./cv/MinionPro-BoldIt.otf);
}
@font-face {
font-family: 'Avenir Next';
src: local('Avenir Next'), local('Avenir Next'), url(./cv/Avenir\ Next.ttc);
}
/* base variables */
:root {
--title-font: "Avenir Next";
--title-letter-spacing: .05rem;
--body-font: "Minion Pro";
--body-font-size: 10pt;
--line-height: 1.2rem;
}
/* for dev purposes */
/* body { width: 8.5in; height:11in;
margin: 1in;
} */
/* page */
header {
/* markup added by pandoc */
display: none;
}
@page {
size: Letter;
margin: .75in;
}
h1 {
string-set: doctitle content();
}
/* base typography */
body {
font-family: var(--body-font);
font-size: var(--body-font-size);
font-variant-numeric: oldstyle-nums;
font-kerning: normal;
}
a {
text-decoration: none;
color: rgba(0,0,0,.5)
}
a:hover {
color: rgba(0,0,0,1)
}
h1, h2, h3, h4, h5 {
font-family: var(--title-font);
page-break-after: avoid;
font-size: .75rem;
}
table, figure {
page-break-inside: avoid;
}
p,li {
line-height: var(--line-height);
}
/* section titles */
h2 {
text-transform: uppercase;
font-weight: bold;
letter-spacing: var(--title-letter-spacing);
}
/* two column section */
ul {
list-style: none;
padding-left: 0;
}
li {
min-height: var(--line-height);
}
li p {
margin-bottom: 0;
}
ul>li>ul>li {
padding-left: 0rem;
}
ul>li>ul>li::before {
content: '· ';
font-weight: bold;
}
/* indented list item */
h2 + ul > li:nth-of-type(even) {
margin-top: -1.2rem;
padding-left: 10em;
}
/* single column section */
h2 + ul:nth-of-type(12) li,
h2 + ul:nth-of-type(13) li {
margin: initial;
padding: initial;
font-family: inherit;
font-weight: inherit;
}
/* right header list */
#write > ul:nth-of-type(1) {
margin: initial;
padding: initial;
font-family: inherit;
font-weight: inherit;
text-align: right;
}
#write > ul:nth-of-type(1) li:first-of-type {
font-family: var(--title-font);
text-transform: uppercase;
font-weight: bold;
}
#write > ul li a {
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment