mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
* Add Blockly for the Web codelab code * Adding licences and comments as per review * Renaming a4/b4 sounds to a5/b5 * Define blocks with defineBlocksWithJsonArray istead of jsonInit
76 lines
1.0 KiB
CSS
76 lines
1.0 KiB
CSS
main {
|
|
width: 400px;
|
|
position: relative;
|
|
margin: 0 auto;
|
|
overflow:hidden;
|
|
height: 600px;
|
|
}
|
|
|
|
header {
|
|
background-color: green;
|
|
width: 100%;
|
|
}
|
|
|
|
h1 {
|
|
width: 400px;
|
|
position: relative;
|
|
margin: 0 auto;
|
|
color: #fff;
|
|
font-size: 1.8em;
|
|
line-height: 2.4em;
|
|
}
|
|
|
|
.mode-edit,
|
|
.mode-maker,
|
|
.mode-blockly {
|
|
display: none;
|
|
}
|
|
|
|
[mode="maker"] .mode-maker,
|
|
[mode="edit"] .mode-edit,
|
|
[mode="blockly"] .mode-blockly {
|
|
display: block;
|
|
}
|
|
|
|
.blockly-editor {
|
|
position: absolute;
|
|
top: 64px;
|
|
left: -400px;
|
|
transition: left .4s;
|
|
height: 460px;
|
|
width: 400px;
|
|
background-color: #eee;
|
|
}
|
|
|
|
[mode="blockly"] .blockly-editor {
|
|
left: 0;
|
|
}
|
|
|
|
.maker {
|
|
display: flex;
|
|
flex-flow: column;
|
|
justify-content: space-between;
|
|
height: 460px;
|
|
width: 400px;
|
|
}
|
|
|
|
.maker > div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.button {
|
|
width: 120px;
|
|
height: 140px;
|
|
color: #fff;
|
|
font-size: 3em;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
line-height: 140px;
|
|
}
|
|
|
|
.mdl-button {
|
|
margin: 1em 0;
|
|
float: right;
|
|
}
|