organize style sheet

This commit is contained in:
sinsong 2023-07-04 15:24:40 +08:00
parent 51cfe4a90c
commit 887313e0fc
2 changed files with 36 additions and 36 deletions

View file

@ -0,0 +1,35 @@
// search bar
.search {
width: 100%;
margin: 15px 0;
font-size: 15px;
padding: .5em .5em;
}
table#index-table {
width: 100%;
thead {
border-bottom: 1px solid var(--index-thead-border);
}
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;
}
}
}

View file

@ -36,16 +36,6 @@ table {
margin: .5em 0;
}
// search bar
.search {
width: 100%;
margin: 15px 0;
font-size: 15px;
padding: .5em .5em;
}
.box {
border: 1px solid #bcd;
padding: .5em;
@ -56,34 +46,9 @@ table {
overflow-x: auto;
}
table#index-table {
width: 100%;
thead {
border-bottom: 1px solid var(--index-thead-border);
}
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;
}
}
}
// Components
@import "root";
@import "nav";
@import "footer";
@import "index";
@import "pkginfo";