Skip to content

Commit a3387a0

Browse files
committed
Add the print button on the right
1 parent d45b306 commit a3387a0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/css/custom.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@
3030
.print-button {
3131
display: none;
3232
}
33-
}
33+
}
34+
35+
36+
.print-button {
37+
float: right; /* Moves the button to the right */
38+
margin-left: 1em; /* Adds spacing from the content */
39+
padding: 0.5em 1em; /* Padding for better aesthetics */
40+
border: none; /* Remove border */
41+
border-radius: 4px; /* Rounded corners */
42+
cursor: pointer; /* Change cursor on hover */
43+
}

docs/js/extra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ document.addEventListener('DOMContentLoaded', function () {
77
printButton.addEventListener('click', function () {
88
window.print();
99
});
10-
header.after(printButton); // Add the button after the title
10+
header.before(printButton); // Add the button after the title
1111
}
1212
});

0 commit comments

Comments
 (0)