sumorobot-web/styles.css

145 lines
2.8 KiB
CSS
Raw Normal View History

2017-09-25 09:37:41 +00:00
html, body {
height: 100%;
}
body {
overflow: hidden;
background-color: #fff;
font-family: sans-serif;
}
2018-01-04 23:09:08 +00:00
/* logo object */
object.logo {
2017-10-13 12:19:19 +00:00
width: 45%;
2017-09-25 09:37:41 +00:00
}
2018-01-04 23:09:08 +00:00
/* the whole interface is in the table */
table.blockly-table {
height: 95%;
2017-09-25 09:37:41 +00:00
width: 100%;
}
2018-01-04 23:09:08 +00:00
/* spans */
2017-09-25 09:37:41 +00:00
span.has-error {
color: #a94442 !important;
border-color: #a94442 !important;
background-color: #f2dede !important;
}
2018-01-04 23:09:08 +00:00
span.addon-no-border {
2017-09-25 09:37:41 +00:00
border-left: 0px !important;
border-right: 0px !important;
}
2018-01-04 23:09:08 +00:00
span.input-group-addon {
2017-09-25 09:37:41 +00:00
padding: 0.5vw 1vw !important;
}
2018-01-04 23:09:08 +00:00
/* form items */
label.btn-primary {
border-width: 3px !important;
2017-12-27 12:12:45 +00:00
}
2018-01-04 23:09:08 +00:00
input.form-control {
padding: 0.5vw 1vw !important;
}
input.has-error {
border-color: #a94442 !important;
}
2018-01-04 23:09:08 +00:00
/* buttons */
a.btn-robot-nr, a.btn-robot-add {
2017-09-25 09:37:41 +00:00
font-size: 10vw !important;
border: 3px solid rgba(0, 0, 0, 0.1) !important;
}
2018-01-04 23:09:08 +00:00
a.btn-robot-add {
2017-09-25 09:37:41 +00:00
opacity: 0.5;
}
2018-01-04 23:09:08 +00:00
a.btn-selected {
2017-09-25 09:37:41 +00:00
border-color: #fc3 !important;
}
2018-01-04 23:09:08 +00:00
a.btn-success {
2017-09-25 09:37:41 +00:00
border-width: 3px !important;
2018-01-16 21:12:59 +00:00
border-color: #4cae4c !important;
2017-09-25 09:37:41 +00:00
background-color: #44CC00 !important;
}
2018-01-04 23:09:08 +00:00
a.btn-danger {
2017-09-25 09:37:41 +00:00
border-width: 3px !important;
2018-01-16 21:12:59 +00:00
border-color: #d43f3a !important;
2017-09-25 09:37:41 +00:00
background-color: #b80000 !important;
}
2018-01-04 23:09:08 +00:00
a.btn-danger.disabled {
2017-09-25 09:37:41 +00:00
background-color: #ee4d4d !important;
}
.btn:hover, .btn.hover {
border-width: 3px;
border-color: #fc3 !important;
}
2018-01-04 23:09:08 +00:00
/* google blockly modifications */
.goog-menuitem-content {
font-size: 2em !important;
2017-09-25 09:37:41 +00:00
}
2018-01-04 23:09:08 +00:00
/* remote control enabler container */
div.form-check-label {
2017-09-25 09:37:41 +00:00
font-size: 5vw;
}
2018-01-04 23:09:08 +00:00
/* remote control enabler label container */
div.remote-label {
font-size: 4vw;
margin-top: 1vw;
font-weight: bold;
}
/* start and stop button group */
div.btn-group-control {
2018-01-16 21:12:59 +00:00
z-index: 35;
2018-01-04 23:09:08 +00:00
bottom: 0px;
position: fixed !important;
2017-09-25 09:37:41 +00:00
}
2018-01-04 23:09:08 +00:00
/* the battery div */
div#battery {
2018-01-16 21:12:59 +00:00
z-index: 35;
2018-01-04 23:09:08 +00:00
right: 0.5vw;
2017-10-22 19:12:02 +00:00
font-size: 2vw;
color: #ee4d4d;
position: absolute;
}
2018-01-04 23:09:08 +00:00
/* the battery div connected status */
div#battery.connected {
2017-10-22 19:12:02 +00:00
color: #44CC00;
}
2018-01-04 23:09:08 +00:00
/* the control panel */
div#panel {
2018-01-16 21:12:59 +00:00
z-index: 36;
2017-09-25 09:37:41 +00:00
width: 100%;
height: 100%;
position: absolute;
text-align: center;
background-color: rgba(255, 255, 255, 0.9);
}
2018-01-04 23:09:08 +00:00
/* the live stream div */
div#stream {
2017-10-15 22:41:00 +00:00
width: 100%;
height: 100%;
display: none;
}
2018-01-04 23:09:08 +00:00
/* for mobile and tablet screen */
2017-09-25 09:37:41 +00:00
@media screen and (max-width: 1000px) {
td#blocklyArea {
width: 100%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
td#blocklyCodeArea {
display: none;
}
2018-01-17 11:16:26 +00:00
div#blocklyCode {
2017-09-25 09:37:41 +00:00
display: none;
}
}
2018-01-04 23:09:08 +00:00
/* for desktop screen */
2017-09-25 09:37:41 +00:00
@media screen and (min-width: 768px) {
td#blocklyArea {
width: 60%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
td#blocklyCodeArea {
width: 40%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
2018-01-17 11:16:26 +00:00
div#blocklyCode {
width: 100%;
2017-09-25 09:37:41 +00:00
height: 100%;
2018-01-17 11:40:16 +00:00
font-size: 1.5em;
2017-09-25 09:37:41 +00:00
}
}