diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-25 19:34:24 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-25 19:34:24 +0100 |
commit | 3d9ddc05beb35e10af9340e04fca8606dd116892 (patch) | |
tree | b6df409d74431c2172914be02d750d1658eabd5c /themes/sourcehut | |
parent | d36ec520aa39eae7d481534795dec2ad478eaf4c (diff) | |
download | alps-3d9ddc05beb35e10af9340e04fca8606dd116892.tar.gz alps-3d9ddc05beb35e10af9340e04fca8606dd116892.zip |
themes/sourcehut: add search input to mailbox view
Diffstat (limited to 'themes/sourcehut')
-rw-r--r-- | themes/sourcehut/assets/style.css | 3 | ||||
-rw-r--r-- | themes/sourcehut/mailbox.html | 7 | ||||
-rw-r--r-- | themes/sourcehut/scss/main.scss | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/themes/sourcehut/assets/style.css b/themes/sourcehut/assets/style.css index ad19257..7dd94c8 100644 --- a/themes/sourcehut/assets/style.css +++ b/themes/sourcehut/assets/style.css @@ -5511,6 +5511,9 @@ body { .mailbox-container > .row, .message-container > .row { flex-grow: 1; } +.mailbox-container form { + padding: 10px; } + .mailboxes-column { border-right: 3px #ddd solid; padding: 0; } diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html index 01584b2..315e344 100644 --- a/themes/sourcehut/mailbox.html +++ b/themes/sourcehut/mailbox.html @@ -40,6 +40,13 @@ </ul> </div> <div class="col-md-10 messages-column"> + <div class="nav flex-column"> + <form method="get" action=""> + <input type="text" name="query" value="{{.Query}}" + class="form-control" placeholder="Search"> + </form> + </div> + {{if .Messages}} <ul class="nav flex-column"> {{range .Messages}} diff --git a/themes/sourcehut/scss/main.scss b/themes/sourcehut/scss/main.scss index c7f15f9..0b64080 100644 --- a/themes/sourcehut/scss/main.scss +++ b/themes/sourcehut/scss/main.scss @@ -43,6 +43,10 @@ body { } } +.mailbox-container form { + padding: 10px; +} + .mailboxes-column { border-right: 3px #ddd solid; padding: 0; |