Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-08-22 05:37:17 +0300
committerYihui Xie <xie@yihui.name>2017-08-22 05:37:17 +0300
commit9d61141b72212b363fc7febf8411edbbaa6dbea2 (patch)
treea1cb96a9d836d2ecbc886abc4bf5ae0af159a134
parent00804957491a703978b7ba18797f05aa066a764e (diff)
truncate title in case of two or three columns; expand title on hover
-rw-r--r--static/css/style.css6
1 files changed, 6 insertions, 0 deletions
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); }