Skip to content

Commit 74a5657

Browse files
committed
UI: add hover background to table rows in user and repo admin page
1 parent 7cc47da commit 74a5657

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

templates/admin/repo/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{template "shared/repo/search" .}}
1111
</div>
1212
<div class="ui attached table segment">
13-
<table class="ui very basic striped table unstackable">
13+
<table class="ui very basic striped table selectable unstackable">
1414
<thead>
1515
<tr>
1616
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th>

templates/admin/user/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</form>
5757
</div>
5858
<div class="ui attached table segment">
59-
<table class="ui very basic striped table unstackable">
59+
<table class="ui very basic striped selectable table unstackable">
6060
<thead>
6161
<tr>
6262
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" .SortType false}}</th>

web_src/css/modules/table.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@
167167
text-overflow: ellipsis;
168168
}
169169

170+
.ui.selectable.table > tbody > tr:hover,
171+
.ui.table tbody tr td.selectable:hover {
172+
background: var(--color-hover);
173+
color: var(--color-text);
174+
}
175+
170176
.ui.attached.table {
171177
top: 0;
172178
bottom: 0;
@@ -289,6 +295,9 @@
289295
.ui.basic.striped.table > tbody > tr:nth-child(2n) {
290296
background: var(--color-light);
291297
}
298+
.ui.basic.striped.selectable.table > tbody > tr:nth-child(2n):hover {
299+
background: var(--color-hover);
300+
}
292301

293302
.ui[class*="very basic"].table {
294303
border: none;

0 commit comments

Comments
 (0)