sumorobot-web/assets/css/styles.css

212 lines
4.3 KiB
CSS
Raw Normal View History

2018-01-28 09:36:50 +00:00
/* load the Orbitron font */
@font-face {
font-family: Orbitron;
src: url(fonts/orbitron-medium-webfont.woff);
}
2017-09-25 09:37:41 +00:00
html, body {
height: 100%;
2018-01-28 09:36:50 +00:00
font-family: Orbitron !important;
2017-09-25 09:37:41 +00:00
}
body {
overflow: hidden;
background-color: #fff;
}
2018-05-03 06:46:50 +00:00
iframe {
2018-05-03 06:46:14 +00:00
width: 100%;
height: 100%;
}
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%;
}
td, tr {
padding: 0px;
}
/* Tooltip */
.tooltip.show {
opacity: 1 !important;
}
/* 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;
}
/* 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-27 14:43:31 +00:00
/* coockie button */
a.cc-btn:hover {
background-color: #ffd500ff !important;
}
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-08-18 17:12:05 +00:00
top: 1px;
right: 1px;
2017-10-22 19:12:02 +00:00
position: absolute;
}
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;
}
/* Blockly workspace */
div#blocklyArea {
width: 100%;
height: 100%;
}
/* ace editor */
div#blocklyCode {
width: 100%;
height: 100%;
display: none;
font-size: 1.3em;
}
/* read only ace editor */
div#readOnlyBlocklyCode {
width: 100%;
height: 100%;
font-size: 1.3em;
}
2018-08-18 17:12:05 +00:00
/* ace line highlight */
.highlight {
z-index: 20;
position: absolute;
background: rgba(255, 212, 73, 0.5);
}
2018-01-28 09:36:50 +00:00
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;
}
2018-01-19 12:02:17 +00:00
/* robot ID input container */
div.input-group {
2018-01-17 20:17:05 +00:00
width: 35%;
margin-left: auto;
margin-right: auto;
}
2018-01-19 12:02:17 +00:00
/* robot ID label */
span.input-group-text {
2018-01-17 20:17:05 +00:00
font-size: 2vw;
2018-01-19 12:02:17 +00:00
font-weight: bold;
padding: 0.5vw 1vw !important;
}
2018-01-19 12:02:17 +00:00
/* robot ID input field */
input.form-control {
2018-01-17 20:17:05 +00:00
font-size: 2vw;
2018-01-19 12:02:17 +00:00
padding: 0.5vw 1vw !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;
}
/* left table cell */
td#leftCell {
2018-01-17 20:17:05 +00:00
width: 60%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
/* right table cell */
td#rightCell {
2018-01-17 20:17:05 +00:00
width: 40%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
}
2018-01-28 09:36:50 +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;
}
2018-01-19 12:02:17 +00:00
/* robot ID input container */
div.input-group {
2018-01-17 20:17:05 +00:00
width: 100%;
margin-left: auto;
margin-right: auto;
}
2018-01-19 12:02:17 +00:00
/* robot ID label */
2018-08-18 20:50:14 +00:00
span.input-group-text {
2018-01-17 20:17:05 +00:00
font-size: 4.5vw;
2018-01-19 12:02:17 +00:00
font-weight: bold;
padding: 0.5vw 1vw !important;
}
2018-01-19 12:02:17 +00:00
/* robot ID input field */
input.form-control {
2018-01-17 20:17:05 +00:00
font-size: 4.5vw;
2018-01-19 12:02:17 +00:00
padding: 0.5vw 1vw !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;
}
/* left table cell */
td#leftCell {
2018-01-17 20:17:05 +00:00
width: 100%;
height: 100%;
2017-09-25 09:37:41 +00:00
}
/* right table cell */
td#rightCell {
2018-01-17 20:17:05 +00:00
display: none;
2017-09-25 09:37:41 +00:00
}
}