From f579fdcde45fbf43cd5ab38a407dd25494ab9cbf Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Mon, 31 Oct 2016 22:02:51 +0100 Subject: [PATCH] See #260 - shows short optimization summary. Why: * To let user know how much smaller output content is. --- docs/css/home.css | 5 +++++ docs/index.html | 1 + docs/js/drag-drop.js | 10 +++++++++- docs/js/optimizer-worker.js | 3 ++- docs/js/optimizer.js | 2 +- 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/css/home.css b/docs/css/home.css index 002132b9..b9db024a 100644 --- a/docs/css/home.css +++ b/docs/css/home.css @@ -86,6 +86,11 @@ a, article, body, div, fieldset, form, h1, h2, h3, h4, h5, h6, input, label, li, display: none; } +.dropped-files__file__summary { + color: hsl(0, 0%, 45%); + font-style: italic; +} + .dropped-files__file__action { display: inline-block; float: right; diff --git a/docs/index.html b/docs/index.html index 47a77508..fe67f79d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,6 +25,7 @@