Skip to content

Commit

Permalink
Added a printable version of my CV
Browse files Browse the repository at this point in the history
  • Loading branch information
jwanglof committed Jul 30, 2016
1 parent d69d6c1 commit b619f8e
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cv/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,9 @@ select.stack {
src: local("Lato Black"), local("Lato-Black"), url("../font/google/lato-v11-latin-900.woff2") format("woff2"), url("../font/google/lato-v11-latin-900.woff") format("woff");
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ }

#johan {
display: none; }

html, body {
font-family: 'Lato', sans-serif;
font-weight: 400; }
Expand Down
30 changes: 30 additions & 0 deletions cv/css/print.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@media print {
#johan {
display: block;
text-align: center;
page-break-after: always; }
.contact-information {
padding-top: 25px; }
body, h1, h2, h3, ol, ul, div {
width: auto;
border: 0;
margin: 0;
padding: 0;
float: none;
position: static;
overflow: visible; }
nav, footer {
display: none; }
main {
padding-top: 0; }
main .flex {
border-bottom: 0;
page-break-after: always; }
main .three-fourth {
width: 100%;
padding: 0 15px; }
main .icon {
width: 100%;
padding-bottom: 0 !important; }
main .icon i {
padding: 0; } }
23 changes: 22 additions & 1 deletion cv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8">
<title>Johan Wänglöf's Curriculum Vitae</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/print.css" />
<link rel="stylesheet" type="text/css" href="css/fontello.css" />
</head>
<body>
Expand All @@ -28,6 +29,26 @@
</div>
</nav>

<!--Only visible on print-->
<div id="johan">
<h1>Johan Wänglöf's Curriculum Vitae</h1>
<h2>Print version</h2>
Printed from <a href="http://jwanglof.se/cv/">http://jwanglof.se/cv/</a>
<h2 class="contact-information">Contact information</h2>
<h3>Address</h3>
Johan Wänglöf
<br />
Björnkärrsgatan 13B.11
<br />
58436 Linköping

<h3>Phonenumber</h3>
<a href="tel:0046708101911">0046708601911</a>

<h3>E-mail</h3>
<a href="mailto:jwanglof@gmail.com">jwanglof@gmail.com</a>
</div>

<main>
<section class="flex four">
<div class="icon">
Expand Down Expand Up @@ -333,7 +354,7 @@ <h3>Address</h3>
58436 Linköping

<h3>Phonenumber</h3>
070-86 01 911
<a href="tel:0046708101911">0046708601911</a>

<h3>E-mail</h3>
<a href="mailto:jwanglof@gmail.com">jwanglof@gmail.com</a>
Expand Down
4 changes: 4 additions & 0 deletions cv/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

$title: normal 24px/1.5 sans-serif;

#johan {
display: none;
}

html,body {
font-family: 'Lato', sans-serif;
font-weight: 400;
Expand Down
47 changes: 47 additions & 0 deletions cv/scss/print.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@media print {
#johan {
display: block;
text-align: center;
page-break-after: always;
}

.contact-information {
padding-top: 25px;
}

body, h1, h2, h3, ol, ul, div {
width: auto;border: 0;
margin: 0;
padding: 0;
float: none;
position: static;
overflow: visible;
}

nav, footer {
display: none;
}

main {
padding-top: 0;

.flex {
border-bottom: 0;
page-break-after: always;
}

.three-fourth {
width: 100%;
padding: 0 15px;
}

.icon {
width: 100%;
padding-bottom: 0 !important;

i {
padding: 0;
}
}
}
}

0 comments on commit b619f8e

Please sign in to comment.