Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): style keyboard shortcuts as keycaps

Elian Dorand889efbc1f17
diff --git a/apps/client/src/print.css b/apps/client/src/print.css
index 93c0a7a5ef..76105d1530 100644
--- a/apps/client/src/print.css
+++ b/apps/client/src/print.css
@@ -193,6 +193,27 @@ body[data-note-type="text"] .ck-content {
}
/* #endregion */
+/* #region Keyboard shortcuts */
+/* Repeats `.ck-content kbd` from theme-next/dialogs.css with the light theme's colors. */
+.ck-content kbd {
+ display: inline-block;
+ margin: 0 1pt 1pt;
+ border: 0.75pt solid #999;
+ border-radius: 3pt;
+ padding: 0 4pt;
+ background: #f5f5f5;
+ box-shadow: 0 1pt 0 #999;
+ color: #3f3f3f;
+ font-family: var(--print-font-family);
+ font-size: 0.8em;
+ line-height: 1.4;
+ vertical-align: 1px;
+ white-space: nowrap;
+ print-color-adjust: exact;
+ -webkit-print-color-adjust: exact;
+}
+/* #endregion */
+
/* #region Footnotes */
.footnote-reference a,
.footnote-back-link a {