summaryrefslogtreecommitdiff
path: root/src/components/ConnectionTable.module.scss
diff options
context:
space:
mode:
authorHaishan <[email protected]>2021-06-06 00:32:24 +0800
committerHaishan <[email protected]>2021-06-06 00:33:22 +0800
commit5ff2f89afb71fd2976c487692ec73085241e09c7 (patch)
treefe7a53d8839b1406e4ff31a2fa8a543669c7693f /src/components/ConnectionTable.module.scss
parent25dbe5eff483bfdceec677b13ad4ec905c5fe566 (diff)
Stop use postcss-nested postcss-extend-rule
Diffstat (limited to 'src/components/ConnectionTable.module.scss')
-rw-r--r--src/components/ConnectionTable.module.scss51
1 files changed, 51 insertions, 0 deletions
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);
+}