From d5ca017db2665c97eed736dd60e0f2f029cae685 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 30 Dec 2014 19:27:09 +0000 Subject: [PATCH] Reduce plugin sidebar item height by 8px. Unfortunately I can't use different sizes in edit and normal modes, because I must manually call updateSize() on the core-list after the transition has finished, which causes a jarring re-transform of the list elements. --- resources/report/html/loot-plugin-item.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/resources/report/html/loot-plugin-item.html b/resources/report/html/loot-plugin-item.html index 649c5626..23b7c5c7 100644 --- a/resources/report/html/loot-plugin-item.html +++ b/resources/report/html/loot-plugin-item.html @@ -24,6 +24,12 @@ /* Two-line items should be 72px high according to Material Design. Squeeze the height to fit more items in. */ /*height: 72px;*/ + height: 40px; + line-height: 40px; + font-size: 1rem; + } + :host-context(body[data-editors]) paper-item.two-line { + height: 40px; } #primary, #secondary, @@ -32,17 +38,19 @@ transition: 0.6s; } paper-item.two-line::shadow .button-content { - padding: 14px 16px; + padding: 0px 16px; } :host-context(body[data-editors]) paper-item.two-line::shadow .button-content { - padding: 7.5px 16px; + padding: 4.5px 16px; } #text { /* Padding is disabled as otherwise text won't fit in correctly. */ /*padding: 4px 0;*/ - line-height: normal; overflow: visible; } + :host-context(body[data-editors]) #text { + line-height: normal; + } :host-context(body[data-editors]) #primary { /* MD spec says 16sp, but that doesn't fit, so use 14sp. */ /*font-size: 1.143rem;*/