aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-25 19:34:24 +0100
committerSimon Ser <contact@emersion.fr>2019-12-25 19:34:24 +0100
commit3d9ddc05beb35e10af9340e04fca8606dd116892 (patch)
treeb6df409d74431c2172914be02d750d1658eabd5c /themes
parentd36ec520aa39eae7d481534795dec2ad478eaf4c (diff)
downloadalps-3d9ddc05beb35e10af9340e04fca8606dd116892.tar.gz
alps-3d9ddc05beb35e10af9340e04fca8606dd116892.zip
themes/sourcehut: add search input to mailbox view
Diffstat (limited to 'themes')
-rw-r--r--themes/sourcehut/assets/style.css3
-rw-r--r--themes/sourcehut/mailbox.html7
-rw-r--r--themes/sourcehut/scss/main.scss4
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;