mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
clean up some more code smells
duplicated CSS selectors extraneous code.
This commit is contained in:
parent
aa47d04fdb
commit
d56a170a5a
8 changed files with 17 additions and 47 deletions
|
@ -21,6 +21,7 @@
|
||||||
.tab-adjustments .adjustments {
|
.tab-adjustments .adjustments {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-spacing: 0px;
|
border-spacing: 0px;
|
||||||
|
background-color: #e4e4e4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-adjustments td {
|
.tab-adjustments td {
|
||||||
|
@ -56,10 +57,6 @@
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-adjustments .adjustments {
|
|
||||||
background-color: #e4e4e4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-adjustments .adjustment select {
|
.tab-adjustments .adjustment select {
|
||||||
/* outline: 1px solid silver; */
|
/* outline: 1px solid silver; */
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
|
@ -97,6 +97,9 @@
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
max-height: 50%;
|
max-height: 50%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cli-textcomplete-dropdown::-webkit-scrollbar {
|
.cli-textcomplete-dropdown::-webkit-scrollbar {
|
||||||
|
@ -121,12 +124,6 @@
|
||||||
background-color: rgb(255, 187, 0);
|
background-color: rgb(255, 187, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cli-textcomplete-dropdown {
|
|
||||||
list-style: none;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cli-textcomplete-dropdown a:hover {
|
.cli-textcomplete-dropdown a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-configuration table td {
|
.tab-configuration table td {
|
||||||
padding-left: 5px;
|
padding: 5px 3px;
|
||||||
border-bottom: 1px solid var(--subtleAccent);
|
border-bottom: 1px solid var(--subtleAccent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,10 +26,6 @@
|
||||||
width: 55px;
|
width: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-configuration table td {
|
|
||||||
padding: 5px 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-configuration table thead tr:first-child {
|
.tab-configuration table thead tr:first-child {
|
||||||
background-color: #ececec;
|
background-color: #ececec;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,16 @@
|
||||||
.tab-failsafe .number {
|
.tab-failsafe .number {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
clear: left;
|
clear: left;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
border-bottom: 1px solid var(--subtleAccent);
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-failsafe .number:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-failsafe .number input {
|
.tab-failsafe .number input {
|
||||||
|
@ -149,19 +159,6 @@
|
||||||
width: calc(100% - 20px);
|
width: calc(100% - 20px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-failsafe .number {
|
|
||||||
padding-bottom: 5px;
|
|
||||||
border-bottom: 1px solid var(--subtleAccent);
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-failsafe .number:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
padding-bottom: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-failsafe .gui_box_titlebar {
|
.tab-failsafe .gui_box_titlebar {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -293,6 +290,3 @@
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1055px) , only screen and (max-device-width: 1055px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.tab-firmware_flasher .info {
|
.tab-firmware_flasher .info {
|
||||||
padding: 2px 18px;
|
padding: 2px 18px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
flex-grow: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-firmware_flasher .info .progressLabel {
|
.tab-firmware_flasher .info .progressLabel {
|
||||||
|
@ -22,10 +23,6 @@
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-firmware_flasher .info {
|
|
||||||
flex-grow: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-firmware_flasher .info .progressLabel a {
|
.tab-firmware_flasher .info .progressLabel a {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
@ -54,9 +51,6 @@
|
||||||
height: 26px;
|
height: 26px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid var(--subtleAccent);
|
border: 1px solid var(--subtleAccent);
|
||||||
}
|
|
||||||
|
|
||||||
.tab-firmware_flasher .info .progress {
|
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -191,6 +191,7 @@
|
||||||
|
|
||||||
.tab-receiver .tunings table td {
|
.tab-receiver .tunings table td {
|
||||||
border-right: 1px solid var(--subtleAccent);
|
border-right: 1px solid var(--subtleAccent);
|
||||||
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-receiver .tunings table td:first-child {
|
.tab-receiver .tunings table td:first-child {
|
||||||
|
@ -202,10 +203,6 @@
|
||||||
border-right: 0px;
|
border-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-receiver .tunings table td {
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-receiver .tunings table input {
|
.tab-receiver .tunings table input {
|
||||||
width: calc(100% - 8px);
|
width: calc(100% - 8px);
|
||||||
border: 1px solid var(--subtleAccent);
|
border: 1px solid var(--subtleAccent);
|
||||||
|
|
|
@ -43,8 +43,6 @@ function getCustomDefaultsArea(firmware) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = {};
|
|
||||||
|
|
||||||
result.startAddress = readUint32(firmware, index);
|
result.startAddress = readUint32(firmware, index);
|
||||||
result.endAddress = readUint32(firmware, index);
|
result.endAddress = readUint32(firmware, index);
|
||||||
|
|
||||||
|
|
|
@ -39,9 +39,6 @@ i18n.init = function(cb) {
|
||||||
});
|
});
|
||||||
// This function should do the same things that the i18n.localizePage function below does.
|
// This function should do the same things that the i18n.localizePage function below does.
|
||||||
i18next.on('languageChanged', function (newLang) {
|
i18next.on('languageChanged', function (newLang) {
|
||||||
var translate = function(messageID) {
|
|
||||||
return i18n.getMessage(messageID);
|
|
||||||
};
|
|
||||||
i18n.localizePage(true);
|
i18n.localizePage(true);
|
||||||
updateStatusBarVersion();
|
updateStatusBarVersion();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue