Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterd
Commits
2a74ba68
Commit
2a74ba68
authored
Feb 03, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add print styles to base template to fix unwanted CSS/HTML output during printing
parent
58f3762b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
0 deletions
+85
-0
base.html
app/templates/base.html
+85
-0
No files found.
app/templates/base.html
View file @
2a74ba68
...
...
@@ -322,8 +322,93 @@
.text-end
{
text-align
:
right
;
}
/* Print styles */
@media
print
{
.header
,
.nav
,
.alert
,
.btn
,
.btn-group
,
.dropdown-menu
,
.pagination
,
.per-page-selector
{
display
:
none
!important
;
}
body
{
padding
:
0
!important
;
margin
:
0
!important
;
background
:
white
!important
;
-webkit-print-color-adjust
:
exact
;
print-color-adjust
:
exact
;
}
.container
{
max-width
:
100%
!important
;
padding
:
0
!important
;
margin
:
0
!important
;
}
.content
{
background
:
white
!important
;
box-shadow
:
none
!important
;
border
:
1px
solid
#ddd
!important
;
}
.table
{
page-break-inside
:
auto
;
}
tr
{
page-break-inside
:
avoid
;
}
.text-end
{
text-align
:
left
!important
;
}
}
{
%
block
extra_css
%
}{
%
endblock
%
}
</style>
<!-- Print Styles -->
<style>
@media
print
{
.header
,
.nav
,
.alert
,
.btn
,
.btn-group
,
.dropdown-menu
,
.pagination
,
.per-page-selector
{
display
:
none
!important
;
}
body
{
padding
:
0
!important
;
margin
:
0
!important
;
background
:
white
!important
;
-webkit-print-color-adjust
:
exact
;
print-color-adjust
:
exact
;
}
.container
{
max-width
:
100%
!important
;
padding
:
0
!important
;
margin
:
0
!important
;
}
.content
{
background
:
white
!important
;
box-shadow
:
none
!important
;
border
:
1px
solid
#ddd
!important
;
}
.table
{
page-break-inside
:
auto
;
}
tr
{
page-break-inside
:
avoid
;
}
.text-end
{
text-align
:
left
!important
;
}
}
</style>
</style>
</head>
<body>
<div
class=
"header"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment