Skip to content

Commit

Permalink
change search to scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
YukikoNoda committed Jul 26, 2023
1 parent e587a9e commit 5d25ea7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 15 deletions.
17 changes: 11 additions & 6 deletions stanzas/search-disease/style.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
@use "@/common.scss";
main {
border-bottom: 1px solid #fff;
}

.search-disease {
white-space: nowrap;
max-height: calc(100vh - 255px);
table {
width: 100%;
line-height: 2;
border-collapse: collapse;
border-spacing: 0;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
thead {
tr:last-child {
border-bottom: 1px solid #fff;
}
position: sticky;
top: 0;
border-top: 1px solid #fff;
backdrop-filter: blur(10px);
}
tr {
th {
Expand All @@ -20,6 +23,8 @@
font-weight: 500;
text-align: left;
vertical-align: bottom;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
&.th-disease {
width: 100px;
}
Expand Down
17 changes: 14 additions & 3 deletions stanzas/search-gene/style.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
@use "@/common.scss";
main {
border-bottom: 1px solid #fff;
}

.search-gene {
border-top: 1px solid #fff;
border-radius: 3px;
white-space: nowrap;
max-height: calc(100vh - 255px);
table {
width: 100%;
line-height: 2;
border-spacing: 0;
border-bottom: 1px solid #fff;
thead {
position: sticky;
top: 0;
border-top: 1px solid #fff;
backdrop-filter: blur(10px);
}
tr {
th {
width: 120px;
padding-left: 10px;
font-weight: 500;
text-align: left;
vertical-align: bottom;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
}
td {
Expand Down
18 changes: 12 additions & 6 deletions stanzas/search-variant/style.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
@use "@/common.scss";
main {
border-bottom: 1px solid #fff;
}

.search-variant {
white-space: nowrap;
max-height: calc(100vh - 255px);
table {
width: 100%;
line-height: 2;
border-collapse: collapse;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
border-spacing: 0;
thead {
tr:last-child {
border-bottom: 1px solid #fff;
}
position: sticky;
top: 0;
border-top: 1px solid #fff;
backdrop-filter: blur(10px);
}
tr {
th {
Expand All @@ -19,6 +23,8 @@
font-weight: 500;
text-align: left;
vertical-align: bottom;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
}
td {
padding-left: 10px;
Expand Down

0 comments on commit 5d25ea7

Please sign in to comment.