Files
cv/main.css
2026-02-18 11:55:49 +01:00

166 lines
3.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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 {
margin-left: 14pt;
}
* {
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;
}
/* 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;
}