Skip to content

Commit

Permalink
Added shortcode in search input
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Jan 12, 2022
1 parent 9f863f3 commit 3a5264f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
4 changes: 2 additions & 2 deletions css-compiled/theme.css

Large diffs are not rendered by default.

33 changes: 32 additions & 1 deletion css-compiled/theme.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/theme.min.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions scss/theme/_offcanvas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@
span {
position: absolute;
right: 8px;
top: 2px;
cursor: pointer;
top: 50%;
font-size: 0.8rem;
transform: translateY(-50%);
}
}

Expand Down
1 change: 1 addition & 0 deletions templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
{% endblock %}
</head>
<body id="top" class="{{ sidebar_color }} {% block body_classes %}{{ body_classes|trim }}{% endblock %}" data-url="{{ page.route }}">

<div id="page-wrapper" class="off-canvas off-canvas-sidebar-show">
<!-- off-screen toggle button -->
<a class="off-canvas-toggle btn btn-primary btn-action" href="#sidebar-id">
Expand Down
1 change: 1 addition & 0 deletions templates/partials/sidebar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
>
<label for="search-by"><i class="fa fa-search"></i></label>
<input id="search-by" type="text" placeholder="{{ 'THEME_LEARN4_SEARCH_DOCUMENTATION'|t }}" readonly>
<span class="search-shortcode">⌘K</span>
</div>
<div class="search-options">
{% include 'partials/versions.html.twig' %}
Expand Down

0 comments on commit 3a5264f

Please sign in to comment.