Skip to content

Commit 05da725

Browse files
committed
feat: add .sticky class for fixed table header rows; apply to .market-table
Signed-off-by: Rito Rhymes <83614463+ritorhymes@users.noreply.github.com>
1 parent 46cb499 commit 05da725

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/css/_page.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ a {
2222
}
2323

2424
.bullet-list li {
25-
margin-bottom: 0.6 rem;
25+
margin-bottom: 0.6rem;
2626
}
2727

2828
.bullet-list a {
@@ -44,6 +44,17 @@ table {
4444
padding:4px 8px;
4545
}
4646
}
47+
48+
&.sticky {
49+
max-height: 80vh;
50+
overflow-y: auto;
51+
52+
thead th {
53+
position: sticky;
54+
top: 0;
55+
z-index: 3;
56+
}
57+
}
4758
}
4859

4960
.table-fixed {

src/css/pages/addons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.market-table {
2+
@extend .sticky;
23

34
.no-border {
45
border: none;
56
}
6-
}
7-
7+
}

0 commit comments

Comments
 (0)