betaflight-configurator/main.css

378 lines
6.0 KiB
CSS
Raw Normal View History

2013-04-08 15:29:52 +00:00
* {
margin: 0;
padding: 0;
border: 0;
list-style: none;
2014-01-13 12:47:54 +00:00
outline: none;
2013-04-08 15:29:52 +00:00
}
2014-05-05 09:33:53 +00:00
html, body {
height: 100%;
}
2013-04-08 15:29:52 +00:00
body {
2014-12-21 00:22:25 +00:00
font-family: 'Segoe UI', Tahoma, sans-serif;
2013-04-08 15:29:52 +00:00
font-size: 12px;
color: #303030;
background-color: #dfddd0;
}
a {
color: #303030;
text-decoration: none;
}
a:hover {
2013-04-08 20:02:58 +00:00
text-decoration: none;
2013-04-08 15:29:52 +00:00
}
2014-01-15 15:53:16 +00:00
input[type="number"]::-webkit-inner-spin-button {
2014-01-23 22:47:14 +00:00
opacity: 1; /* required for chromium 33+ beta */
margin-left: 5px;
2014-01-15 15:53:16 +00:00
}
2013-04-08 15:29:52 +00:00
.clear-both {
clear: both;
}
.left {
float: left;
}
.right {
float: right;
}
#main-wrapper {
padding: 5px 5px 0 5px;
height: calc(100% - 5px);
2013-04-08 15:29:52 +00:00
}
2014-12-19 20:54:05 +00:00
#content-watermark {
2014-12-19 20:54:05 +00:00
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;
}
2014-12-19 20:54:05 +00:00
#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%;
2014-12-19 20:54:05 +00:00
}
2013-04-08 15:29:52 +00:00
#port-picker {
float: left;
2014-03-08 05:25:15 +00:00
height: 20px;
margin-bottom: 5px;
2013-04-08 15:29:52 +00:00
}
2014-09-20 12:07:00 +00:00
#port-picker li {
float: left;
}
#port-picker select {
height: 20px;
line-height: 20px;
float: left;
2014-09-20 12:07:00 +00:00
margin-right: 5px;
border: 1px solid silver;
}
#port-picker #port {
width: 120px;
}
#port-picker #baud {
width: 80px;
}
2014-09-20 12:07:00 +00:00
#port-picker #delay {
width: 60px;
}
#port-picker a {
float: left;
2014-09-20 12:07:00 +00:00
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;
2014-09-20 12:07:00 +00:00
font-weight: bold;
}
#port-picker a.connect:hover {
text-decoration: none;
background-color: #ea3131;
}
2014-09-20 12:07:00 +00:00
#port-picker a.connect.active {
background-color: #0fab16;
}
#port-picker a.connect.active:hover {
background-color: #13d81d;
}
#port-picker input.auto_connect {
float: left;
2014-09-20 12:07:00 +00:00
margin-top: 4px;
}
2014-09-20 12:07:00 +00:00
#port-picker span.auto_connect {
float: left;
2014-09-20 12:07:00 +00:00
margin: 3px 0 0 5px;
}
2013-04-08 18:07:47 +00:00
#sensor-status {
float: right;
2014-03-08 05:25:15 +00:00
margin-right: 10px;
2013-04-08 18:07:47 +00:00
height: 22px;
line-height: 22px;
}
2014-09-20 12:07:00 +00:00
#sensor-status li {
float: left;
2014-03-08 05:25:15 +00:00
2014-09-20 12:07:00 +00:00
padding: 0 12px 0 12px;
2014-03-08 05:25:15 +00:00
2014-09-20 12:07:00 +00:00
height: 18px;
line-height: 18px;
2014-03-08 05:25:15 +00:00
2014-09-20 12:07:00 +00:00
color: white;
text-align: center;
2014-03-08 05:25:15 +00:00
2014-09-20 12:07:00 +00:00
border: 1px solid #c0c0c0;
border-right: 0;
2014-04-22 14:29:18 +00:00
background-color: #e32424;
2014-09-20 12:07:00 +00:00
}
#sensor-status li:last-child {
border-right: 1px solid #c0c0c0;
}
#sensor-status .on {
background-color: #b8cf02;
2014-09-20 12:07:00 +00:00
}
#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;
2014-04-24 07:59:25 +00:00
width: 20px;
height: 20px;
background-image: url('./images/ic_settings_24px.svg');
background-position: -1px -1px;
2014-10-28 16:46:04 +00:00
background-repeat: no-repeat;
opacity: 0.6;
}
2014-09-20 12:07:00 +00:00
#options:hover {
2014-10-28 16:46:04 +00:00
opacity: 0.7;
2014-09-20 12:07:00 +00:00
}
#options.active {
2014-10-28 16:46:04 +00:00
opacity: 0.7;
2014-09-20 12:07:00 +00:00
}
#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;
}
2014-09-20 12:07:00 +00:00
#options-window input {
float: left;
2014-09-20 12:07:00 +00:00
margin-top: 3px;
margin-right: 5px;
}
2014-03-08 05:25:15 +00:00
#log {
margin-bottom: 4px;
2014-03-08 05:25:15 +00:00
height: 65px;
2014-03-08 05:25:15 +00:00
2014-02-03 05:19:06 +00:00
border: 1px solid silver;
background-color: rgba(255, 255, 255, 0.5);
2014-03-08 05:25:15 +00:00
2014-02-03 05:19:06 +00:00
overflow-y: scroll;
2014-03-08 05:25:15 +00:00
}
2014-09-20 12:07:00 +00:00
#log .wrapper {
padding: 5px;
-webkit-user-select: text;
}
#log a {
font-weight: bold;
}
#log a:hover {
text-decoration: underline;
}
2013-04-08 19:10:47 +00:00
#tabs {
2013-10-29 13:49:43 +00:00
position: absolute;
margin-top: 1px;
2014-03-08 05:25:15 +00:00
2013-10-29 13:49:43 +00:00
z-index: 10;
2014-03-08 05:25:15 +00:00
2014-01-03 09:35:57 +00:00
font-weight: bold;
2013-04-08 19:10:47 +00:00
}
2015-01-25 20:22:12 +00:00
#tabs ul {
overflow: hidden; /* Cause the height to expand to contain its floated contents */
}
#tabs ul.mode-connected {
display: none;
}
2014-09-20 12:07:00 +00:00
#tabs li {
float: left;
margin-right: 5px;
border: 1px solid #848484;
border-bottom: 0;
}
2014-09-20 12:07:00 +00:00
#tabs li a {
display: block;
height: 15px;
padding: 5px;
2015-01-16 17:57:17 +00:00
padding-left: 6px;
padding-right: 6px;
2014-09-20 12:07:00 +00:00
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;
}
2013-10-29 13:49:43 +00:00
#content {
margin-top: 31px;
2013-04-08 19:10:47 +00:00
padding: 10px;
2014-03-08 05:25:15 +00:00
height: calc(100% - 171px); /* - (port picker, log, tab, status bar) */
2014-05-05 09:33:53 +00:00
2013-04-08 19:10:47 +00:00
background-color: white;
2014-03-08 05:25:15 +00:00
overflow-x: hidden;
overflow-y: auto;
2014-03-08 05:25:15 +00:00
2013-04-08 19:10:47 +00:00
border: 1px solid #848484;
2014-03-08 05:25:15 +00:00
-webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */
2014-03-08 05:25:15 +00:00
}
2013-04-10 11:53:48 +00:00
#status-bar {
2014-04-19 20:43:19 +00:00
position: fixed;
bottom: 0px;
2014-03-08 05:25:15 +00:00
width: calc(100% - 20px);
2013-04-10 11:53:48 +00:00
height: 20px;
line-height: 20px;
2014-03-08 05:25:15 +00:00
2013-04-10 11:53:48 +00:00
padding: 0 10px 0 10px;
2014-03-08 05:25:15 +00:00
2013-04-10 11:53:48 +00:00
border-top: 1px solid #7d7d79;
background-color: #bfbeb5;
}
2014-09-20 12:07:00 +00:00
#status-bar div {
float: left;
2014-09-20 12:07:00 +00:00
padding-right: 10px;
margin-right: 10px;
2014-09-20 12:07:00 +00:00
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;
}