Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Tweak global table hover style.

Kailash Nadh1b690aad42b0
diff --git a/static/admin/assets/css/style.css b/static/admin/assets/css/style.css
index 5b902919..0e79bea7 100644
--- a/static/admin/assets/css/style.css
+++ b/static/admin/assets/css/style.css
@@ -109,8 +109,14 @@ table {
}
}
- tbody tr:hover {
- background-color: none;
+
+ &.has-select {
+ tbody tr:hover {
+ background-color: transparent;
+ td {
+ border-bottom: 1px solid light-dark(#ccc, #444);
+ }
+ }
}
}
diff --git a/static/admin/views/bounces.html b/static/admin/views/bounces.html
index 1724f690..5d4246da 100644
--- a/static/admin/views/bounces.html
+++ b/static/admin/views/bounces.html
@@ -44,7 +44,7 @@
</ot-dropdown>
</template>
- <table>
+ <table class="has-select">
<thead>
<tr>
<th width="5%"><input type="checkbox" aria-label="{{ .L.T "globals.buttons.toggleSelect" }}"></th>
diff --git a/static/admin/views/campaigns.html b/static/admin/views/campaigns.html
index ac16dcff..4f820f63 100644
--- a/static/admin/views/campaigns.html
+++ b/static/admin/views/campaigns.html
@@ -56,7 +56,7 @@
</template>
{{- end }}
- <table>
+ <table class="has-select">
<thead>
<tr>
<th width="5%"><input type="checkbox" aria-label="{{ .L.T "globals.buttons.toggleSelect" }}"></th>
diff --git a/static/admin/views/lists.html b/static/admin/views/lists.html
index ce2b5e47..fc2dbc1e 100644
--- a/static/admin/views/lists.html
+++ b/static/admin/views/lists.html
@@ -64,7 +64,7 @@
</ot-dropdown>
</template>
- <table>
+ <table class="has-select">
<thead>
<tr>
<th width="5%"><input type="checkbox" aria-label="{{ .L.T "globals.buttons.toggleSelect" }}"></th>
diff --git a/static/admin/views/subscribers.html b/static/admin/views/subscribers.html
index 8f994f59..e4772a54 100644
--- a/static/admin/views/subscribers.html
+++ b/static/admin/views/subscribers.html
@@ -86,7 +86,7 @@
</ot-dropdown>
</template>
- <table>
+ <table class="has-select">
<thead>
<tr>
<th width="5%"><input type="checkbox" aria-label="{{ .L.T "globals.buttons.toggleSelect" }}"></th>
diff --git a/static/admin/views/users.html b/static/admin/views/users.html
index 9e3ee231..52a11a3e 100644
--- a/static/admin/views/users.html
+++ b/static/admin/views/users.html
@@ -52,7 +52,7 @@
</template>
{{- end }}
- <table>
+ <table class="{{ if $d.Can "users:manage" }}has-select{{ end }}">
<thead>
<tr>
{{- if $d.Can "users:manage" }}