betaflight-configurator/main.css

365 lines
5.8 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 {
font-family: sans-serif;
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
#watermark {
position: absolute;
text-align: center;
top: 30px;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
overflow: hidden;
2014-12-19 20:54:05 +00:00
font-family: monospace;
color: grey;
font-size: 50px;
font-variant: small-caps;
letter-spacing: 0.5em;
}
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
}
#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
}
2014-09-20 12:07:00 +00:00
#tabs li {
float: left;
margin-right: 5px;
border: 1px solid #848484;
border-bottom: 0;
}
#tabs li a {
display: block;
height: 15px;
padding: 5px;
padding-left: 8px;
padding-right: 8px;
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;
}
2014-11-21 07:40:43 +00:00
#dialog {
position: fixed;
top: 0;
left: 0;
border: 1px solid silver;
background-color: white;
display: none;
z-index: 1001;
}
#dialog.review {
width: 300px;
}
#dialog.review .head {
line-height: 20px;
color: white;
font-weight: bold;
text-align: center;
border-bottom: 1px solid silver;
background-color: #3f4241;
}
#dialog.review .wrapper {
padding: 5px;
}
#dialog.review p {
display: none;
padding: 5px;
text-align: center;
}
#dialog.review .buttons {
float: right;
margin: 5px 0 0 0;
}
#dialog.review .yes,
#dialog.review .no {
display: block;
float: left;
margin: 0 0 0 5px;
height: 24px;
line-height: 24px;
padding: 0 10px 0 10px;
font-weight: bold;
border: 1px solid #dddddd;
background-color: #f1f1f1;
2014-04-24 07:59:25 +00:00
}