From bfa395944520c13064a26f3f94487131598503ab Mon Sep 17 00:00:00 2001 From: Luminarys Date: Sun, 17 Jan 2016 10:54:39 +0000 Subject: Replace old JavaScript with simpler vanilla version Pomf's old JavaScript is a frozen dependency hell with an old version of Zepto. The amount of code included has reached the point of unmaintainability, where nobody really understands very well how the code works. This code gets rid of all the previous client-side JavaScript and replaces it with new, vanilla JavaScript. No dependencies required. This new JavaScript should be quite a bit faster too. Browser backwards compatibility has not been tested yet, however it is expected that IE10 and later will work, improving our current backwards compatibility. Reviewed-by: Eliot Whalan [wub@partyvan.eu: Added Git commit message and fixed Git branching. Reverted /* outline-offset: -2px;*/ removal.] Signed-off-by: Juuso Lapinlampi --- css/pomf.css | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'css/pomf.css') diff --git a/css/pomf.css b/css/pomf.css index b582cf3..9a6b734 100644 --- a/css/pomf.css +++ b/css/pomf.css @@ -239,7 +239,7 @@ nav > ul > li:last-child:after { .error#upload-filelist { color: #891A18; } -.error#upload-filelist .file-size { +.error#upload-filelist .progress-percent { color: #B94A48; } .error#upload-filelist .file-progress { @@ -261,13 +261,12 @@ nav > ul > li:last-child:after { text-overflow: ellipsis; white-space: nowrap; } -.file-size, +.file-progress, .file-url { display: inline-block; float: right; font-size: 0.9em; margin-left: 8px; - color: #5C5C5C; vertical-align: middle; } .file-url a { @@ -276,9 +275,29 @@ nav > ul > li:last-child:after { .file-url a:hover { color: #1C1C1C; } +.progress-percent { + float: right; +} + +progress[value] { + /* Reset the default appearance */ + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + + border: none; + +} + +progress[value]::-webkit-progress-bar { + background-color: #eee; + border-radius: 2ps; + box-shadow: 0 2px 5px rgba(0,0,0,0.25) inset; +} + /* completed rows */ .completed .file-progress, -.completed .file-size { +.completed .progress-percent { display: none; } .completed .file-url { @@ -358,14 +377,8 @@ section.ded { margin-bottom: 12px; } .file-progress { - float: left; width: 70%; } - .file-size { - float: left; - max-width: 30%; - overflow: hidden; - } .file-name, .file-url { width: 100%; max-width: 100%; -- cgit v1.2.3