From 887313e0fcf89981098d4d4b0676407574497f2a Mon Sep 17 00:00:00 2001 From: sinsong Date: Tue, 4 Jul 2023 15:24:40 +0800 Subject: [PATCH] organize style sheet --- frontend/src/style/_index.scss | 35 ++++++++++++++++++++++++++++++++ frontend/src/style/main.scss | 37 +--------------------------------- 2 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 frontend/src/style/_index.scss diff --git a/frontend/src/style/_index.scss b/frontend/src/style/_index.scss new file mode 100644 index 0000000..9455e68 --- /dev/null +++ b/frontend/src/style/_index.scss @@ -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; + } + } +} diff --git a/frontend/src/style/main.scss b/frontend/src/style/main.scss index 2b86709..f92c52e 100644 --- a/frontend/src/style/main.scss +++ b/frontend/src/style/main.scss @@ -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";