From 6e8011d0ea093b8b8d304c881ebf128415fd75de Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 21 Jan 2024 20:59:08 +0100 Subject: Update print to show only the first 4 position tasks --- assets/scss/print/_work.scss | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'assets') diff --git a/assets/scss/print/_work.scss b/assets/scss/print/_work.scss index 2189869..a2779cb 100644 --- a/assets/scss/print/_work.scss +++ b/assets/scss/print/_work.scss @@ -8,6 +8,14 @@ .work__experience { page-break-inside: avoid; + + // only show the first 4 jobs completely and hide the details of the + // rest of the older jobs (but keep the names in the CV) + &:not(&:nth-child(-n+5)) { + > .tasks, .footnote { + display: none; + } + } } // Style the Company name links in the PDF with thicker underline -- cgit v1.2.3