From ad33d549e922bfa1bce6b2a5f511893f09b19cdb Mon Sep 17 00:00:00 2001 From: hamza zia Date: Fri, 18 Jan 2013 16:41:22 +0500 Subject: [PATCH] improved ui for download controls --- css/download.css | 21 ++++++++++++----- index.html | 59 +++++++++++++++++++++++++----------------------- 2 files changed, 46 insertions(+), 34 deletions(-) diff --git a/css/download.css b/css/download.css index 03d43a8..d651947 100644 --- a/css/download.css +++ b/css/download.css @@ -10,6 +10,8 @@ box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05); } .stats { + margin-top: 0px; + margin-bottom: 0px; margin-left: auto; margin-right: auto; text-align: center; @@ -18,19 +20,26 @@ padding: 5px; } +.download-progress { + margin: 0px; + padding-left: 5px; + padding-right: 5px; +} + .download-controls { - width: 60px; + width: 65px; + padding: 5px; } .download-controls .btn-group { - height: 70px; + height: 36px; width: 100%; float: right; } .download-controls .btn-group .btn:nth-child(1) { - width: 70%; + width: 60%; } .download-controls .btn-group .btn:nth-child(2) { - width: 30%; + width: 40%; } .download-controls .btn-group .btn { @@ -38,11 +47,11 @@ } .download-controls .btn-group .btn i { height: 100%; - font-size: 28px; + font-size: 18px; color: gray; } .download-overview { - padding: 10px; + padding: 5px; cursor: pointer; } .download-detail { diff --git a/index.html b/index.html index 657b664..a88870a 100755 --- a/index.html +++ b/index.html @@ -106,6 +106,36 @@
  • Size: {{size}}
  • {{/booleans.is_error}} + + +
    + {{#booleans.can_pause}} + + {{/booleans.can_pause}} + {{#booleans.can_play}} + + {{/booleans.can_play}} + {{#booleans.can_restart}} + + {{/booleans.can_restart}} + + +
    + + + + {{#booleans.can_pause}}
    @@ -133,38 +163,11 @@ {{/booleans.is_complete}} - -
    - {{#booleans.can_pause}} - - {{/booleans.can_pause}} - {{#booleans.can_play}} - - {{/booleans.can_play}} - {{#booleans.can_restart}} - - {{/booleans.can_restart}} - - -
    -
    - +
    • Status: {{status}}
    • GID: {{gid}}