From c38de3bbe760e2f005ad3e3766f22d19f830123f Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 20 Mar 2019 04:30:44 -0400 Subject: [PATCH] nicer iframes on detail pages --- archivebox/templates/link_index.html | 30 +++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/archivebox/templates/link_index.html b/archivebox/templates/link_index.html index f9f00cc7..29927ea3 100644 --- a/archivebox/templates/link_index.html +++ b/archivebox/templates/link_index.html @@ -70,6 +70,7 @@ opacity: 0.8; } .card { + overflow: hidden; box-shadow: 2px 3px 14px 0px rgba(0,0,0,0.02); } .card h4 { @@ -121,7 +122,8 @@ .pdf-frame { transform: none; width: 100%; - height: 100px; + height: 160px; + margin-top: -60px; margin-bottom: 0px; } img.external { @@ -135,6 +137,15 @@ img.external:hover { border: 4px solid green; } + .screenshot { + transform: none; + width: 100%; + height: auto; + max-height: 100px; + margin-bottom: 0px; + object-fit: cover; + object-position: top; + } @media(max-width: 1092px) { iframe { @@ -201,7 +212,7 @@