171 lines
3.4 KiB
CSS
171 lines
3.4 KiB
CSS
@page {
|
||
size: 21.0cm 29.7cm;
|
||
margin: 0;
|
||
}
|
||
|
||
@media print {
|
||
@page {
|
||
margin: 2cm 0cm;
|
||
|
||
@top-left {
|
||
font-size: 10pt;
|
||
background-image: linear-gradient(to right, rgb(185,205,229), rgb(185,205,229));
|
||
background-size: 6.7cm 2cm;
|
||
background-position: top left;
|
||
background-repeat: no-repeat;
|
||
padding-left: 7.7cm;
|
||
padding-right: 1cm;
|
||
text-align: center;
|
||
}
|
||
@bottom-left {
|
||
font-size: 10pt;
|
||
background-image: linear-gradient(to right, rgb(185,205,229), rgb(185,205,229));
|
||
background-size: 6.7cm 2cm;
|
||
background-position: top left;
|
||
background-repeat: no-repeat;
|
||
padding-left: 7.7cm;
|
||
padding-right: 1cm;
|
||
text-align: center;
|
||
}
|
||
@top-left {
|
||
content: "";
|
||
}
|
||
@bottom-left {
|
||
content: "CV David Madl - " counter(page) "/" counter(pages);
|
||
}
|
||
}
|
||
}
|
||
|
||
body {
|
||
background-image: linear-gradient(to right, rgb(185,205,229), rgb(185,205,229));
|
||
background-size: 6.7cm 100%;
|
||
background-position: top left;
|
||
background-repeat: repeat-y;
|
||
}
|
||
|
||
ul, ol {
|
||
margin-left: 14pt;
|
||
}
|
||
|
||
div.references ol li, div.references ol li a {
|
||
font-size: 8pt;
|
||
}
|
||
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-family: 'Leelawadee UI';
|
||
font-size: 12pt;
|
||
font-weight: 200;
|
||
|
||
/* print background and images */
|
||
-webkit-print-color-adjust: exact !important; /* Chrome, Safari 6 – 15.3, Edge */
|
||
print-color-adjust: exact !important; /* Firefox 97+, Safari 15.4+ */
|
||
}
|
||
|
||
#right-panel {
|
||
margin-left: 6.7cm;
|
||
padding: 2cm 1cm;
|
||
}
|
||
|
||
@media print {
|
||
#left-panel {
|
||
height: 24.7cm;
|
||
}
|
||
#right-panel {
|
||
padding: 0cm 1cm;
|
||
}
|
||
}
|
||
|
||
/* CV heading */
|
||
h1 {
|
||
font-size: 18pt;
|
||
font-weight: 500;
|
||
padding-bottom: 8pt;
|
||
margin-bottom: 32pt;
|
||
}
|
||
|
||
/* Section heading */
|
||
h2 {
|
||
float: right;
|
||
color: white;
|
||
font-weight: bold;
|
||
background: rgb(37,54,97);
|
||
display: block;
|
||
left: 100%;
|
||
padding: 5pt 8pt 8pt 8pt;
|
||
padding-right: 1cm;
|
||
width: 4cm; /* - margin-right => 5 cm */
|
||
/* ends up 53 x 11.6 mm in print */
|
||
text-align: right;
|
||
margin-right: -1cm;
|
||
margin-top: 0pt; /* like -h2.padding-top + div.block.padding-top, to align text baseline with panel content */
|
||
margin-left: 8pt;
|
||
font-size: 13pt;
|
||
}
|
||
|
||
div.section-spacer {
|
||
height: 16pt;
|
||
}
|
||
|
||
/* Block heading */
|
||
h3 {
|
||
font-weight: normal;
|
||
margin-bottom: 8pt;
|
||
}
|
||
|
||
/* Block heading: subject */
|
||
h3 span.t {
|
||
font-weight: 800;
|
||
}
|
||
|
||
div.block {
|
||
padding: 0 0 8pt 0;
|
||
break-inside: avoid;
|
||
}
|
||
|
||
div.block p {
|
||
padding-bottom: 8pt;
|
||
}
|
||
|
||
div.left-hang p {
|
||
padding-bottom: 8pt;
|
||
}
|
||
|
||
div.block p {
|
||
line-height: 1.4;
|
||
}
|
||
|
||
div.left-hang {
|
||
float: left;
|
||
margin-left: -7.0cm; /* -(#left-panel.width - #right-panel.padding-left + target-margin-left) */
|
||
width: 5.4cm;
|
||
}
|
||
|
||
img#david-portrait {
|
||
width: 5.1cm; /* #left-panel.width - 2 * padding [0.8cm] */
|
||
border-radius: 50%;
|
||
margin-bottom: 0.8cm;
|
||
}
|
||
|
||
#ico-home, #ico-phone, #ico-email {
|
||
width: 1.2em;
|
||
height: 1.2em;
|
||
position: relative;
|
||
top: 0.2em;
|
||
margin: -0.1em 0.2em -0.1em -0.12em;
|
||
}
|
||
span.ico-home-spacer {
|
||
display: inline-block;
|
||
width: 1.2em;
|
||
margin-left: 0.1em;
|
||
height: 1em;
|
||
}
|
||
|
||
#ico-github {
|
||
width: 1em;
|
||
height: 1em;
|
||
position: relative;
|
||
top: 0.2em;
|
||
margin-right: 0.3em;
|
||
} |