Skip to content

Commit

Permalink
Update print resume styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Dorofeev committed Aug 13, 2024
1 parent 19abddd commit 84ec83e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/d0rich.me/components/resume/CertificatesCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defineProps<{

<style>
.resume-sertificates-card__list {
@apply pl-5 space-y-3 list-disc;
@apply pl-5 space-y-3 list-disc print:text-sm;
}
a.resume-sertificates-card__place {
@apply underline dark:text-blue-300 text-blue-800;
Expand Down
2 changes: 1 addition & 1 deletion apps/d0rich.me/components/resume/ProjectsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defineProps<{

<style>
.resume-projects-card__list {
@apply pl-5 space-y-3 list-disc;
@apply pl-5 space-y-3 list-disc print:text-sm;
}
a.resume-projects-card__place {
@apply underline dark:text-blue-300 text-blue-800;
Expand Down
16 changes: 10 additions & 6 deletions apps/d0rich.me/components/resume/TimeNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ defineProps<{
</script>

<template>
<DCard class="">
<DCardTitle>
<DCard>
<DCardTitle class="break-after-avoid-page">
{{ timenote.title }}
<template #extra>
<Component
:is="timenote.place.link ? 'a' : 'span'"
:href="timenote.place.link"
target="_blank"
class="timenote__place-link print:ml-2"
class="timenote__place-link"
>
{{ timenote.place.title }}
</Component>
</template>
</DCardTitle>
<p

Check failure on line 35 in apps/d0rich.me/components/resume/TimeNote.vue

View workflow job for this annotation

GitHub Actions / test

Replace `⏎······class="timenote__daterange"⏎····` with `·class="timenote__daterange"`
class="text-blue-600 dark:text-blue-300 print:text-sm break-inside-avoid"
class="timenote__daterange"
>
<time :datetime="timenote.daterange.start">
{{ dateToMonthYear(timenote.daterange.start) }}
Expand All @@ -55,12 +55,16 @@ defineProps<{
}})
</span>
</p>
<ContentRenderer class="resume-time-note__content" :value="timenote" />
<ContentRenderer class="print:text-sm break-inside-avoid-page" :value="timenote" />

Check failure on line 58 in apps/d0rich.me/components/resume/TimeNote.vue

View workflow job for this annotation

GitHub Actions / test

Replace `·class="print:text-sm·break-inside-avoid-page"·:value="timenote"` with `⏎······class="print:text-sm·break-inside-avoid-page"⏎······:value="timenote"⏎···`
</DCard>
</template>

<style>
a.timenote__place-link {
@apply underline;
@apply underline print:ml-2;
}
.timenote__daterange {
@apply text-blue-600 dark:text-blue-300 print:text-sm
break-inside-avoid break-after-avoid-page;
}
</style>
4 changes: 2 additions & 2 deletions apps/d0rich.me/pages/resume/[type].vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ section {
<style>
.resume-page__section-title {
@apply text-5xl text-blue-700 dark:text-blue-300 mb-2
print:text-2xl print:mt-4;
print:text-2xl print:mt-4 break-after-avoid-page;
}

.resume-page__prose-content {
@apply [&_p]:!m-0 [&_p]:!mb-2 [&_p]:!text-base [&_ul]:!m-0 [&_li]:!m-0;
@apply [&_p]:!m-0 [&_p]:!mb-2 [&_p]:!text-base [&_ul]:!m-0 [&_li]:!m-0 print:text-sm;
}

@media print {
Expand Down

0 comments on commit 84ec83e

Please sign in to comment.