betaflight-configurator/main.css

385 lines
6.1 KiB
CSS
Executable File

* {
margin: 0;
padding: 0;
border: 0;
list-style: none;
outline: none;
}
html, body {
height: 100%;
}
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
font-size: 12px;
color: #303030;
background-color: #dfddd0;
}
a {
color: #303030;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
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: 5px 5px 0 5px;
height: calc(100% - 5px);
}
#content-watermark {
position: absolute;
bottom: 40px;
left: 0;
right: 0;
z-index: -1;
overflow: hidden;
background-image: url("images/light-wide-1.svg");
background-repeat: no-repeat;
background-position: 50% 0%;
background-size: 600px;
height: 174px;
opacity: 0.25;
}
#watermark {
position: absolute;
top: 30px;
height: 67px;
right: 0;
z-index: -1;
overflow: hidden;
background-image: url("images/light-wide-1.svg");
background-repeat: no-repeat;
width: 340px;
background-position: 0px 0px;
background-size: 85%;
}
#port-picker {
float: left;
height: 20px;
margin-bottom: 5px;
}
#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;
}
#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;
}
#header-wrapper {
}
#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: 4px;
height: 65px;
border: 1px solid silver;
background-color: rgba(255, 255, 255, 0.5);
overflow-y: scroll;
}
#log .wrapper {
padding: 5px;
-webkit-user-select: text;
}
#log a {
font-weight: bold;
}
#log a:hover {
text-decoration: underline;
}
#tabs {
position: absolute;
margin-top: 1px;
z-index: 10;
font-weight: bold;
}
#tabs ul {
overflow: hidden; /* Cause the height to expand to contain its floated contents */
}
#tabs ul.mode-connected {
display: none;
}
#tabs li {
float: left;
margin-right: 4px;
border: 1px solid #848484;
border-bottom: 0;
}
#tabs li a {
display: block;
height: 15px;
padding: 5px 4px;
background-color: #d0d0d0;
}
#tabs li a:hover {
text-decoration: none;
background-color: #acacac;
}
#tabs li.active {
}
#tabs li.active a {
height: 16px;
background-color: white;
}
#tabs li.active a:hover {
cursor: default;
background-color: white;
}
#content {
margin-top: 31px;
padding: 10px;
height: calc(100% - 171px); /* - (port picker, log, tab, status bar) */
background-color: white;
overflow-x: hidden;
overflow-y: auto;
border: 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: 5px;
border: 1px solid silver;
}