Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

refactor(styles): standardize kbd styles across components

Smaug6739c60fbf3b4265
diff --git a/frontend/app/components/MarkdownEditor/Toolbar.vue b/frontend/app/components/MarkdownEditor/Toolbar.vue
index 10006180..28f68b3d 100644
--- a/frontend/app/components/MarkdownEditor/Toolbar.vue
+++ b/frontend/app/components/MarkdownEditor/Toolbar.vue
@@ -343,7 +343,6 @@ const actionTools: ToolItem[] = [
kbd {
padding: 2px 5px;
border-radius: 3px;
- font-family: inherit;
font-size: 10px;
}
}
diff --git a/frontend/app/components/Navbar.vue b/frontend/app/components/Navbar.vue
index d9c7b58c..b625597e 100644
--- a/frontend/app/components/Navbar.vue
+++ b/frontend/app/components/Navbar.vue
@@ -89,9 +89,9 @@ button {
}
kbd {
- padding: 0 4px;
+ padding: 0 5px;
border: 1px solid var(--text-secondary);
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-family: monospace;
font-size: 14px;
font-weight: 600;
diff --git a/frontend/app/components/Node/Action/ContextMenu.vue b/frontend/app/components/Node/Action/ContextMenu.vue
index 4afe9a77..ea67df95 100644
--- a/frontend/app/components/Node/Action/ContextMenu.vue
+++ b/frontend/app/components/Node/Action/ContextMenu.vue
@@ -165,8 +165,6 @@ async function action(name: string) {
kbd {
padding: 2px 5px;
- border-radius: 4px;
- font-family: inherit;
font-size: 10px;
color: var(--text-secondary);
background: var(--surface-raised);
diff --git a/frontend/app/styles/base/typography.scss b/frontend/app/styles/base/typography.scss
index ef46accd..f9a173e1 100644
--- a/frontend/app/styles/base/typography.scss
+++ b/frontend/app/styles/base/typography.scss
@@ -1,3 +1,5 @@
+@use "../abstract/static.scss" as *;
+
a {
color: var(--text-body);
text-decoration: none;
@@ -106,6 +108,7 @@ kbd {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
+ font-family: $font-sans;
font-weight: 400;
color: var(--text-primary);
background-color: var(--surface-base);