From 88b0c0b0b2388a4042107b3e326c271375598602 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 4 Mar 2021 23:55:42 +0400 Subject: [PATCH] Now every row is highlighted and a link is clickable along whole cell. --- static/files/assets/css/main.css | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/static/files/assets/css/main.css b/static/files/assets/css/main.css index 9eadfdd..d8885c1 100644 --- a/static/files/assets/css/main.css +++ b/static/files/assets/css/main.css @@ -99,23 +99,29 @@ nav h1 { section { margin-top: 1rem; } -#files table { overflow-y: scroll; width: 100%; } +table { overflow-y: scroll; width: 100%; } -#files table tr { vertical-align: top; } +tr { vertical-align: top; } -#files table th { text-align: left; } +td a { display: block; width: 100%; } -#files table th, -#files table td { line-break: strict; } +tr:hover { background-color: var(--primary-color); color: white; } -#files table th:nth-child(2), -#files table th:last-child { width: 1%; white-space: nowrap; } +tr:hover a { color: white; } -#files table td:nth-child(2), -#files table td:last-child { white-space: nowrap; } +th { text-align: left; } -#files table th:nth-child(2), -#files table td:nth-child(2) { padding: 0 1rem; } +th, +td { line-break: strict; } + +th:nth-child(2), +th:last-child { width: 1%; white-space: nowrap; } + +td:nth-child(2), +td:last-child { white-space: nowrap; } + +th:nth-child(2), +td:nth-child(2) { padding: 0 1rem; } footer { font-size: .8rem;