Files
moonweb-site/stefankoelle/pdf/cv-style.css
T
2026-08-14 21:06:30 +02:00

120 lines
1.8 KiB
CSS

/* cv-style.css — Clean CV layout for PDF print */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
:root {
--color-text: #333;
--color-heading: #1a1a1a;
--color-accent: #665544;
--color-border: #ddd;
--font-main: 'Roboto', sans-serif;
}
@page {
size: A4;
margin: 20mm;
}
body {
font-family: var(--font-main);
font-size: 10pt;
line-height: 1.5;
color: var(--color-text);
}
h1 {
font-size: 22pt;
color: var(--color-heading);
margin-bottom: 4pt;
border: none;
}
h2 {
font-size: 14pt;
color: var(--color-accent);
border-bottom: 2px solid var(--color-accent);
padding-bottom: 4pt;
margin-top: 16pt;
margin-bottom: 8pt;
border-left: none;
}
h3 {
font-size: 11pt;
color: var(--color-heading);
margin-top: 10pt;
margin-bottom: 4pt;
}
h3.page-break {
page-break-before: always;
}
p { margin-bottom: 6pt; }
ul {
margin: 4pt 0 8pt 16pt;
padding: 0;
}
li {
margin-bottom: 3pt;
}
a {
color: var(--color-text);
text-decoration: none;
}
.contact-info {
margin-bottom: 12pt;
}
.profile, .core-technologies {
margin-bottom: 12pt;
}
/* Hide non-CV elements when generating PDF */
#links, #head, #background-image,
.headlinespace, .space,
#personalprojectscontent,
#programminglanguagescontent,
#impressumcontent {
display: none !important;
}
#headline {
display: flex;
justify-content: space-between;
align-items: flex-start;
position: static;
width: 100%;
background: none;
padding: 0 0 12pt 0;
margin-bottom: 12pt;
}
#headline-text {
flex: 1;
}
#headline-photo {
flex-shrink: 0;
margin-left: 12pt;
}
#headline-photo img {
width: 90pt;
height: 110pt;
object-fit: cover;
object-position: 70% top;
border-radius: 4pt;
}
#cvcontent {
position: static;
width: 100%;
background: none;
padding: 0;
}