From 48df81b216f9e64ab78ea1fda5bdcf72307895da Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 10 Jun 2018 19:11:06 -0400 Subject: [PATCH] add dom preview to link index, fix responsiveness --- templates/index.html | 11 ++++-- templates/link_index.html | 4 +++ templates/link_index_fancy.html | 60 +++++++++++++++++++++++---------- 3 files changed, 55 insertions(+), 20 deletions(-) diff --git a/templates/index.html b/templates/index.html index 22cb888b..61e0cbcf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -63,15 +63,22 @@ table thead th { font-weight: 400; } + table tr { + height: 35px; + } tbody tr:nth-child(odd) { background-color: #ffebeb; } table tr td { white-space: nowrap; overflow: hidden; - padding-bottom: 0.4em; - padding-top: 0.4em; + /*padding-bottom: 0.4em;*/ + /*padding-top: 0.4em;*/ padding-left: 2px; + text-align: center; + } + table tr td a { + text-decoration: none; } table tr td img, table tr td object { display: inline-block; diff --git a/templates/link_index.html b/templates/link_index.html index b6b7c1ad..854fcaf2 100644 --- a/templates/link_index.html +++ b/templates/link_index.html @@ -41,6 +41,10 @@ Screenshot
archive/$timestamp/screenshot.png
  +
  • + HTML
    + archive/$timestamp/output.html
      +
  • Archive.Org
    web.archive.org/web/$base_url
      diff --git a/templates/link_index_fancy.html b/templates/link_index_fancy.html index d9a9efbd..c88487e7 100644 --- a/templates/link_index_fancy.html +++ b/templates/link_index_fancy.html @@ -24,15 +24,20 @@ margin: 0px; font-weight: 200; font-family: "Gill Sans", Helvetica, sans-serif; + font-size: calc(16px + 1vw); } .collapse-icon { float: left; color: black; width: 126px; - font-size: 0.7em; + font-size: 0.8em; margin-top: 20px; margin-right: 0px; margin-left: -35px; + text-decoration: none; + } + a.collapse-icon:hover { + text-decoration: none; } .nav-icon img { float: right; @@ -48,6 +53,11 @@ } .title-url { color: black; + display: block; + width: 75%; + white-space: nowrap; + overflow: hidden; + margin: auto; } .archive-page-header { margin-top: 5px; @@ -160,7 +170,7 @@ Archive Icon - [-] + ▾ $title
    @@ -170,20 +180,22 @@