From a4f9738a5d0f28c089dfa905781e2e292f8e83c2 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Tue, 4 Nov 2014 11:39:24 -0500 Subject: [PATCH] Improve topic.html demo --- examples/htdocs/topic.css | 40 ++++++++++++++++++++++++++++++++++++++-- examples/htdocs/topic.html | 18 +++++++++--------- 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/examples/htdocs/topic.css b/examples/htdocs/topic.css index 47da435..9e0e181 100644 --- a/examples/htdocs/topic.css +++ b/examples/htdocs/topic.css @@ -50,8 +50,15 @@ b, strong { } .mkws-summary { - padding: .5em 0; + margin: .5em 0; line-height: 1.35; + min-height: 60px; +} +.articles .mkws-summary, .alltargets .mkws-summary { + min-height: 0; +} +.articles .mkws-field-thumb, .alltargets .mkws-field-thumb { + display: none; } .mkws-summary:last-child { padding-bottom: 0; @@ -80,7 +87,7 @@ b, strong { } .mkws-google-image img { max-width: 100%; - max-height: 200px; + max-height: 180px; padding: 1em 0 .5em; } .list-group-item { @@ -90,6 +97,25 @@ b, strong { box-shadow: none; -webkit-box-shadow: none; } + +/* Fields */ +.mkws-field-thumb { + height: 60px; + width: 80px; + overflow: hidden; + margin-right: 1em; + float: left; +} +.mkws-field-thumb > img { + height: 60px; + max-width: 80px; +} +.mkws-field-description { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + @media screen and (min-width:700px) { .multicol { column-count: 2; @@ -100,3 +126,13 @@ b, strong { -webkit-column-gap: 20px; } } +@media screen and (min-width:900px) { + .multicol { + column-count: 3; + column-gap: 20px; + -moz-column-count: 3; + -moz-column-gap: 20px; + -webkit-column-count: 3; + -webkit-column-gap: 20px; + } +} diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html index 3a53765..34bf452 100644 --- a/examples/htdocs/topic.html +++ b/examples/htdocs/topic.html @@ -1,10 +1,9 @@ - - + - MKWS demo: Compound reference widget, Bootstrap edition + MKWS demo @@ -20,6 +19,7 @@ @@ -49,12 +49,12 @@