logotron
Version:
Have fun to learn LOGO programming with electron!
99 lines (86 loc) • 1.4 kB
CSS
* {
box-sizing: border-box;
}
html,
body {
padding: 0;
margin: 0;
height: 100%;
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.container {
position: relative;
top: 0;
left: 0;
height: inherit;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.pen {
position: absolute;
top: 0;
left: 0;
z-index: 1000;
width: 100%;
height: 100%;
}
.turtle {
position: absolute;
top: 0;
left: 0;
z-index: 2000;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0);
}
.command {
position: absolute;
bottom: 0;
width: 100%;
height: 200px;
border: 1px solid #ddd;
background-color: #fff;
padding: 10px;
font-size: 16px;
z-index: 10000;
resize: none;
}
.button {
position: absolute;
width: 100px;
height: 30px;
line-height: 1;
font-weight: bold;
outline: none;
cursor: pointer;
}
.button.run {
right: 20px;
bottom: 20px;
z-index: 10001;
background-color: mediumseagreen;
border: 1px solid seagreen;
transition: background-color 0.25s ease 0s;
}
.button.run:hover {
background-color: seagreen;
}
.button.reset {
right: 150px;
bottom: 20px;
z-index: 10002;
background-color: lightskyblue;
border: 1px solid dodgerblue;
transition: background-color 0.25s ease 0s;
}
.button.reset:hover {
background-color: dodgerblue;
}