Skip to content

Commit 995d342

Browse files
[setup](build): styles/
Signed-off-by: Ralph Hightower <[email protected]>
1 parent c1e5358 commit 995d342

File tree

2 files changed

+208
-0
lines changed

2 files changed

+208
-0
lines changed

chmduquesne.css

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<style type="text/css">
2+
/*
3+
* Copyright 2013 Christophe-Marie Duquesne <[email protected]>
4+
*
5+
* CSS for making a resume with pandoc. Inspired by moderncv.
6+
*
7+
* This CSS document is delivered to you under the CC BY-SA 3.0 License.
8+
* https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
9+
*/
10+
11+
/* Whole document */
12+
body {
13+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
14+
max-width: 800px;
15+
margin: auto;
16+
background: #FFFFFF;
17+
padding: 10px 10px 10px 10px;
18+
}
19+
20+
/* Title of the resume */
21+
h1 {
22+
font-size: 55px;
23+
color: #757575;
24+
text-align:center;
25+
margin-bottom:15px;
26+
}
27+
/* h1:hover { */
28+
/* background-color: #757575; */
29+
/* color: #FFFFFF; */
30+
/* text-shadow: 1px 1px 1px #333; */
31+
/* } */
32+
33+
/* Titles of categories */
34+
h2 {
35+
/* This is called "sectioncolor" in the ConTeXt stylesheet. */
36+
color: #397249;
37+
}
38+
/* There is a bar just before each category */
39+
h2:before {
40+
content: "";
41+
display: inline-block;
42+
margin-right:1%;
43+
width: 16%;
44+
height: 10px;
45+
/* This is called "rulecolor" in the ConTeXt stylesheet. */
46+
background-color: #9CB770;
47+
}
48+
/* h2:hover { */
49+
/* background-color: #397249; */
50+
/* color: #FFFFFF; */
51+
/* text-shadow: 1px 1px 1px #333; */
52+
/* } */
53+
54+
/* Definitions */
55+
dt {
56+
float: left;
57+
clear: left;
58+
width: 17%;
59+
font-weight: bold;
60+
}
61+
dd {
62+
margin-left: 17%;
63+
margin-bottom:7px;
64+
}
65+
p {
66+
margin-top:0;
67+
margin-bottom:7px;
68+
}
69+
70+
/* Blockquotes */
71+
blockquote {
72+
text-align: center
73+
}
74+
75+
/* Links */
76+
a {
77+
text-decoration: none;
78+
color: #397249;
79+
}
80+
a:hover, a:active {
81+
background-color: #397249;
82+
color: #FFFFFF;
83+
text-decoration: none;
84+
text-shadow: 1px 1px 1px #333;
85+
}
86+
87+
/* Horizontal separators */
88+
hr {
89+
color: #A6A6A6;
90+
}
91+
92+
table {
93+
width: 100%;
94+
}
95+
</style>

chmduquesne.tex

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
% Copyright 2013 Christophe-Marie Duquesne <[email protected]>
2+
% Copyright 2014 Mark Szepieniec <http://github.com/mszep>
3+
%
4+
% ConText style for making a resume with pandoc. Inspired by moderncv.
5+
%
6+
% This CSS document is delivered to you under the CC BY-SA 3.0 License.
7+
% https://creativecommons.org/licenses/by-sa/3.0/deed.en_US
8+
9+
\startmode[*mkii]
10+
\enableregime[utf-8]
11+
\setupcolors[state=start]
12+
\stopmode
13+
$if(mainlang)$
14+
\mainlanguage[$mainlang$]
15+
$endif$
16+
17+
\setupcolor[hex]
18+
\definecolor[titlegrey][h=757575]
19+
\definecolor[sectioncolor][h=397249]
20+
\definecolor[rulecolor][h=9cb770]
21+
22+
% Enable hyperlinks
23+
\setupinteraction[state=start, color=sectioncolor]
24+
25+
\setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
26+
\setuplayout [width=middle, height=middle,
27+
backspace=20mm, cutspace=0mm,
28+
topspace=10mm, bottomspace=20mm,
29+
header=0mm, footer=0mm]
30+
31+
%\setuppagenumbering[location={footer,center}]
32+
33+
\setupbodyfont[11pt, helvetica]
34+
35+
\setupwhitespace[medium]
36+
37+
\setupblackrules[width=31mm, color=rulecolor]
38+
39+
\setuphead[chapter] [style=\tfd]
40+
\setuphead[section] [style=\tfd\bf, color=titlegrey, align=middle]
41+
\setuphead[subsection] [style=\tfb\bf, color=sectioncolor, align=right,
42+
before={\leavevmode\blackrule\hspace}]
43+
\setuphead[subsubsection][style=\bf]
44+
45+
$if(number-sections)$
46+
$else$
47+
\setuphead[chapter, section, subsection, subsubsection][number=no]
48+
$endif$
49+
50+
%\setupdescriptions[width=10mm]
51+
52+
\definedescription
53+
[description]
54+
[headstyle=bold, style=normal,
55+
location=hanging, width=18mm, distance=14mm, margin=0cm]
56+
57+
\setupitemize[autointro, packed] % prevent orphan list intro
58+
\setupitemize[indentnext=no]
59+
60+
\defineitemgroup[enumerate]
61+
\setupenumerate[each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
62+
63+
\setupfloat[figure][default={here,nonumber}]
64+
\setupfloat[table][default={here,nonumber}]
65+
66+
\setuptables[textwidth=max, HL=none]
67+
\setupxtable[frame=off,option={stretch,width}]
68+
69+
\setupthinrules[width=15em] % width of horizontal rules
70+
71+
\setupdelimitedtext
72+
[blockquote]
73+
[before={\setupalign[middle]},
74+
indentnext=no,
75+
]
76+
77+
$if(toc)$
78+
\setupcombinedlist[content][list={$placelist$}]
79+
80+
$endif$
81+
$for(header-includes)$
82+
$header-includes$
83+
$endfor$
84+
85+
\starttext
86+
$if(title)$
87+
\startalignment[center]
88+
\blank[2*big]
89+
{\tfd $title$}
90+
$if(author)$
91+
\blank[3*medium]
92+
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
93+
$endif$
94+
$if(date)$
95+
\blank[2*medium]
96+
{\tfa $date$}
97+
$endif$
98+
\blank[3*medium]
99+
\stopalignment
100+
$endif$
101+
$for(include-before)$
102+
$include-before$
103+
$endfor$
104+
$if(toc)$
105+
\placecontent
106+
$endif$
107+
108+
$body$
109+
110+
$for(include-after)$
111+
$include-after$
112+
$endfor$
113+
\stoptext

0 commit comments

Comments
 (0)