Browse Source
Merge pull request #4872 from Budibase/add-print-styles
Add css print styles to ensure multi-page print is possible
master
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
25 additions and
0 deletions
-
packages/client/src/components/ClientApp.svelte
-
packages/client/src/components/app/Layout.svelte
|
|
@ -226,4 +226,13 @@ |
|
|
border: 1px solid var(--spectrum-global-color-gray-300); |
|
|
border: 1px solid var(--spectrum-global-color-gray-300); |
|
|
border-radius: 4px; |
|
|
border-radius: 4px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Print styles */ |
|
|
|
|
|
@media print { |
|
|
|
|
|
#spectrum-root, |
|
|
|
|
|
#clip-root, |
|
|
|
|
|
#app-root { |
|
|
|
|
|
overflow: visible !important; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
@ -427,4 +427,20 @@ |
|
|
height: var(--height); |
|
|
height: var(--height); |
|
|
z-index: 998; |
|
|
z-index: 998; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Print styles */ |
|
|
|
|
|
@media print { |
|
|
|
|
|
.layout, |
|
|
|
|
|
.main-wrapper { |
|
|
|
|
|
overflow: visible !important; |
|
|
|
|
|
} |
|
|
|
|
|
.nav-wrapper { |
|
|
|
|
|
display: none !important; |
|
|
|
|
|
} |
|
|
|
|
|
.layout { |
|
|
|
|
|
flex-direction: column !important; |
|
|
|
|
|
justify-content: flex-start !important; |
|
|
|
|
|
align-items: stretch !important; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|