betaflight-configurator/main.css

960 lines
14 KiB
CSS
Executable File

* {
margin: 0;
padding: 0;
border: 0;
list-style: none;
outline: none;
}
html, body {
height: 100%;
}
body {
font-family: 'open_sansregular', 'Segoe UI', Tahoma, sans-serif;
font-size: 12px;
color: #303030;
background-color:#3f4140;
margin:0px;
padding:0px;
}
/* Help-Icon */
.helpicon {
float:right;
margin-top:-18px;
margin-right:7px;
display:block;
height:14px;
width:14px;
opacity: 0.2;
background-image:url(images/icons/cf_icon_info_grey.svg);
background-size:contain;
background-position:center;
}
.helpicon:hover {
opacity: 1.0;
background-image:url(images/icons/cf_icon_info_green.svg);
}
/* Change here the content of the documentation button in all tabs!!! */
.cf_doc_version_bt a:before {
content:"Documentation 1.10";
}
.cf_doc_version_bt a {
padding:1px 9px 1px 9px;
margin-top: -25px;
background-color:#59aa29;
border-radius:3px;
border: 1px solid #4c8829;
color:#fff;
float:right;
font-family: 'open_sansbold', Arial;
font-size:10px;
line-height:17px;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
text-transform:uppercase;
letter-spacing: 0.03em;
display:block;
}
.cf_doc_version_bt a:hover {
background-color:#6ac435;
transition: all ease 0.2s;
}
/* documentation button end */
a {
text-decoration:none;
color:#59aa29;
font-family: 'open_sanssemibold', Arial;
}
a:hover {
text-decoration: none;
transition: all ease 0.2s;
}
input[type="number"]::-webkit-inner-spin-button {
opacity: 1; /* required for chromium 33+ beta */
margin-left: 5px;
}
.clear-both {
clear: both;
}
.left {
float: left;
}
.right {
float: right;
}
#main-wrapper {
padding: 0px 0px 0 0px; /* padding: 5px 5px 0 5px; */
height: calc(100% - 5px);
}
.headerbar {
height:110px;
width:100%;
float:left;
background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.15));
}
#logo {
position: relative;
float:left;
width: 260px;
height:70px;
z-index: 0;
background-image: url("images/light-wide-2.svg");
background-repeat: no-repeat;
width: 340px;
background-position:left center;
background-size: contain;
margin-left:15px;
margin-top:15px;
}
#port-picker { /* */
float: left;
margin-top: 20px;
margin-left: 20px;
width:180px;
}
#port-picker li {
float: left;
} /*
#port-picker select {
height: 20px;
line-height: 20px;
float: left;
margin-right: 5px;
border: 1px solid silver;
}
#port-picker #port {
width: 130px;
}
#port-picker #baud {
width: 80px;
}
#port-picker #delay {
width: 60px;
}
#port-picker #port-override{
height: 18px;
line-height: 20px;
margin-right: 5px;
width: 120px;
padding: 0 5px;
border: 1px solid silver;
}
#port-picker a {
float: left;
display: block;
width: 80px;
height: 18px;
border: 1px solid silver;
line-height: 18px;
text-align: center;
}
#port-picker a.connect {
margin-right: 10px;
background-color: #be2222;
color: white;
font-weight: bold;
}
#port-picker a.connect:hover {
text-decoration: none;
background-color: #ea3131;
}
#port-picker a.connect.active {
background-color: #0fab16;
}
#port-picker a.connect.active:hover {
background-color: #13d81d;
}
#port-picker input.auto_connect {
float: left;
margin-top: 4px;
}
#port-picker span.auto_connect {
float: left;
margin: 3px 0 0 5px;
}
*/
#sensor-status {
float: right;
margin-right: 10px;
height: 22px;
line-height: 22px;
}
#header_dataflash {
display:none; }
#sensor-status li {
float: left;
padding: 0 12px 0 12px;
height: 18px;
line-height: 18px;
color: white;
text-align: center;
border: 1px solid #c0c0c0;
border-right: 0;
background-color: #e32424;
}
#sensor-status li:last-child {
border-right: 1px solid #c0c0c0;
}
#sensor-status .on {
background-color: #b8cf02;
}
/*
#documentation-controls {
float: right;
height: 22px;
line-height: 22px;
margin-right: 10px;
}
#button-documentation {
float: left;
padding: 0 12px 0 12px;
height: 18px;
line-height: 18px;
background-color: #ffcb18;
color: #000;
font-weight: bold;
border: solid 1px #c0c0c0;
display: none;
}
*/
#options {
float: right;
width: 20px;
height: 20px;
background-image: url('./images/ic_settings_24px.svg');
background-position: -1px -1px;
background-repeat: no-repeat;
opacity: 0.6;
}
#options:hover {
opacity: 0.7;
}
#options.active {
opacity: 0.7;
}
#options.active:hover {
opacity: 0.85;
}
#options-window {
display: none;
position: fixed;
right: 30px;
top: 15px;
padding: 5px;
line-height: 20px;
border: 1px solid silver;
background-color: white;
}
#options-window input {
float: left;
margin-top: 3px;
margin-right: 5px;
}
#log {
margin-bottom: 0px;
border: 0px solid silver; /* was 1px*/
background-color:#242424;
color:rgba(255,255,255,0.60);
line-height: 21px;
height: 27px; /* was 65*/
overflow-y: hidden; /* scroll*/
}
#scrollicon {
position:fixed;
right:10px;
top:113px;
height:27px;
width:27px;
background-image:url(images/icons/scroll.svg);
background-repeat:no-repeat;
background-size:100%;
opacity:0.0;
transition: all ease 1s;
}
#scrollicon.active {
height:110px;
margin-top:10px;
margin-right:20px;
width:110px;
opacity:0.15;
background-image:url(images/icons/scroll.svg);
background-size:80%;
box-shadow: inset 0 0 5px #000000;
transition: all ease 2s;
}
#log.active {
overflow-y: scroll; /* scroll*/
box-shadow: inset 0 0 15px #000000;
}
#log .wrapper {
padding: 5px; /* was 5*/
padding-left:10px;
padding-bottom:4px;
-webkit-user-select: text;
position:relative;
bottom:0px;
}
#log a {
font-weight: regular;
color:#59aa29;
}
#log a:hover {
text-decoration: underline;
}
.tab_container {
float:left;
height:100%;
width:210px;
border-right: 4px solid #59aa29;
}
#tabs {
position: relative;
float: left;
width:100%;
padding-top: 0px;
padding-bottom: 0px;
margin-top:0px;
z-index: 10;
font-weight: regular;
font-size:13px;
}
#tabs ul {
margin-top:0px;
overflow: hidden;
/* Cause the height to expand to contain its floated contents */
}
#tabs ul.mode-connected {
display: none;
}
#tabs li {
width:100%;
float: left;
border-bottom: 1px solid rgba(0,0,0,0.30);
border-top: 1px solid #404040;
height:29px;
}
#tabs li:first-child {
border-top: 0px;
}
#tabs li:last-child {
border-bottom: 0px;
}
#tabs li a {
font-family: 'open_sansregular', Arial;
padding-left:33px;
padding-top:5px;
padding-bottom:3px;
background-color: transparent;
color:#999999;
width:100%;
height:23px;
display:block;
text-shadow:0px 1px rgba(0, 0, 0, 0.45);
background-image:url(images/icons/cf_icon_info_green.svg);
background-repeat: no-repeat;
background-size:15px;
background-position:13px 7px;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
transition: none;
}
#tabs li a:hover {
text-decoration: none;
background-color: rgba(0,0,0,0.20);
}
#tabs li.active {
color: #fff;
transition: none;
}
#tabs li.active a {
background-color: #59aa29;
color: #fff;
background-image:url(images/icons/cf_icon_info_grey.svg);
transition: none;
}
#tabs li.active a:hover {
cursor: default;
background-color:#59aa29;
}
#content {
margin-top: 0px; /* 31 */
padding: 0px; /* 10 */
height:calc(100% - 150px); /* (port picker 105px, log 25px, tab 0px, status bar: 20px) - was: calc(100% - 171px)*/
background-color: white;
overflow-x: hidden;
overflow-y: auto;
border: 0px solid #848484; /* 1px solid #848484; */
-webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */
}
#status-bar {
position: fixed;
bottom: 0px;
width: calc(100% - 20px);
height: 20px;
line-height: 20px;
padding: 0 10px 0 10px;
border-top: 1px solid #7d7d79;
background-color: #bfbeb5;
}
#status-bar div {
float: left;
padding-right: 10px;
margin-right: 10px;
border-right: 1px solid #7d7d79;
}
#status-bar .version {
float: right;
margin: 0;
padding: 0;
border: 0;
}
#cache {
display: none;
}
.data-loading {
width: 100%;
height: 100%;
background-image: url('../images/loading-bars.svg');
background-repeat: no-repeat;
background-position: center 45%;
}
.data-loading p {
position: relative;
top: calc(45% + 45px);
text-align: center;
font-weight: bold;
}
dialog {
background-color: white;
padding: 1em;
height: auto;
margin: auto auto;
position: absolute;
width: 50%;
border-radius: 3px;
border: 1px solid silver;
}
/* Border of the Tab */
/* Tab Title */
.tab_title {
float:left;
width:100%;
border-bottom:1px solid #59aa29;
font-size:20px;
line-height:24px;
height:30px;
font-family: 'open_sanslight', Arial;
margin-bottom:7px;
}
/* Note */
.note {
float:left;
background-color:#fff7cd;
border:1px solid #ffe55f;
margin-bottom:7px;
margin-top:3px;
width:100%;
border-radius: 3px;
font-size:11px;
}
.note_spacer {
padding:5px 7px 5px 7px;
}
/* Colums START> */
.cf_column {
margin-bottom:20px;
}
.full {
float:left;
width:100%;
}
.half {
float:left;
width:50%;
}
.third_left {
float:left;
width:33%;
}
.third_center {
display: inline-block;
width:34%;
}
.third_right {
float:right;
width:33%;
}
.fourth {
float:left;
width:25%;
}
.threefourth_right {
float:right;
width:75%;
}
.threefourth_left {
float:left;
width:75%;
}
.twothird {
float:left;
width:67%;
}
.tab_wrapper {
padding-left:20px;
padding-right:15px;
padding-top:15px;
padding-bottom:15px;
}
/* Columns END> */
/* Spacers */
.spacer {
padding-left:7px;
padding-right:7px;
}
.spacer_left {
padding-left:7px;
}
.spacer_right {
padding-right:7px;
}
/* Standard GUI BOX */
.gui_box {
border: 1px solid #e4e4e4;
border-radius:5px;
background-color:#FFFFFF;
float:left;
width:100%;
margin-bottom:10px;
}
.grey {
background-color:#f5f5f5;
}
.gui_box_titlebar {
background-color:#e4e4e4;
border-radius:3px 3px 0px 0px;
font-size:14px;
width:100%;
height:25px;
padding-bottom:0px;
float:left;
margin-bottom:7px;
}
.spacer_box {
padding:10px;
margin-bottom:3px;
}
.spacer_box_title {
padding-left:10px;
padding-right:10px;
padding-top:4px;
margin-bottom:0px;
}
/* Fixed area at the Bottom */
.fixed_band {
height: 50px;
position:fixed;
background-color:#e4e4e4;
width:100%;
margin-left:-20px;
box-shadow:rgba(0,0,0,0.20) 0 -3px 8px ;
bottom: 0px;
z-index:1000;
}
.save_btn a {
padding:3px 13px 5px 13px;
margin-top: 10px;
margin-right:15px;
background-color:#59aa29;
border-radius:3px;
border: 1px solid #4c8829;
color:#fff;
float:right;
font-family: 'open_sansbold', Arial;
font-size:12px;
line-height:20px;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
display:block;
cursor:pointer;
transition: all ease 0.2s;
}
.save_btn a:hover {
background-color:#6ac435;
transition: all ease 0.2s;
}
/* DIfferent buttons */
.default_btn {
width:100%;
position:relative;
margin-bottom:7px;
margin-top:0px;
float:left;
}
.default_btn a {
padding:5px 0px 5px 0px;
text-align:center;
background-color:#fff;
border-radius:4px;
border: 1px solid #59aa29;
color:#59aa29;
font-family: 'open_sanssemibold', Arial;
font-size:12px;
line-height:13px;
display:block;
transition: all ease 0.2s;
}
.default_btn a:hover {
background-color:#6ac435;
color:#fff;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
transition: all ease 0.2s;
}
.default_btn a:active {
background-color:#4d9324;
transition: all ease 0.0s;
box-shadow:inset 0px 1px 5px rgba(0, 0, 0, 0.35);
}
.small {
width:auto;
position:relative;
margin-bottom:7px;
margin-top:0px;
margin-right:5px;
float:left;
}
.small a {
padding:3px 4px 4px 4px;
text-align:center;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
background-color:#acacac;
border-radius:3px;
border: 1px solid #949494;
color:#fff;
font-family: 'open_sanssemibold', Arial;
font-size:11px;
line-height:11px;
display:block;
transition: all ease 0.2s;
}
.small a:hover {
background-color:#6ac435;
color:#fff;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
border: 1px solid #59aa29;
transition: all ease 0.2s;
}
.small a:active {
background-color:#878787;
transition: all ease 0.0s;
box-shadow:inset 0px 1px 5px rgba(0, 0, 0, 0.35);
}
.green a {
background-color:#59aa29;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
color:#fff;
border: 1px solid #59aa29;
transition: all ease 0.2s;
}
.green a:hover {
background-color:#6ac435;
border: 1px solid #4d9324;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
color:#fff;
transition: all ease 0.2s;
}
/* Table styling */
.cf_table {
margin-bottom:5px;
float:left;
margin-top:-5px;
font-size:11px;
}
.cf_table td {
border:0px;
border-bottom: solid 1px #ccc;
padding-top:4px;
padding-bottom:4px;
border-style: dotted;
}
.noboarder td{
border:none;
}
.cf_table td:last-child {
text-align:right;
}
.gps_false {
background-color:#FF0004;
padding:1px 7px 2px 7px;
border-radius:3px;
color:#FFFFFF;
font-size:11px;
margin-left:3px;
}
.gps_true {
background-color:#59aa29;
padding:1px 7px 2px 7px;
border-radius:3px;
color:#FFFFFF;
font-size:11px;
margin-left:3px;
}
/* note */
.connect_contols {
position:absolute;
left:585px;
top:19px;
height:70px;
width:60px;
}
.connect_b {
float:left;
}
.connect_b a {
height:50px;
width:50px;
border-radius:100px;
box-shadow:0px 1px 2px rgba(0, 0, 0, 0.35);
float:left;
margin-left: 5px;
margin-bottom:7px;
transition: none;
}
.connect_b a.connect {
background-color:#56ac1d;
border:1px solid #5bbb1b;
background-image:url(images/icons/cf_icon_usb2_white.svg);
background-repeat:no-repeat;
background-size:44px;
background-position:center 6px;
transition: none;
}
.connect_b a.connect.active {
background-color:#e60000;
border:1px solid #fe0000;
background-image:url(images/icons/cf_icon_usb1_white.svg);
transition: none;
}
.connect_state {
float:left;
height:20px;
width:100%;
text-align:center;
color:#fff;
font-size:12px;
font-family: 'open_sansregular', Arial;
text-shadow:0px 1px rgba(0, 0, 0, 0.25);
}
.logswitch {
position:fixed;
right: 7px;
margin-top:-1px;
float:right;
padding:5px;
z-index:10;
}
.logswitch a {
color:#656565;
}