add index table background pattern

This commit is contained in:
sinsong 2023-07-04 15:17:51 +08:00
parent 955bd59d83
commit fcd6f5c742
2 changed files with 17 additions and 5 deletions

View file

@ -8,6 +8,8 @@
--box-bg: #ecf2f5;
--index-thead-border: #000;
--index-item-bg1: #fff;
--index-item-bg2: #e4eeff;
--index-item-hover: #ffd;
--package-actions-box-bg: #eee;
@ -25,7 +27,9 @@
--box-bg: #212427;
--index-thead-border: #fff;
--index-item-hover: #424242;
--index-item-bg1: #000;
--index-item-bg2: #1a1a1a;
--index-item-hover: rgb(75, 75, 6);
--package-actions-box-bg: #222;
--package-actions-box-border-color: #fff;

View file

@ -63,16 +63,24 @@ table#index-table {
}
tbody {
tr {
&:nth-child(2n+1) {
background: var(--index-item-bg1);
}
&:nth-child(2n) {
background: var(--index-item-bg2);
}
&:hover {
background: var(--index-item-hover);
}
}
td {
white-space: nowrap;
}
}
}
tr.index-item:hover {
background: var(--index-item-hover);
}
// Components
@import "root";
@import "nav";