From 5ff2f89afb71fd2976c487692ec73085241e09c7 Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 6 Jun 2021 00:32:24 +0800 Subject: Stop use postcss-nested postcss-extend-rule --- src/components/ConnectionTable.module.scss | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/components/ConnectionTable.module.scss (limited to 'src/components/ConnectionTable.module.scss') diff --git a/src/components/ConnectionTable.module.scss b/src/components/ConnectionTable.module.scss new file mode 100644 index 0000000..80a8432 --- /dev/null +++ b/src/components/ConnectionTable.module.scss @@ -0,0 +1,51 @@ +.tr { + display: grid; + /* grid-template-columns: repeat(11, minmax(max-content, 1fr)); */ + grid-template-columns: repeat(11, minmax(max-content, auto)); +} + +.th { + padding: 8px 10px; + height: 50px; + background: var(--color-background); + position: sticky; + top: 0; + font-size: 0.8em; + text-align: center; + user-select: none; + + display: flex; + align-items: center; + justify-content: space-between; + + &:hover { + color: var(--color-text-highlight); + } +} + +.td { + padding: 8px 13px; + font-size: 0.9em; + + font-family: var(--font-normal); +} + +.td.odd { + background: var(--color-row-odd); +} + +/* download upload td cells */ +.du { + text-align: right; +} + +.sortIconContainer { + display: inline-flex; + margin-left: 10px; + width: 16px; + height: 16px; +} + +.rotate180 { + transform: rotate(180deg); +} -- cgit v1.3.1