sumorobot-web/styles.css

175 lines
3.7 KiB
CSS
Raw Normal View History

2017-09-25 09:37:41 +00:00
html, body {
height: 100%;
font-family: "Orbitron" !important;
2017-09-25 09:37:41 +00:00
}
body {
overflow: hidden;
background-color: #fff;
}
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-17 20:17:05 +00:00
/* robot ID label error */
2017-09-25 09:37:41 +00:00
span.has-error {
color: #a94442 !important;
border-color: #a94442 !important;
background-color: #f2dede !important;
}
2018-01-17 20:17:05 +00:00
/* robot ID input error */
2018-01-04 23:09:08 +00:00
input.has-error {
border-color: #a94442 !important;
}
/* robot connect button */
a.btn-robot-go, a.btn-robot-go:hover {
color: #3768d8;
2017-09-25 09:37:41 +00:00
}
/* start code button */
a.btn-start {
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;
}
/* stop code button */
a.btn-stop {
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;
}
.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
/* start and stop button group */
div.btn-group-control {
width: 100%;
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-17 20:17:05 +00:00
/* for desktop screen */
@media screen and (min-width: 1000px) {
/* logo object */
2018-01-17 20:57:00 +00:00
img.logo {
width: 25%;
padding: 1vw;
}
/* control panel robot name input */
div.input-group {
2018-01-17 20:17:05 +00:00
width: 35%;
margin-left: auto;
margin-right: auto;
}
span.input-group-addon {
2018-01-17 20:17:05 +00:00
font-size: 2vw;
padding: 0.5vw 0.5vw !important;
}
input.form-control {
2018-01-17 20:17:05 +00:00
font-size: 2vw;
padding: 0.5vw 0.5vw !important;
}
2018-01-17 20:17:05 +00:00
/* robot connect button container */
div.btn-group-robot {
2018-01-17 20:17:05 +00:00
width: 35%;
}
2018-01-17 20:17:05 +00:00
/* robot connect button */
a.btn-robot-go {
width: 100%;
2018-01-17 20:17:05 +00:00
font-size: 10vw !important;
border: 3px solid rgba(0, 0, 0, 0.1) !important;
}
/* Blockly workspace */
2017-09-25 09:37:41 +00:00
td#blocklyArea {
2018-01-17 20:17:05 +00:00
width: 60%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
/* Blockly code area */
2017-09-25 09:37:41 +00:00
td#blocklyCodeArea {
2018-01-17 20:17:05 +00:00
width: 40%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
/* ace editor */
2018-01-17 11:16:26 +00:00
div#blocklyCode {
2018-01-17 20:17:05 +00:00
width: 100%;
height: 100%;
font-size: 1.3em;
2017-09-25 09:37:41 +00:00
}
}
2018-01-17 20:17:05 +00:00
/* for mobile and tablet screen */
@media screen and (max-width: 1000px) {
/* logo object */
2018-01-17 20:57:00 +00:00
img.logo {
width: 25%;
padding: 1vw;
}
/* control panel robot name input */
div.input-group {
2018-01-17 20:17:05 +00:00
width: 100%;
margin-left: auto;
margin-right: auto;
}
span.input-group-addon {
2018-01-17 20:17:05 +00:00
font-size: 4.5vw;
padding: 0.5vw 0.5vw !important;
}
input.form-control {
2018-01-17 20:17:05 +00:00
font-size: 4.5vw;
padding: 0.5vw 0.5vw !important;
}
2018-01-17 20:17:05 +00:00
/* robot connect button container */
div.btn-group-robot {
2018-01-17 20:17:05 +00:00
width: 100%;
}
2018-01-17 20:17:05 +00:00
/* robot connect button */
a.btn-robot-go {
width: 100%;
2018-01-17 21:23:37 +00:00
font-size: 10vw !important;
border: 3px solid rgba(0, 0, 0, 0.1) !important;
}
/* Blockly workspace */
2017-09-25 09:37:41 +00:00
td#blocklyArea {
2018-01-17 20:17:05 +00:00
width: 100%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
/* Blockly code area */
2017-09-25 09:37:41 +00:00
td#blocklyCodeArea {
2018-01-17 20:17:05 +00:00
display: none;
2017-09-25 09:37:41 +00:00
}
/* ace editor */
2018-01-17 11:16:26 +00:00
div#blocklyCode {
2018-01-17 20:17:05 +00:00
display: none;
2017-09-25 09:37:41 +00:00
}
}