Skip to content

Commit

Permalink
pushing up filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidramage committed Mar 3, 2022
1 parent 9e3a107 commit 1479265
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.command-card {
align-items: stretch;
flex-basis: 30%;
flex-grow: 1;
text-decoration: none !important;
width: 30%;
}
#card-id:hover {
background-color: #ecf7fa !important;
Expand Down
8 changes: 4 additions & 4 deletions layouts/commands/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="td-content">
<nav>
<div class="nav-container">
<label>
<!-- <label>
<span>Filter by group:</span>
<select class="command-reference-filter">
<option value="">All</option>
Expand Down Expand Up @@ -138,8 +138,8 @@
{{ end }}
</option>
</select>
</label>
or
</label> -->
<!-- or -->
<label>
<span>search for:</span>
<input autocapitalize="off" autocomplete="off" autocorrect="off" autofocus="" class="js-command-reference-search" placeholder="e.g. COMMAND LIST" spellcheck="false">
Expand Down Expand Up @@ -185,7 +185,7 @@
<div class="container">
<div class="row">
{{ range $index, $page := $pages }}
<div class="col command-card d-flex">
<div class="col command-card">
{{ partial "command-card.html" $page }}
</div>
{{ if eq (mod (add $index 1) 3) 0 }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/command-card.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }}

<div class="card m-1" id="card-id">
<div data-name="{{ .Title }}" class="card m-1" id="card-id">
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
<div class="card-body m-0 p-2">
<p class="card-title mb-1">
Expand Down

0 comments on commit 1479265

Please sign in to comment.