From 663212de0af3c01486685f99a77a327c336e6126 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 15 Apr 2020 23:22:45 +0200 Subject: [PATCH] sheet.xsl: various cosmetic improvements --- www/sheet.xsl | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/www/sheet.xsl b/www/sheet.xsl index c6d263e..f3baf14 100644 --- a/www/sheet.xsl +++ b/www/sheet.xsl @@ -11,7 +11,6 @@ - RSS feed by morss @@ -35,14 +34,24 @@ .item { background-color: #FFFAF4; border: 1px solid silver; - padding: 1%; margin: 1%; max-width: 100%; } - .item > a { + .item > * { + padding: 1%; + } + + .item > :not(:last-child) { border-bottom: 1px solid silver; } + + .item > a { + + display: block; + font-weight: bold; + font-size: 1.5em; + } @@ -74,11 +83,11 @@
- +
- +
@@ -88,8 +97,8 @@ document.getElementById("url").innerHTML = window.location.href.replace(':html/', '') if (!/:html/.test(window.location.href)) - for (var content of document.getElementsByClassName("content")) - content.innerHTML = content.innerText + for (var content of document.querySelectorAll(".desc,.content")) + content.innerHTML = content.children.children ? content.innerHTML : content.innerText