From 6161eebfcdc1868095175a76558b6bfface14463 Mon Sep 17 00:00:00 2001 From: Sandro Marques Date: Fri, 5 May 2017 09:12:29 +0100 Subject: [PATCH] Working in the torrent list layout Changes: * Hashes use a monospaced font, since they have the same text-width; * Filesize does not wrap (stay always on the same line) --- css/style.css | 20 ++++++++++++++------ templates/home.html | 38 ++++++++++++++++++++++++-------------- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/css/style.css b/css/style.css index 9772088c..536cc7f1 100644 --- a/css/style.css +++ b/css/style.css @@ -48,10 +48,18 @@ a { text-decoration : none; } -.torrentName { - font-weight: bold; - overflow: hidden; - padding-bottom: 3px; - padding-top: 3px; - word-wrap: break-word; +.torrent-info .name { + font-weight: bold; + overflow: hidden; + padding-bottom: 3px; + padding-top: 3px; + word-wrap: break-word; } + +.torrent-info .hash { + font-family: monospace; +} + +.torrent-info .filesize { + white-space: nowrap; +} \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index bab2bf8d..e291f675 100644 --- a/templates/home.html +++ b/templates/home.html @@ -11,23 +11,33 @@ Links {{ range .ListTorrents}} - - - {{.Name}} - {{.Hash}} - {{.Date}} - {{.Filesize}} - - - + + + + + + + + + {{.Name}} + + + {{.Hash}} + {{.Date}} + {{.Filesize}} + + + + + + + - - {{end}} -