diff --git a/tabs/dataflash.css b/tabs/dataflash.css index 490054b0..0c458d8f 100644 --- a/tabs/dataflash.css +++ b/tabs/dataflash.css @@ -4,19 +4,14 @@ } .tab-dataflash .info .progressLabel { position: absolute; - width: 100%; height: 26px; - top: 0; left: 0; - text-align: center; line-height: 24px; - color: white; font-weight: bold; - /* text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.9);*/ } @@ -31,7 +26,6 @@ width: 12em; height: 20px; line-height: 20px; - font-weight: bold; } .tab-dataflash .dataflash-info dd { @@ -42,7 +36,6 @@ .tab-dataflash .speed { margin-top: 5px; width: 80px; - border: 1px solid silver; } .tab-dataflash .info { @@ -53,7 +46,6 @@ width: 120px; height: 20px; line-height: 20px; - font-weight: bold; } .tab-dataflash .info dd { @@ -64,7 +56,6 @@ } .tab-dataflash .buttons { width: calc(100% - 20px); - position: absolute; bottom: 10px; } @@ -72,11 +63,9 @@ display: none; } .tab-dataflash .dataflash-contents { - margin-top:5px; - + margin-top:5px; border:1px solid silver; background-color:#eee; - display:flex; flex-direction:row; flex-wrap:nowrap; diff --git a/tabs/firmware_flasher.css b/tabs/firmware_flasher.css index 3cdd42d9..07fafb79 100644 --- a/tabs/firmware_flasher.css +++ b/tabs/firmware_flasher.css @@ -4,21 +4,62 @@ } .tab-firmware_flasher .info .progressLabel { position: absolute; - width: 100%; height: 26px; - - top: 0; + top: 0px; left: 0; - text-align: center; line-height: 24px; - color: white; font-weight: bold; /* text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.9);*/ } + + +.red { + background-color: #dc0000; + + background-image: linear-gradient( + -45deg, + rgba(255, 255, 255, .3) 10%, + transparent 10%, + transparent 20%, + rgba(255, 255, 255, .3) 20%, + rgba(255, 255, 255, .3) 30%, + transparent 30%, + transparent 40%, + rgba(255, 255, 255, .3) 40%, + rgba(255, 255, 255, .3) 50%, + transparent 50%, + transparent 60%, + rgba(255, 255, 255, .3) 60%, + rgba(255, 255, 255, .3) 70%, + transparent 70%, + transparent 80%, + rgba(255, 255, 255, .3) 80%, + rgba(255, 255, 255, .3) 90%, + transparent 90%, + transparent 100%, + rgba(255, 255, 255, .4) 100%, + transparent ); + } + + +.darkgrey { + background-color: #575757; + } + + + +.tab-firmware_flasher .spacer_box_title { + float:none;} + +.tab-firmware_flasher .info { + float:left; + width:100%; + } + .tab-firmware_flasher .info .progressLabel a { color: white; } @@ -66,13 +107,13 @@ } .tab-firmware_flasher .options { position: relative; - margin-bottom: 10px; - padding: 5px; - line-height: 18px; + text-align:left; +} - border: 1px dotted silver; +.tab-firmware_flasher td { + text-align:left; } .tab-firmware_flasher .options label input { float: left; @@ -83,8 +124,8 @@ margin-left: 6px; } .tab-firmware_flasher .options select { - height: 20px; - + width: 250px; + height: 20px; border: 1px solid silver; } @@ -97,18 +138,24 @@ line-height: 20px; } .tab-firmware_flasher .options .description { - position: absolute; - left: 300px; - + position: relative; + left:0px; font-style: italic; color: #818181; } +.tab-firmware_flasher .cf_table td:last-child { + text-align:left; + +} + + .tab-firmware_flasher .options .flash_on_connect_wrapper { display: none; } .tab-firmware_flasher .options .manual_baud_rate select { - width: 70px; + width: 75px; + margin-left:19px; } .tab-firmware_flasher .release_info { @@ -172,22 +219,7 @@ .tab-firmware_flasher .git_info p a:hover { text-decoration: underline; } -.warning { - border: 1px solid silver; -} -.warning .title { - line-height: 20px; - - text-align: center; - font-weight: bold; - color: white; - border-bottom: 1px solid silver; - background-color: #cd4c4c; -} -.warning p { - padding: 5px; -} .tab-firmware_flasher .buttons { width: calc(100% - 20px); @@ -229,4 +261,14 @@ .tab-firmware_flasher .buttons a.back { float: right; margin: 0; -} \ No newline at end of file +} + +.btn a.disabled { + cursor: default; + color: #fff; + background-color:#AFAFAF; + border: none; + pointer-events: none; + text-shadow: none; + opacity: 0.5; +} diff --git a/tabs/firmware_flasher.html b/tabs/firmware_flasher.html index 8e8fd1da..2c2da571 100755 --- a/tabs/firmware_flasher.html +++ b/tabs/firmware_flasher.html @@ -1,35 +1,37 @@
-
-
- - - -
-
-
-
- + + + + - -
-
-
-
- + + + + - -
-
- + + + + - -
+ + + + +
+ + +

@@ -64,34 +71,48 @@

+ + +
+
-
-

-
+

+
+






-

+
-
-
-

-

-

+ + +
+
+

+

+
+
+ + + + +
- + +
+ + +
diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js index 8780a043..806eef9c 100755 --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -157,7 +157,7 @@ elems.forEach(function(html) { $('span.progressLabel').text(chrome.i18n.getMessage('firmwareFlasherLoadFirmwareFile')); $('div.git_info').slideUp(); $('div.release_info').slideUp(); - $('a.flash_firmware').addClass('locked'); + $('a.flash_firmware').addClass('disabled'); } }); @@ -206,7 +206,7 @@ elems.forEach(function(html) { if (parsed_hex) { googleAnalytics.sendEvent('Flashing', 'Firmware', 'local'); - $('a.flash_firmware').removeClass('locked'); + $('a.flash_firmware').removeClass('disabled'); $('span.progressLabel').text('Loaded Local Firmware: (' + parsed_hex.bytes_total + ' bytes)'); } else { @@ -227,10 +227,10 @@ elems.forEach(function(html) { */ $('select[name="release"]').change(function(evt){ if (evt.target.value=="0") { - $("a.load_remote_file").addClass('locked'); + $("a.load_remote_file").addClass('disabled'); } else { - $("a.load_remote_file").removeClass('locked'); + $("a.load_remote_file").removeClass('disabled'); } }); @@ -253,7 +253,7 @@ elems.forEach(function(html) { googleAnalytics.sendEvent('Flashing', 'Firmware', 'online'); $('span.progressLabel').html('Loaded Online Firmware: (' + parsed_hex.bytes_total + ' bytes)'); - $('a.flash_firmware').removeClass('locked'); + $('a.flash_firmware').removeClass('disabled'); if (summary.commit) { $.get('https://api.github.com/repos/cleanflight/cleanflight/commits/' + summary.commit, function (data) { @@ -302,7 +302,7 @@ elems.forEach(function(html) { function failed_to_load() { $('span.progressLabel').text(chrome.i18n.getMessage('firmwareFlasherFailedToLoadOnlineFirmware')); - $('a.flash_firmware').addClass('locked'); + $('a.flash_firmware').addClass('disabled'); } var summary = $('select[name="release"] option:selected').data('summary'); @@ -317,7 +317,7 @@ elems.forEach(function(html) { }); $('a.flash_firmware').click(function () { - if (!$(this).hasClass('locked')) { + if (!$(this).hasClass('disabled')) { if (!GUI.connect_lock) { // button disabled while flashing is in progress if (parsed_hex != false) { var options = {};