Skip to content

Commit e35e0cd

Browse files
committed
Some stylin'
1 parent 17220b6 commit e35e0cd

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

src/nico/src/nico/components/Block.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template lang="pug">
22
draggable.dragArea(tag="ul" :list="children" :group="group" :clone="onClone")
33
li(v-for="child in children")
4-
div(v-if="child.type === 'if'")
4+
div.if(v-if="child.type === 'if'")
55
| if {{ child.condition }}
66
Block.child(:children="child.children")
77
div(v-else-if="child.type === 'callMars'")
@@ -49,13 +49,19 @@ export default {
4949
}
5050
</script>
5151

52-
<style scoped>
52+
<style lang="scss" scoped>
5353
.child {
5454
margin-left: 20px;
5555
}
5656
.dragArea {
5757
outline: 1px dotted;
5858
min-height: 20px;
59-
padding-bottom: 50px;
59+
padding: 10px;
60+
}
61+
.if {
62+
> .dragArea {
63+
padding-bottom: 20px;
64+
}
65+
padding-bottom: 15px;
6066
}
6167
</style>

src/nico/src/nico/components/BlockEditor.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<template lang="pug">
22
.d-flex
3-
.flex-grow-2
3+
.flex-grow-2.m-3
44
h6.font-weight-bold Control Flow
55
Block(:children="controlFlow" :clone="true")
6-
.flex-grow-2
6+
// mw-35 just for displaying blocksRoot
7+
.flex-grow-2.m-3.mw-35
78
h6.font-weight-bold Nico
89
Block(:children="nicoFuncs" :clone="true")
910
| {{ blocksRoot }}
@@ -39,3 +40,9 @@ export default {
3940
},
4041
}
4142
</script>
43+
44+
<style scoped>
45+
.mw-35 {
46+
max-width: 35%;
47+
}
48+
</style>

src/nico/src/nico/components/BlockParamEditor.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.d-inline(v-if="type.type === 'str'")
44
input(v-bind:value="value" v-on:input="$emit('input', $event.target.value)")
55
.d-inline(v-if="type.type === 'num'")
6-
input.w-25(
6+
input.num(
77
type="number"
88
v-bind:value="value"
99
v-on:input="$emit('input', Number($event.target.value))"
@@ -25,3 +25,12 @@ export default {
2525
},
2626
}
2727
</script>
28+
29+
<style scoped>
30+
.num {
31+
width: 75px;
32+
outline: solid 1px;
33+
margin: 0 5px;
34+
}
35+
</style>
36+

0 commit comments

Comments
 (0)