betaflight-configurator/main.css

298 lines
5.2 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;
-webkit-text-size-adjust: 100%;
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 {
-webkit-appearance: none;
2014-03-08 05:25:15 +00:00
2014-01-23 22:47:14 +00:00
display: block;
opacity: 1; /* required for chromium 33+ beta */
2014-03-08 05:25:15 +00:00
2014-01-23 22:47:14 +00:00
width: 15px;
2014-03-08 05:25:15 +00:00
2014-01-23 22:47:14 +00:00
background-image: url('../images/arrows.png');
background-repeat: no-repeat;
2014-03-08 05:25:15 +00:00
2014-01-23 22:47:14 +00:00
border-left: 1px solid silver;
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 {
margin: 10px auto 0 auto;
padding: 0 10px 0 10px;
2014-05-05 09:33:53 +00:00
height: calc(100% - 10px); /* - padding */
2013-04-08 15:29:52 +00:00
}
#port-picker {
float: left;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
height: 22px;
margin-bottom: 10px;
}
#port-picker li {
float: left;
}
#port-picker select {
height: 20px;
line-height: 20px;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
float: left;
margin-right: 10px;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
border: 1px solid silver;
}
#port-picker #port {
width: 120px;
}
#port-picker #baud {
width: 80px;
}
#port-picker #delay {
width: 60px;
}
#port-picker a {
float: left;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
display: block;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
width: 80px;
height: 18px;
border: 1px solid silver;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
line-height: 18px;
text-align: center;
}
#port-picker a.connect {
margin-right: 10px;
2014-03-08 05:25:15 +00:00
2013-04-08 15:29:52 +00:00
background-color: #be2222;
color: white;
2014-04-22 14:29:18 +00:00
font-weight: bold;
2013-04-08 15:29:52 +00:00
}
#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;
2013-12-29 09:57:06 +00:00
}
#port-picker input.auto_connect {
float: left;
2014-03-08 05:25:15 +00:00
2013-12-29 09:57:06 +00:00
margin-top: 4px;
}
#port-picker span.auto_connect {
float: left;
2014-03-08 05:25:15 +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;
}
#sensor-status li {
float: left;
2014-03-08 05:25:15 +00:00
2013-04-08 20:43:04 +00:00
padding: 0 12px 0 12px;
2014-03-08 05:25:15 +00:00
2013-04-08 18:07:47 +00:00
height: 18px;
line-height: 18px;
2014-03-08 05:25:15 +00:00
2013-04-08 18:07:47 +00:00
color: white;
text-align: center;
2014-03-08 05:25:15 +00:00
2013-04-08 18:07:47 +00:00
border: 1px solid #c0c0c0;
2014-04-22 14:29:18 +00:00
border-right: 0;
background-color: #901515;
}
#sensor-status li:last-child {
border-right: 1px solid #c0c0c0;
2013-04-08 18:07:47 +00:00
}
#sensor-status .on {
2014-04-22 14:29:18 +00:00
background-color: #076b0c;
2014-02-03 05:19:06 +00:00
}
#options {
float: right;
2014-04-24 07:59:25 +00:00
margin-top: 1px;
2014-04-24 07:59:25 +00:00
width: 20px;
height: 20px;
opacity: 0.6;
}
2014-04-24 07:59:25 +00:00
#options:before {
font-family: icons;
content: '\e600';
font-size: 18px;
}
#options:hover {
opacity: 0.70;
}
#options.active {
opacity: 0.70;
}
#options.active:hover {
opacity: 0.85;
}
#options-window {
display: none;
position: fixed;
right: 10px;
top: 32px;
padding: 5px;
line-height: 20px;
border: 1px solid silver;
background-color: white;
}
#options-window input {
float: left;
margin-top: 3px;
margin-right: 5px;
}
2014-03-08 05:25:15 +00:00
#log {
2014-02-03 05:19:06 +00:00
margin-bottom: 10px;
2014-03-08 05:25:15 +00:00
height: 60px;
2014-03-08 05:25:15 +00:00
2014-02-03 05:19:06 +00:00
border: 1px solid silver;
background-color: white;
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-02-03 05:19:06 +00:00
#log .wrapper {
padding: 5px;
2014-03-08 05:25:15 +00:00
2014-02-03 05:19:06 +00:00
-webkit-user-select: text;
2014-03-08 05:25:15 +00:00
}
2014-05-08 11:33:18 +00:00
#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
}
#tabs li {
float: left;
margin-right: 5px;
2014-03-08 05:25:15 +00:00
2013-04-08 19:10:47 +00:00
border: 1px solid #848484;
border-bottom: 0;
2013-04-08 19:10:47 +00:00
}
#tabs li a {
display: block;
2014-03-08 05:25:15 +00:00
2013-04-08 19:10:47 +00:00
height: 15px;
2014-03-08 05:25:15 +00:00
2013-04-08 19:10:47 +00:00
padding: 5px;
padding-left: 8px;
padding-right: 8px;
2014-03-08 05:25:15 +00:00
2013-04-08 19:10:47 +00:00
background-color: #d0d0d0;
}
#tabs li a:hover {
text-decoration: none;
background-color: #acacac;
}
2013-10-29 13:49:43 +00:00
#tabs li.active {
}
#tabs li.active a {
2013-11-25 14:16:48 +00:00
height: 16px;
2014-03-08 05:25:15 +00:00
background-color: white;
}
2014-03-08 05:25:15 +00:00
#tabs li.active a:hover {
cursor: default;
2014-03-08 05:25:15 +00:00
background-color: white;
}
2013-10-29 13:49:43 +00:00
#content {
2014-02-03 05:19:06 +00:00
margin-top: 37px;
2013-04-08 19:10:47 +00:00
padding: 10px;
2014-03-08 05:25:15 +00:00
2014-05-05 09:33:53 +00:00
height: calc(100% - 184px); /* - (port picker, log, tab, status bar) */
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
2014-04-19 20:43:19 +00:00
width: 100%;
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;
}
#status-bar div {
float: left;
padding-right: 10px;
margin-right: 10px;
border-right: 1px solid #7d7d79;
2014-04-24 07:59:25 +00:00
}
@font-face {
font-family: 'icons';
src: url('./images/icons/icomoon.woff');
}