Skip to content

Commit

Permalink
fix #429, wholenumber is now has render.edit, also change order of bu…
Browse files Browse the repository at this point in the history
…ilding CSS, so style CSS overrides toolkit CSS when needed (#385, #379)
  • Loading branch information
shamansir committed Feb 15, 2017
1 parent 582efce commit 8f7704a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
16 changes: 8 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,24 +642,24 @@ function getCssFiles(options) {
options.renderer.forEach(function(renderer) {
list.push(Paths.Renderer(renderer) + '.css');
});
options.style.forEach(function(style) {
options.toolkit.forEach(function(toolkit) {
options.renderer.forEach(function(renderer) {
list.push(Paths.StyleRenderer(style, renderer) + '.css');
list.push(Paths.ToolkitRenderer(toolkit, renderer) + '.css');
});
});
options['user-style'].forEach(function(style) {
options['user-toolkit'].forEach(function(toolkit) {
options.renderer.forEach(function(renderer) {
list.push(Paths.UserStyleRenderer(style, renderer) + '.css');
list.push(Paths.UserToolkitRenderer(toolkit, renderer) + '.css');
});
});
options.toolkit.forEach(function(toolkit) {
options.style.forEach(function(style) {
options.renderer.forEach(function(renderer) {
list.push(Paths.ToolkitRenderer(toolkit, renderer) + '.css');
list.push(Paths.StyleRenderer(style, renderer) + '.css');
});
});
options['user-toolkit'].forEach(function(toolkit) {
options['user-style'].forEach(function(style) {
options.renderer.forEach(function(renderer) {
list.push(Paths.UserToolkitRenderer(toolkit, renderer) + '.css');
list.push(Paths.UserStyleRenderer(style, renderer) + '.css');
});
});
return list;
Expand Down
14 changes: 8 additions & 6 deletions src/style/ableton-out/svg.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
display: none;
}

.rpd-inlet.rpd-util-number foreignobject, .rpd-outlet.rpd-util-number foreignobject {
transform: translate(-43px,1px);
font-size: 8px;
}

.rpd-inlet text.rpd-name,
.rpd-outlet text.rpd-name {
font-size: 9px;
Expand Down Expand Up @@ -163,6 +158,13 @@
}

.rpd-inlet.rpd-util-number foreignobject,
.rpd-outlet.rpd-util-number foreignobject {
.rpd-inlet.rpd-util-wholenumber foreignobject {
transform: translate(-43px,1px);
}

.rpd-inlet.rpd-util-number foreignobject,
.rpd-outlet.rpd-util-number foreignobject,
.rpd-inlet.rpd-util-wholenumber foreignobject,
.rpd-outlet.rpd-util-wholenumber foreignobject {
font-size: 8px;
}
2 changes: 2 additions & 0 deletions src/toolkit/util/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Rpd.channelrenderer('util/number', 'html', {
}
});

Rpd.channelrenderer('util/wholenumber', 'html', Rpd.allChannelRenderers['util/number']['html']);

Rpd.noderenderer('util/number', 'html', {
first: function(bodyElm) {
var valInput = document.createElement('input');
Expand Down
4 changes: 2 additions & 2 deletions src/toolkit/util/svg.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
}

.rpd-inlet.rpd-util-number foreignobject,
.rpd-outlet.rpd-util-number foreignobject {
.rpd-inlet.rpd-util-wholenumber foreignobject {
transform: translate(-2px,-8px);
/* text-align: end; */
/* text-anchor: end; */
}

.rpd-inlet.rpd-util-number input[type=number],
.rpd-outlet.rpd-util-number input[type=number] {
.rpd-inlet.rpd-util-wholenumber input[type=number] {
border: 1px solid lightgray;
background-color: #eee;
font-size: 0.8em;
Expand Down
4 changes: 4 additions & 0 deletions src/toolkit/util/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Rpd.channelrenderer('util/number', 'svg', {
}
});

/* ========================= util/wholenumber ========================= */

Rpd.channelrenderer('util/wholenumber', 'svg', Rpd.allChannelRenderers['util/number']['svg']);

/* ========================= util/random ========================= */

Rpd.noderenderer('util/random', 'svg', function() {
Expand Down

0 comments on commit 8f7704a

Please sign in to comment.