Skip to content

Commit 9faeb32

Browse files
author
Peter Georg
committed
Fix search showing ⌘K shortcut on all OSs using classic theme
1 parent dafddc3 commit 9faeb32

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

dist/assets/stylesheets/classic/main.2651815e.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/assets/stylesheets/classic/main.6dbc9c7e.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{% if config.theme.variant == "modern" %}
5050
{% set href = 'assets/stylesheets/modern/main.eafc6f7f.min.css' | url %}
5151
{% else %}
52-
{% set href = 'assets/stylesheets/classic/main.2651815e.min.css' | url %}
52+
{% set href = 'assets/stylesheets/classic/main.6dbc9c7e.min.css' | url %}
5353
{% endif %}
5454
<link rel="stylesheet" href="{{ href }}">
5555
{% if config.theme.palette %}

src/assets/stylesheets/classic/main/components/_search.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@
102102
display: block;
103103
padding: px2rem(2px) px2rem(4px);
104104
font-size: px2rem(12px);
105-
letter-spacing: px2rem(0.75px);
106-
content: "⌘K";
105+
content: "Ctrl+K";
107106
background: hsla(0, 0%, 0%, 0.26);
108107
border-radius: px2rem(2px);
108+
109+
// Show macOS shortcut
110+
[data-platform^="Mac"] & {
111+
content: "⌘K";
112+
}
109113
}
110114
}
111115
}

0 commit comments

Comments
 (0)