1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

CSS fixups

This commit is contained in:
U-PAWEL-X220\pawel 2017-01-01 21:18:02 +01:00
parent c569913baa
commit 2ed44f34b1
3 changed files with 305 additions and 372 deletions

307
main.css
View file

@ -15,15 +15,15 @@ body {
font-size: 12px; font-size: 12px;
color: #303030; color: #303030;
background-color: #3d3f3e; background-color: #3d3f3e;
margin: 0px; margin: 0;
padding: 0px; padding: 0;
overflow: hidden; overflow: hidden;
} }
a { a {
text-decoration: none; text-decoration: none;
color: #000; color: #000;
font-family: 'open_sanssemibold', Arial; font-family: 'open_sanssemibold', Arial, serif;
} }
a:hover { a:hover {
@ -45,9 +45,8 @@ a.disabled {
height: 14px; height: 14px;
width: 14px; width: 14px;
opacity: 0.2; opacity: 0.2;
background-image: url(images/icons/cf_icon_info_grey.svg); background: url(images/icons/cf_icon_info_grey.svg) center;
background-size: contain; background-size: contain;
background-position: center;
transition: none; transition: none;
} }
@ -65,10 +64,10 @@ a.disabled {
border: 1px solid #3a9dbf; border: 1px solid #3a9dbf;
color: #fff; color: #fff;
float: right; float: right;
font-family: 'open_sansbold', Arial; font-family: 'open_sansbold', Arial, serif;
font-size: 10px; font-size: 10px;
line-height: 17px; line-height: 17px;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.03em; letter-spacing: 0.03em;
display: block; display: block;
@ -81,7 +80,7 @@ a.disabled {
/* documentation button end */ /* documentation button end */
input[type="number"]::-webkit-inner-spin-button { input[type="number"]::-webkit-inner-spin-button {
opacity: 1; /* required for chromium 33+ beta */ opacity: 1;
margin-left: 5px; margin-left: 5px;
} }
@ -98,7 +97,7 @@ input[type="number"]::-webkit-inner-spin-button {
} }
#main-wrapper { #main-wrapper {
padding: 0px 0px 0 0px; /* padding: 5px 5px 0 5px; */ padding: 0;
height: calc(100% - 7px); height: calc(100% - 7px);
} }
@ -116,16 +115,13 @@ input[type="number"]::-webkit-inner-spin-button {
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.15)); background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.15));
} }
#logo { #logo {
position: absolute; position: absolute;
float: left; float: left;
height: 80px; height: 80px;
z-index: 0; z-index: 0;
background-image: url("images/light-wide-2.svg");
background-repeat: no-repeat;
width: 450px; width: 450px;
background-position: left center; background: url("images/light-wide-2.svg") no-repeat left center;
background-size: contain; background-size: contain;
margin-left: 15px; margin-left: 15px;
margin-top: 10px; margin-top: 10px;
@ -135,7 +131,7 @@ input[type="number"]::-webkit-inner-spin-button {
position: absolute; position: absolute;
height: 20px; height: 20px;
width: 125px; width: 125px;
left: 0px; left: 0;
top: 65px; top: 65px;
color: #949494; color: #949494;
opacity: 0.5; opacity: 0.5;
@ -161,13 +157,12 @@ input[type="number"]::-webkit-inner-spin-button {
margin-bottom: 5px; margin-bottom: 5px;
} }
#port-override { #port-override {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
color: #888888; color: #888888;
width: 140px; width: 140px;
margin-left: 2px; margin-left: 2px;
margin-top: 0px; margin-top: 0;
padding: 1px; padding: 1px;
border-radius: 3px; border-radius: 3px;
height: 15px; height: 15px;
@ -206,9 +201,8 @@ input[type="number"]::-webkit-inner-spin-button {
height: 67px; height: 67px;
border-radius: 5px; border-radius: 5px;
border: 1px solid #272727; border: 1px solid #272727;
box-shadow: 0px 2px 0px rgba(92, 92, 92, 0.5); box-shadow: 0 2px 0 rgba(92, 92, 92, 0.5);
background-color: #434343; background: #434343 -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55));
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55));
} }
#sensor-status li { #sensor-status li {
@ -217,22 +211,18 @@ input[type="number"]::-webkit-inner-spin-button {
width: 33px; width: 33px;
line-height: 18px; line-height: 18px;
text-align: center; text-align: center;
border-top: 1px solid #373737; border: 1px solid #373737;
border-bottom: 1px solid #1a1a1a; border-right-color: #222222;
border-left: 1px solid #373737; border-bottom-color: #1a1a1a;
border-right: 1px solid #222222; background: #434343 -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.45));
background-color: #434343;
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.45));
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
text-shadow: 0px 1px rgba(0, 0, 0, 1.0); text-shadow: 0 1px rgba(0, 0, 0, 1.0);
} }
.gyroicon { .gyroicon {
background-image: url(images/icons/sensor_gyro_off.png); background: url(images/icons/sensor_gyro_off.png) no-repeat top;
background-size: 43px; background-size: 43px;
background-position: top;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -247,10 +237,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.accicon { .accicon {
background-image: url(images/icons/sensor_acc_off.png); background: url(images/icons/sensor_acc_off.png) no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
background-position: -5px 2px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -270,10 +258,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.magicon { .magicon {
background-image: url(images/icons/sensor_mag_off.png); background: url(images/icons/sensor_mag_off.png) no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
background-position: -5px 2px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -286,16 +272,15 @@ input[type="number"]::-webkit-inner-spin-button {
background-image: url(images/icons/sensor_mag_on.png); background-image: url(images/icons/sensor_mag_on.png);
color: #818181; color: #818181;
} }
.magicon.error { .magicon.error {
background-image: url(images/icons/sensor_mag_error.png); background-image: url(images/icons/sensor_mag_error.png);
color: #d40000; color: #d40000;
} }
.gpsicon { .gpsicon {
background-image: url(images/icons/sensor_sat_off.png); background: url(images/icons/sensor_sat_off.png) no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
background-position: -5px 2px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -315,10 +300,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.opflowicon { .opflowicon {
background-image: url(images/icons/sensor_flow_off.png); background: url(images/icons/sensor_flow_off.png) no-repeat -5px 0;
background-size: 42px; background-size: 42px;
background-position: -5px 0px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -338,10 +321,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.baroicon { .baroicon {
background-image: url(images/icons/sensor_baro_off.png); background: url(images/icons/sensor_baro_off.png) no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
background-position: -5px 2px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -361,10 +342,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.sonaricon { .sonaricon {
background-image: url(images/icons/sensor_sonar_off.png); background: url(images/icons/sensor_sonar_off.png) no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
background-position: -4px 1px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -384,10 +363,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.airspeedicon { .airspeedicon {
background-image: url(images/icons/sensor_airspeed_off.png); background: url(images/icons/sensor_airspeed_off.png) no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
background-position: -4px 1px;
background-repeat: no-repeat;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
width: 100%; width: 100%;
@ -407,20 +384,19 @@ input[type="number"]::-webkit-inner-spin-button {
} }
#sensor-status li:last-child { #sensor-status li:last-child {
border-right: 0px solid #c0c0c0; border-right: 0 solid #c0c0c0;
border-top-right-radius: 5px; border-top-right-radius: 5px;
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
} }
#sensor-status li:first-child { #sensor-status li:first-child {
border-left: 0px solid #c0c0c0; border-left: 0 solid #c0c0c0;
border-top-left-radius: 5px; border-top-left-radius: 5px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }
#sensor-status .on { #sensor-status .on {
background-color: #434343; background: #434343 -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.45));
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.45));
} }
#options { #options {
@ -429,9 +405,7 @@ input[type="number"]::-webkit-inner-spin-button {
height: 20px; height: 20px;
margin-top: 10px; margin-top: 10px;
margin-right: 10px; margin-right: 10px;
background-image: url('./images/CF_settings_white.svg'); background: url('./images/CF_settings_white.svg') no-repeat -1px -1px;
background-position: -1px -1px;
background-repeat: no-repeat;
opacity: 0.4; opacity: 0.4;
} }
@ -468,8 +442,8 @@ input[type="number"]::-webkit-inner-spin-button {
/* Log setup*/ /* Log setup*/
#log { #log {
margin-bottom: 0px; margin-bottom: 0;
border: 0px solid silver; /* was 1px*/ border: 0 solid silver;
background-color: #242424; background-color: #242424;
color: #ccc; color: #ccc;
color: rgba(255, 255, 255, 0.60); color: rgba(255, 255, 255, 0.60);
@ -484,8 +458,7 @@ input[type="number"]::-webkit-inner-spin-button {
top: 113px; top: 113px;
height: 27px; height: 27px;
width: 27px; width: 27px;
background-image: url(images/icons/scroll.svg); background: url(images/icons/scroll.svg) no-repeat;
background-repeat: no-repeat;
background-size: 100%; background-size: 100%;
opacity: 0.0; opacity: 0.0;
transition: all ease 0.3s; transition: all ease 0.3s;
@ -508,21 +481,10 @@ input[type="number"]::-webkit-inner-spin-button {
} }
#log .wrapper { #log .wrapper {
padding: 5px; /* was 5*/ padding: 5px 5px 4px 10px;
padding-left: 10px;
padding-bottom: 4px;
-webkit-user-select: text; -webkit-user-select: text;
position: relative; position: relative;
bottom: 0px; bottom: 0;
}
#log a {
font-weight: regular;
color: #59aa29;
}
#log a:hover {
text-decoration: underline;
} }
/* Log switch */ /* Log switch */
@ -579,15 +541,15 @@ input[type="number"]::-webkit-inner-spin-button {
} }
#tabs li:first-child { #tabs li:first-child {
border-top: 0px; border-top: 0;
} }
#tabs li:last-child { #tabs li:last-child {
border-bottom: 0px; border-bottom: 0;
} }
#tabs li a { #tabs li a {
font-family: 'open_sansregular', Arial; font-family: 'open_sansregular', Arial, serif;
padding-left: 33px; padding-left: 33px;
padding-top: 5px; padding-top: 5px;
padding-bottom: 3px; padding-bottom: 3px;
@ -595,7 +557,7 @@ input[type="number"]::-webkit-inner-spin-button {
color: #999999; color: #999999;
height: 23px; height: 23px;
display: block; display: block;
text-shadow: 0px 1px rgba(0, 0, 0, 0.45); text-shadow: 0 1px rgba(0, 0, 0, 0.45);
transition: none; transition: none;
border-top: solid 1px rgba(255, 255, 255, 0.05); border-top: solid 1px rgba(255, 255, 255, 0.05);
/* following is just for a graceful degradation */ /* following is just for a graceful degradation */
@ -628,9 +590,8 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.tabicon { .tabicon {
background-repeat: no-repeat; background: no-repeat 13px 7px;
background-size: 15px; background-size: 15px;
background-position: 13px 7px;
} }
/* Tab-Icons */ /* Tab-Icons */
@ -874,9 +835,11 @@ li.active .ic_transponder {
li.active .ic_failsafe { li.active .ic_failsafe {
background-image: url(images/icons/cf_icon_failsafe_white.svg); background-image: url(images/icons/cf_icon_failsafe_white.svg);
} }
.ic_backup { .ic_backup {
background-image: url(images/icons/cf_icon_backup_grey.svg); background-image: url(images/icons/cf_icon_backup_grey.svg);
} }
.ic_backup:hover { .ic_backup:hover {
background-image: url(images/icons/cf_icon_backup_white.svg); background-image: url(images/icons/cf_icon_backup_white.svg);
} }
@ -888,6 +851,7 @@ li.active .ic_backup {
.ic_wizzard { .ic_wizzard {
background-image: url(images/icons/cf_icon_wizard_grey.svg); background-image: url(images/icons/cf_icon_wizard_grey.svg);
} }
.ic_wizzard:hover { .ic_wizzard:hover {
background-image: url(images/icons/cf_icon_wizard_white.svg); background-image: url(images/icons/cf_icon_wizard_white.svg);
} }
@ -899,6 +863,7 @@ li.active .ic_wizard {
.ic_advanced { .ic_advanced {
background-image: url(images/icons/cf_icon_advanced_grey.svg); background-image: url(images/icons/cf_icon_advanced_grey.svg);
} }
.ic_advanced:hover { .ic_advanced:hover {
background-image: url(images/icons/cf_icon_advanced_white.svg); background-image: url(images/icons/cf_icon_advanced_white.svg);
} }
@ -910,6 +875,7 @@ li.active .ic_advanced {
.ic_mission { .ic_mission {
background-image: url(images/icons/cf_icon_mission_grey.svg); background-image: url(images/icons/cf_icon_mission_grey.svg);
} }
.ic_mission:hover { .ic_mission:hover {
background-image: url(images/icons/cf_icon_mission_white.svg); background-image: url(images/icons/cf_icon_mission_white.svg);
} }
@ -919,26 +885,26 @@ li.active .ic_mission {
} }
#content { #content {
margin-top: 0px; margin-top: 0;
padding: 0px; padding: 0;
height: calc(100% - 150px); height: calc(100% - 150px);
/* (port picker 105px, log CLOSED 25px, status bar: 20px + padding) - was: calc(100% - 171px)*/ /* (port picker 105px, log CLOSED 25px, status bar: 20px + padding) - was: calc(100% - 171px)*/
background-color: white; background-color: white;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
border: 0px solid #848484; border: 0 solid #848484;
-webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */ -webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */
transition: all 0.3s; transition: all 0.3s;
} }
#content.logopen { #content.logopen {
margin-top: 0px; margin-top: 0;
padding: 0px; padding: 0;
height: calc(100% - 234px); /* (port picker, log OPEN, status bar: 20px + padding) - was: calc(100% - 171px)*/ height: calc(100% - 234px); /* (port picker, log OPEN, status bar: 20px + padding) - was: calc(100% - 171px)*/
background-color: white; background-color: white;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
border: 0px solid #848484; border: 0 solid #848484;
-webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */ -webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */
transition: all 0.5s; transition: all 0.5s;
/* Cause the height to shrink to contain its floated contents while log is open */ /* Cause the height to shrink to contain its floated contents while log is open */
@ -946,7 +912,7 @@ li.active .ic_mission {
#status-bar { #status-bar {
position: fixed; position: fixed;
bottom: 0px; bottom: 0;
width: calc(100% - 20px); width: calc(100% - 20px);
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
@ -976,9 +942,7 @@ li.active .ic_mission {
.data-loading { .data-loading {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: url('../images/loading-bars.svg'); background: url('../images/loading-bars.svg') no-repeat center 45%;
background-repeat: no-repeat;
background-position: center 45%;
} }
.data-loading p { .data-loading p {
@ -1007,7 +971,7 @@ dialog {
font-size: 20px; font-size: 20px;
line-height: 24px; line-height: 24px;
height: 30px; height: 30px;
font-family: 'open_sanslight', Arial; font-family: 'open_sanslight', Arial, serif;
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -1019,7 +983,7 @@ dialog {
margin-top: 3px; margin-top: 3px;
border-radius: 3px; border-radius: 3px;
font-size: 11px; font-size: 11px;
font-family: 'open_sansregular', Arial; font-family: 'open_sansregular', Arial, serif;
} }
.note_spacer { .note_spacer {
@ -1049,23 +1013,21 @@ dialog {
.content_toolbar .btn a { .content_toolbar .btn a {
/* common styles for content toolbar buttons */ /* common styles for content toolbar buttons */
margin-top: 0px; margin-top: 0;
margin-bottom: 0px; margin-bottom: 0;
margin-right: 20px; margin-right: 20px;
background-color: #37a8db; background-color: #37a8db;
border-radius: 3px; border-radius: 3px;
border: 1px solid #3394b5; border: 1px solid #3394b5;
color: #fff; color: #fff;
float: right; float: right;
font-family: 'open_sansbold', Arial; font-family: 'open_sansbold', Arial, serif;
font-size: 12px; font-size: 12px;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
display: block; display: block;
cursor: pointer; cursor: pointer;
transition: all ease 0.2s; transition: all ease 0.2s;
padding: 0px; padding: 0 9px;
padding-left: 9px;
padding-right: 9px;
line-height: 28px; line-height: 28px;
} }
@ -1077,7 +1039,7 @@ dialog {
.content_toolbar .btn a:active { .content_toolbar .btn a:active {
background-color: #37a8db; background-color: #37a8db;
transition: all ease 0.0s; transition: all ease 0.0s;
box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.35); box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.35);
} }
.content_toolbar .btn a.disabled { .content_toolbar .btn a.disabled {
@ -1115,7 +1077,7 @@ dialog {
/* Colums START> */ /* Colums START> */
.cf_column { .cf_column {
min-height: 20px; min-height: 20px;
margin-bottom: 0px; margin-bottom: 0;
} }
.full { .full {
@ -1193,7 +1155,7 @@ dialog {
float: left; float: left;
width: calc(100% - 2px); width: calc(100% - 2px);
margin-bottom: 10px; margin-bottom: 10px;
font-family: 'open_sansregular', Arial; font-family: 'open_sansregular', Arial, serif;
} }
.gui_warning { .gui_warning {
@ -1205,8 +1167,7 @@ dialog {
} }
.gui_warning .gui_box_titlebar { .gui_warning .gui_box_titlebar {
background-color: #dc0000; background: #dc0000 linear-gradient(-45deg, rgba(255, 255, 255, .3) 10%, transparent 10%, transparent 20%,
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) 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) 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) 60%, rgba(255, 255, 255, .3) 70%, transparent 70%, transparent 80%,
@ -1214,6 +1175,7 @@ dialog {
rgba(255, 255, 255, .4) 100%, transparent); rgba(255, 255, 255, .4) 100%, transparent);
} }
/*noinspection CssNegativeValue*/
.gui_note .gui_box_titlebar { .gui_note .gui_box_titlebar {
background-image: linear-gradient(-45deg, rgba(255, 255, 255, .3) 10%, transparent 10%, transparent 20%, 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) 20%, rgba(255, 255, 255, .3) 30%, transparent 30%, transparent 40%,
@ -1223,7 +1185,6 @@ dialog {
rgba(255, 255, 255, .4) 100%, transparent); rgba(255, 255, 255, .4) 100%, transparent);
} }
.grey { .grey {
/* background-color:#f5f5f5; */ /* background-color:#f5f5f5; */
background-color: #f9f9f9 background-color: #f9f9f9
@ -1231,14 +1192,14 @@ dialog {
.gui_box_titlebar { .gui_box_titlebar {
background-color: #e4e4e4; background-color: #e4e4e4;
border-radius: 3px 3px 0px 0px; border-radius: 3px 3px 0 0;
font-size: 13px; font-size: 13px;
width: 100%; width: 100%;
height: 27px; height: 27px;
padding-bottom: 0px; padding-bottom: 0;
float: left; float: left;
margin-bottom: 7px; margin-bottom: 7px;
font-family: 'open_sanssemibold', Arial; font-family: 'open_sanssemibold', Arial, serif;
} }
.spacer_box { .spacer_box {
@ -1250,7 +1211,7 @@ dialog {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
padding-top: 4px; padding-top: 4px;
margin-bottom: 0px; margin-bottom: 0;
float: left; float: left;
} }
@ -1262,28 +1223,26 @@ dialog {
width: calc(100% + 40px); width: calc(100% + 40px);
margin-left: -20px; margin-left: -20px;
box-shadow: rgba(0, 0, 0, 0.00) 0 -3px 8px; box-shadow: rgba(0, 0, 0, 0.00) 0 -3px 8px;
bottom: 0px; bottom: 0;
margin-bottom: 0px; margin-bottom: 0;
} }
.fixed_band .save_btn a { .fixed_band .save_btn a {
margin-top: 9px; margin-top: 9px;
margin-bottom: 0px; margin-bottom: 0;
margin-right: 20px; margin-right: 20px;
background-color: #59aa29; background-color: #59aa29;
border-radius: 3px; border-radius: 3px;
border: 1px solid #4c8829; border: 1px solid #4c8829;
color: #fff; color: #fff;
float: right; float: right;
font-family: 'open_sansbold', Arial; font-family: 'open_sansbold', Arial, serif;
font-size: 12px; font-size: 12px;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
display: block; display: block;
cursor: pointer; cursor: pointer;
transition: all ease 0.2s; transition: all ease 0.2s;
padding: 0px; padding: 0 9px;
padding-left: 9px;
padding-right: 9px;
line-height: 28px; line-height: 28px;
} }
@ -1297,18 +1256,18 @@ dialog {
width: 100%; width: 100%;
position: relative; position: relative;
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 0px; margin-top: 0;
float: left; float: left;
} }
.default_btn a { .default_btn a {
padding: 5px 0px 5px 0px; padding: 5px 0 5px 0;
text-align: center; text-align: center;
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
border: 1px solid #37a8db; border: 1px solid #37a8db;
color: #37a8db; color: #37a8db;
font-family: 'open_sanssemibold', Arial; font-family: 'open_sanssemibold', Arial, serif;
font-size: 12px; font-size: 12px;
line-height: 13px; line-height: 13px;
display: block; display: block;
@ -1325,7 +1284,7 @@ dialog {
.default_btn a:hover { .default_btn a:hover {
background-color: #37a8db; background-color: #37a8db;
color: #fff !important; color: #fff !important;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
transition: all ease 0.2s; transition: all ease 0.2s;
text-decoration: none; text-decoration: none;
@ -1334,14 +1293,14 @@ dialog {
.default_btn a:active { .default_btn a:active {
background-color: #37a8db; background-color: #37a8db;
transition: all ease 0.0s; transition: all ease 0.0s;
box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.35); box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.35);
} }
.small { .small {
width: auto; width: auto;
position: relative; position: relative;
margin-bottom: 7px; margin-bottom: 7px;
margin-top: 0px; margin-top: 0;
margin-right: 5px; margin-right: 5px;
float: left; float: left;
} }
@ -1349,12 +1308,12 @@ dialog {
.small a { .small a {
padding: 3px 4px 4px 4px; padding: 3px 4px 4px 4px;
text-align: center; text-align: center;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
background-color: #acacac; background-color: #acacac;
border-radius: 3px; border-radius: 3px;
border: 1px solid #949494; border: 1px solid #949494;
color: #fff; color: #fff;
font-family: 'open_sanssemibold', Arial; font-family: 'open_sanssemibold', Arial, serif;
font-size: 11px; font-size: 11px;
line-height: 11px; line-height: 11px;
display: block; display: block;
@ -1364,7 +1323,7 @@ dialog {
.small a:hover { .small a:hover {
background-color: #45bce5; background-color: #45bce5;
color: #fff; color: #fff;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
border: 1px solid #3a9dbf; border: 1px solid #3a9dbf;
transition: all ease 0.2s; transition: all ease 0.2s;
} }
@ -1372,12 +1331,12 @@ dialog {
.small a:active { .small a:active {
background-color: #878787; background-color: #878787;
transition: all ease 0.0s; transition: all ease 0.0s;
box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.35); box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.35);
} }
.green a { .green a {
background-color: #37a8db; background-color: #37a8db;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
color: #fff; color: #fff;
border: 1px solid #3a9dbf; border: 1px solid #3a9dbf;
transition: all ease 0.2s; transition: all ease 0.2s;
@ -1386,7 +1345,7 @@ dialog {
.green a:hover { .green a:hover {
background-color: #45bce5; background-color: #45bce5;
border: 1px solid #3a9dbf; border: 1px solid #3a9dbf;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
color: #fff; color: #fff;
transition: all ease 0.2s; transition: all ease 0.2s;
} }
@ -1401,11 +1360,10 @@ dialog {
} }
.cf_table td { .cf_table td {
border: 0px;
border-bottom: solid 1px #ccc;
padding-top: 2px; padding-top: 2px;
padding-bottom: 5px; padding-bottom: 5px;
border-style: dotted; border: 0 dotted;
border-bottom: 1px #ccc;
} }
.noboarder td { .noboarder td {
@ -1438,7 +1396,7 @@ dialog {
.connect_controls { .connect_controls {
position: relative; position: relative;
float: right; float: right;
left: 0px; left: 0;
top: 19px; top: 19px;
height: 70px; height: 70px;
width: 60px; width: 60px;
@ -1454,7 +1412,7 @@ dialog {
height: 50px; height: 50px;
width: 50px; width: 50px;
border-radius: 100px; border-radius: 100px;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.35); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
float: left; float: left;
margin-left: 5px; margin-left: 5px;
margin-bottom: 7px; margin-bottom: 7px;
@ -1462,12 +1420,9 @@ dialog {
} }
.connect_b a.connect { .connect_b a.connect {
background-color: #37a8db;
border: 1px solid #339cc1; border: 1px solid #339cc1;
background-image: url(images/icons/cf_icon_usb2_white.svg);
background-repeat: no-repeat;
background-size: 44px; background-size: 44px;
background-position: center 6px; background: #37a8db url(images/icons/cf_icon_usb2_white.svg) no-repeat center 6px;
transition: none; transition: none;
} }
@ -1476,9 +1431,8 @@ dialog {
} }
.connect_b a.connect.active { .connect_b a.connect.active {
background-color: #e60000;
border: 1px solid #fe0000; border: 1px solid #fe0000;
background-image: url(images/icons/cf_icon_usb1_white.svg); background: #e60000 url(images/icons/cf_icon_usb1_white.svg);
transition: none; transition: none;
} }
@ -1493,8 +1447,8 @@ dialog {
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
font-family: 'open_sansregular', Arial; font-family: 'open_sansregular', Arial, serif;
text-shadow: 0px 1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(0, 0, 0, 0.25);
margin-top: -1px; margin-top: -1px;
} }
@ -1523,9 +1477,7 @@ dialog {
/* GPS Fix styling*/ /* GPS Fix styling*/
.fix3d { .fix3d {
background-color: #56ac1d; background-color: #56ac1d;
padding: 2px; padding: 2px 5px;
padding-left: 5px;
padding-right: 5px;
border-radius: 3px; border-radius: 3px;
color: #fff; color: #fff;
font-size: 10px; font-size: 10px;
@ -1533,23 +1485,12 @@ dialog {
.fix2d { .fix2d {
background-color: #bcbf10; background-color: #bcbf10;
padding: 2px; padding: 2px 5px;
padding-left: 5px;
padding-right: 5px;
border-radius: 3px; border-radius: 3px;
color: #fff; color: #fff;
font-size: 10px; font-size: 10px;
} }
.fixnone {
background-color: #e60000;
padding: 2px;
padding-left: 5px;
padding-right: 5px;
border-radius: 3px;
color: #fff;
font-size: 10px;
}
/* Dataflash element styling*/ /* Dataflash element styling*/
#dataflash_wrapper_global { #dataflash_wrapper_global {
@ -1563,12 +1504,11 @@ dialog {
height: 33px; height: 33px;
border-radius: 5px; border-radius: 5px;
border: 1px solid #272727; border: 1px solid #272727;
box-shadow: 0px 1px 0px rgba(92, 92, 92, 0.5); box-shadow: 0 1px 0 rgba(92, 92, 92, 0.5);
background-color: #434343; background: #434343 -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55));
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55));
padding-top: 5px; padding-top: 5px;
display: none; display: none;
text-shadow: 0px 1px rgba(0, 0, 0, 1.0); text-shadow: 0 1px rgba(0, 0, 0, 1.0);
} }
@ -1577,7 +1517,7 @@ dialog {
margin-top: 16px; margin-top: 16px;
width: 125px; width: 125px;
float: right; float: right;
margin-right: 0px; margin-right: 0;
line-height: 12px; line-height: 12px;
} }
@ -1594,13 +1534,11 @@ dialog {
margin-right: 5px; margin-right: 5px;
} }
.dataflash-free_global { .dataflash-free_global {
background-color: #37a8db; background-color: #37a8db;
border-radius: 4px; border-radius: 4px;
} }
.dataflash-contents_global .notsupported_global { .dataflash-contents_global .notsupported_global {
display: none; display: none;
} }
@ -1616,7 +1554,7 @@ dialog {
.dataflash-contents_global li div { .dataflash-contents_global li div {
position: absolute; position: absolute;
top: -18px; top: -18px;
margin-top: 0px; margin-top: 0;
left: 0; left: 0;
right: 0; right: 0;
width: 120px; width: 120px;
@ -1637,7 +1575,7 @@ dialog {
display: none; display: none;
color: #868686; color: #868686;
text-align: center; text-align: center;
text-shadow: 0px 1px rgba(0, 0, 0, 1.0); text-shadow: 0 1px rgba(0, 0, 0, 1.0);
margin-top: 2px; margin-top: 2px;
} }
@ -1659,10 +1597,9 @@ dialog {
height: 67px; height: 67px;
border-radius: 5px; border-radius: 5px;
border: 1px solid #272727; border: 1px solid #272727;
box-shadow: 0px 1px 0px rgba(92, 92, 92, 0.5); box-shadow: 0 1px 0 rgba(92, 92, 92, 0.5);
background-color: #434343; background: #434343 -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55));
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.55)); text-shadow: 0 1px rgba(0, 0, 0, 1.0);
text-shadow: 0px 1px rgba(0, 0, 0, 1.0);
} }
.quad-status-contents { .quad-status-contents {
@ -1671,15 +1608,13 @@ dialog {
margin-left: 14px; margin-left: 14px;
height: 10px; height: 10px;
width: 30px; width: 30px;
/* width: 30px; */
} }
.battery-legend { .battery-legend {
display: inline; display: inline;
position: relative; position: relative;
top: -2px; top: -2px;
margin-top: 0px; margin-top: 0;
left: 0; left: 0;
right: 0; right: 0;
width: 40px; width: 40px;
@ -1701,22 +1636,19 @@ dialog {
height: 11px; height: 11px;
position: relative; position: relative;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.20); box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.20);
border-radius: 0px; border-radius: 0;
background-color: #59AA29; background-color: #59AA29;
/* border-radius: 4px; */ margin-top: 0;
margin-top: 0px;
} }
.battery-icon { .battery-icon {
background-image: url(images/icons/cf_icon_bat_grey.svg);
background-size: contain;
background-position: center;
display: inline-block; display: inline-block;
height: 30px; height: 30px;
width: 60px; width: 60px;
transition: none; transition: none;
margin-top: 4px; margin-top: 4px;
background-repeat: no-repeat; background: url(images/icons/cf_icon_bat_grey.svg) no-repeat center;
background-size: contain;
} }
.armedicon, .armedicon,
@ -1738,6 +1670,7 @@ dialog {
.armedicon { .armedicon {
background-image: url(images/icons/cf_icon_armed_grey.svg); background-image: url(images/icons/cf_icon_armed_grey.svg);
} }
.failsafeicon { .failsafeicon {
background-image: url(images/icons/cf_icon_failsafe_grey.svg); background-image: url(images/icons/cf_icon_failsafe_grey.svg);
} }
@ -1754,8 +1687,6 @@ dialog {
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
} }
@media only screen and (max-width: 1055px) , only screen and (max-device-width: 1055px) { @media only screen and (max-width: 1055px) , only screen and (max-device-width: 1055px) {
.content_wrapper { .content_wrapper {
@ -1765,7 +1696,7 @@ dialog {
.tab_title { .tab_title {
font-size: 16px; font-size: 16px;
line-height: 18px; line-height: 18px;
font-family: 'open_sanslight', Arial; font-family: 'open_sanslight', Arial, serif;
margin-bottom: 10px; margin-bottom: 10px;
height: 22px; height: 22px;
} }
@ -1791,7 +1722,7 @@ dialog {
} }
#tabs li a { #tabs li a {
font-family: 'open_sansregular', Arial; font-family: 'open_sansregular', Arial, serif;
font-size: 12px; font-size: 12px;
padding-left: 60px; padding-left: 60px;
padding-top: 6px; padding-top: 6px;
@ -1812,7 +1743,7 @@ dialog {
.gui_box_titlebar { .gui_box_titlebar {
font-size: 12px; font-size: 12px;
height: 24px; height: 24px;
padding-bottom: 0px; padding-bottom: 0;
margin-bottom: 5px; margin-bottom: 5px;
float: left; float: left;
} }
@ -1821,7 +1752,7 @@ dialog {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
padding-top: 3px; padding-top: 3px;
margin-bottom: 0px; margin-bottom: 0;
float: left; float: left;
} }
@ -1839,12 +1770,12 @@ input {
} }
.gps_false { .gps_false {
padding: 0px 3px 0px 3px; padding: 0 3px 0 3px;
font-size: 10px; font-size: 10px;
} }
.gps_true { .gps_true {
padding: 0px 3px 0px 3px; padding: 0 3px 0 3px;
font-size: 10px; font-size: 10px;
} }

View file

@ -99,22 +99,24 @@
<div class="version"></div> <div class="version"></div>
</div> </div>
</div> </div>
<a id="options" href="#" i18n_title="options_title"></a> <a id="options" href="#" data-i18n_title="options_title"></a>
<div id="port-picker"> <div id="port-picker">
<div class="connect_controls" id="connectbutton"> <div class="connect_controls" id="connectbutton">
<div class="connect_b"> <div class="connect_b">
<a class="connect" href="#"></a> <a class="connect" href="#"></a>
</div> </div>
<a class="connect_state" i18n="connect"></a> <a class="connect_state" data-i18n="connect"></a>
</div> </div>
<div id="portsinput"> <div id="portsinput">
<div class="dropdown dropdown-dark"> <div class="dropdown dropdown-dark">
<!--suppress HtmlFormInputWithoutLabel -->
<select class="dropdown-select" id="port" title="Port"> <select class="dropdown-select" id="port" title="Port">
<option value="manual">Manual</option> <option value="manual">Manual</option>
<!-- port list gets generated here --> <!-- port list gets generated here -->
</select> </select>
</div> </div>
<div class="dropdown dropdown-dark"> <div class="dropdown dropdown-dark">
<!--suppress HtmlFormInputWithoutLabel -->
<select class="dropdown-select" id="baud" title="Baud Rate"> <select class="dropdown-select" id="baud" title="Baud Rate">
<option value="115200" selected="selected">115200</option> <option value="115200" selected="selected">115200</option>
<option value="57600">57600</option> <option value="57600">57600</option>
@ -134,7 +136,7 @@
</div> </div>
<div> <div>
<label><input class="auto_connect togglesmall" type="checkbox" /><span <label><input class="auto_connect togglesmall" type="checkbox" /><span
class="auto_connect" i18n="autoConnect"></span></label> class="auto_connect" data-i18n="autoConnect"></span></label>
</div> </div>
</div> </div>
</div> </div>
@ -149,6 +151,7 @@
<div id="profile_change"> <div id="profile_change">
<div class="dropdown dropdown-dark"> <div class="dropdown dropdown-dark">
<form name="profile-change" id="profile-change"> <form name="profile-change" id="profile-change">
<!--suppress HtmlFormInputWithoutLabel -->
<select class="dropdown-select" id="profilechange"> <select class="dropdown-select" id="profilechange">
<option value="0">Profile 1</option> <option value="0">Profile 1</option>
<option value="1">Profile 2</option> <option value="1">Profile 2</option>
@ -194,9 +197,9 @@
</div> </div>
<div class="battery-legend">Battery voltage</div> <div class="battery-legend">Battery voltage</div>
<div class="bottomStatusIcons"> <div class="bottomStatusIcons">
<div class="armedicon cf_tip" i18n_title="mainHelpArmed"></div> <div class="armedicon cf_tip" data-i18n_title="mainHelpArmed"></div>
<div class="failsafeicon cf_tip" i18n_title="mainHelpFailsafe"></div> <div class="failsafeicon cf_tip" data-i18n_title="mainHelpFailsafe"></div>
<div class="linkicon cf_tip" i18n_title="mainHelpLink"></div> <div class="linkicon cf_tip" data-i18n_title="mainHelpLink"></div>
</div> </div>
</div> </div>
</div> </div>
@ -212,29 +215,29 @@
<div class="tab_container"> <div class="tab_container">
<div id="tabs"> <div id="tabs">
<ul class="mode-disconnected"> <ul class="mode-disconnected">
<li class="tab_landing"><a href="#" i18n="tabLanding" class="tabicon ic_welcome" title="Welcome"></a></li> <li class="tab_landing"><a href="#" data-i18n="tabLanding" class="tabicon ic_welcome" title="Welcome"></a></li>
<li class="tab_help"><a href="#" i18n="tabHelp" class="tabicon ic_help" title="Documentation &amp; Support"></a></li> <li class="tab_help"><a href="#" data-i18n="tabHelp" class="tabicon ic_help" title="Documentation &amp; Support"></a></li>
<li class="tab_firmware_flasher"><a href="#" i18n="tabFirmwareFlasher" class="tabicon ic_flasher" title="Firmware Flasher"></a></li> <li class="tab_firmware_flasher"><a href="#" data-i18n="tabFirmwareFlasher" class="tabicon ic_flasher" title="Firmware Flasher"></a></li>
</ul> </ul>
<ul class="mode-connected"> <ul class="mode-connected">
<li class="tab_setup"><a href="#" i18n="tabSetup" class="tabicon ic_setup" title="Setup"></a></li> <li class="tab_setup"><a href="#" data-i18n="tabSetup" class="tabicon ic_setup" title="Setup"></a></li>
<li class="tab_ports"><a href="#" i18n="tabPorts" class="tabicon ic_ports" title="Ports"></a></li> <li class="tab_ports"><a href="#" data-i18n="tabPorts" class="tabicon ic_ports" title="Ports"></a></li>
<li class="tab_configuration"><a href="#" i18n="tabConfiguration" class="tabicon ic_config" title="Configuration"></a></li> <li class="tab_configuration"><a href="#" data-i18n="tabConfiguration" class="tabicon ic_config" title="Configuration"></a></li>
<li class="tab_failsafe"><a href="#" i18n="tabFailsafe" class="tabicon ic_failsafe" title="Failsafe"></a></li> <li class="tab_failsafe"><a href="#" data-i18n="tabFailsafe" class="tabicon ic_failsafe" title="Failsafe"></a></li>
<li class="tab_pid_tuning"><a href="#" i18n="tabPidTuning" class="tabicon ic_pid" title="PID Tuning"></a></li> <li class="tab_pid_tuning"><a href="#" data-i18n="tabPidTuning" class="tabicon ic_pid" title="PID Tuning"></a></li>
<li class="tab_receiver"><a href="#" i18n="tabReceiver" class="tabicon ic_rx" title="Receiver"></a></li> <li class="tab_receiver"><a href="#" data-i18n="tabReceiver" class="tabicon ic_rx" title="Receiver"></a></li>
<li class="tab_auxiliary"><a href="#" i18n="tabAuxiliary" class="tabicon ic_modes" title="Modes"></a></li> <li class="tab_auxiliary"><a href="#" data-i18n="tabAuxiliary" class="tabicon ic_modes" title="Modes"></a></li>
<li class="tab_adjustments"><a href="#" i18n="tabAdjustments" class="tabicon ic_adjust" title="Adjustments"></a></li> <li class="tab_adjustments"><a href="#" data-i18n="tabAdjustments" class="tabicon ic_adjust" title="Adjustments"></a></li>
<li class="tab_servos"><a href="#" i18n="tabServos" class="tabicon ic_servo" title="Servos"></a></li> <li class="tab_servos"><a href="#" data-i18n="tabServos" class="tabicon ic_servo" title="Servos"></a></li>
<li class="tab_gps"><a href="#" i18n="tabGPS" class="tabicon ic_gps" title="GPS"></a></li> <li class="tab_gps"><a href="#" data-i18n="tabGPS" class="tabicon ic_gps" title="GPS"></a></li>
<li class="tab_motors"><a href="#" i18n="tabMotorTesting" class="tabicon ic_motor" title="Motors"></a></li> <li class="tab_motors"><a href="#" data-i18n="tabMotorTesting" class="tabicon ic_motor" title="Motors"></a></li>
<li class="tab_osd"><a href="#" i18n="tabOSD" class="tabicon ic_osd" title="OSD"></a></li> <li class="tab_osd"><a href="#" data-i18n="tabOSD" class="tabicon ic_osd" title="OSD"></a></li>
<li class="tab_transponder"><a href="#" i18n="tabTransponder" class="tabicon ic_transponder" title="Transponder"></a></li> <li class="tab_transponder"><a href="#" data-i18n="tabTransponder" class="tabicon ic_transponder" title="Transponder"></a></li>
<li class="tab_led_strip"><a href="#" i18n="tabLedStrip" class="tabicon ic_led" title="LED Strip"></a></li> <li class="tab_led_strip"><a href="#" data-i18n="tabLedStrip" class="tabicon ic_led" title="LED Strip"></a></li>
<li class="tab_sensors"><a href="#" i18n="tabRawSensorData" class="tabicon ic_sensors" title="Sensors"></a></li> <li class="tab_sensors"><a href="#" data-i18n="tabRawSensorData" class="tabicon ic_sensors" title="Sensors"></a></li>
<li class="tab_logging"><a href="#" i18n="tabLogging" class="tabicon ic_log" title="Tethered Logging"></a></li> <li class="tab_logging"><a href="#" data-i18n="tabLogging" class="tabicon ic_log" title="Tethered Logging"></a></li>
<li class="tab_onboard_logging"><a href="#" i18n="tabOnboardLogging" class="tabicon ic_data" title="Onboard Logging"></a></li> <li class="tab_onboard_logging"><a href="#" data-i18n="tabOnboardLogging" class="tabicon ic_data" title="Onboard Logging"></a></li>
<li class="tab_cli"><a href="#" i18n="tabCLI" class="tabicon ic_cli" title="CLI"></a></li> <li class="tab_cli"><a href="#" data-i18n="tabCLI" class="tabicon ic_cli" title="CLI"></a></li>
<!-- spare icons <!-- spare icons
<li class=""><a href="#"class="tabicon ic_mission">Mission (spare icon)</a></li> <li class=""><a href="#"class="tabicon ic_mission">Mission (spare icon)</a></li>
<li class=""><a href="#"class="tabicon ic_advanced">Advanced (spare icon)</a></li> <li class=""><a href="#"class="tabicon ic_advanced">Advanced (spare icon)</a></li>
@ -247,17 +250,17 @@
<div id="content"></div> <div id="content"></div>
<div id="status-bar"> <div id="status-bar">
<div> <div>
<span i18n="statusbar_port_utilization"></span> <span class="port_usage_down">D: 0%</span> <span <span data-i18n="statusbar_port_utilization"></span> <span class="port_usage_down">D: 0%</span> <span
class="port_usage_up">U: 0%</span> class="port_usage_up">U: 0%</span>
</div> </div>
<div> <div>
<span i18n="statusbar_packet_error"></span> <span class="packet-error">0</span> <span data-i18n="statusbar_packet_error"></span> <span class="packet-error">0</span>
</div> </div>
<div> <div>
<span i18n="statusbar_i2c_error"></span> <span class="i2c-error">0</span> <span data-i18n="statusbar_i2c_error"></span> <span class="i2c-error">0</span>
</div> </div>
<div> <div>
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span> <span data-i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
</div> </div>
<div> <div>
<span class="cpu-load"> </span> <span class="cpu-load"> </span>

37
main.js
View file

@ -1,4 +1,4 @@
/*global $, chrome*/ /*global $, chrome, analytics*/
'use strict'; 'use strict';
// Google Analytics // Google Analytics
@ -9,6 +9,8 @@ googleAnalyticsService.getConfig().addCallback(function (config) {
googleAnalyticsConfig = config; googleAnalyticsConfig = config;
}); });
chrome.storage = chrome.storage || {};
$(document).ready(function () { $(document).ready(function () {
// translate to user-selected language // translate to user-selected language
localize(); localize();
@ -190,7 +192,7 @@ $(document).ready(function () {
$('#tabs ul.mode-disconnected li a:first').click(); $('#tabs ul.mode-disconnected li a:first').click();
// options // options
$('a#options').click(function () { $('#options').click(function () {
var el = $(this); var el = $(this);
if (!el.hasClass('active')) { if (!el.hasClass('active')) {
@ -246,8 +248,10 @@ $(document).ready(function () {
} }
}); });
var $content = $("#content");
// listen to all input change events and adjust the value within limits if necessary // listen to all input change events and adjust the value within limits if necessary
$("#content").on('focus', 'input[type="number"]', function () { $content.on('focus', 'input[type="number"]', function () {
var element = $(this), var element = $(this),
val = element.val(); val = element.val();
@ -256,7 +260,7 @@ $(document).ready(function () {
} }
}); });
$("#content").on('keydown', 'input[type="number"]', function (e) { $content.on('keydown', 'input[type="number"]', function (e) {
// whitelist all that we need for numeric control // whitelist all that we need for numeric control
var whitelist = [ var whitelist = [
96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, // numpad and standard number keypad 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, // numpad and standard number keypad
@ -271,7 +275,7 @@ $(document).ready(function () {
} }
}); });
$("#content").on('change', 'input[type="number"]', function () { $content.on('change', 'input[type="number"]', function () {
var element = $(this), var element = $(this),
min = parseFloat(element.prop('min')), min = parseFloat(element.prop('min')),
max = parseFloat(element.prop('max')), max = parseFloat(element.prop('max')),
@ -322,13 +326,16 @@ $(document).ready(function () {
}); });
$("#showlog").on('click', function() { $("#showlog").on('click', function() {
var state = $(this).data('state'); var state = $(this).data('state'),
$log = $("#log");
if (state) { if (state) {
$("#log").animate({height: 27}, 200, function() { $log.animate({height: 27}, 200, function() {
var command_log = $('div#log'); var command_log = $('div#log');
//noinspection JSValidateTypes
command_log.scrollTop($('div.wrapper', command_log).height()); command_log.scrollTop($('div.wrapper', command_log).height());
}); });
$("#log").removeClass('active'); $log.removeClass('active');
$("#content").removeClass('logopen'); $("#content").removeClass('logopen');
$(".tab_container").removeClass('logopen'); $(".tab_container").removeClass('logopen');
$("#scrollicon").removeClass('active'); $("#scrollicon").removeClass('active');
@ -336,8 +343,8 @@ $(document).ready(function () {
state = false; state = false;
}else{ }else{
$("#log").animate({height: 111}, 200); $log.animate({height: 111}, 200);
$("#log").addClass('active'); $log.addClass('active');
$("#content").addClass('logopen'); $("#content").addClass('logopen');
$(".tab_container").addClass('logopen'); $(".tab_container").addClass('logopen');
$("#scrollicon").addClass('active'); $("#scrollicon").addClass('active');
@ -368,16 +375,8 @@ function catch_startup_time(startTime) {
googleAnalytics.sendTiming('Load Times', 'Application Startup', timeSpent); googleAnalytics.sendTiming('Load Times', 'Application Startup', timeSpent);
} }
function microtime() {
var now = new Date().getTime() / 1000;
return now;
}
function millitime() { function millitime() {
var now = new Date().getTime(); return new Date().getTime();
return now;
} }
function bytesToSize(bytes) { function bytesToSize(bytes) {