From 9d61141b72212b363fc7febf8411edbbaa6dbea2 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 21 Aug 2017 21:37:17 -0500 Subject: truncate title in case of two or three columns; expand title on hover --- static/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/css/style.css b/static/css/style.css index 375cd24..40f6622 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -50,6 +50,12 @@ main { margin-bottom: 15px; } } @media (min-width: 715px) { .list section { max-width: calc(50% - 15px); } + .article-list h1 { + overflow-x: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + .article-list h1:hover { white-space: inherit; } } @media (min-width: 1080px) { .list section { max-width: calc(33.33333% - 15px); } -- cgit v1.2.3