Skip to content

Commit fb58ec9

Browse files
committed
2 parents 806119f + 1ab4fb3 commit fb58ec9

9 files changed

+45
-6
lines changed

app/css/assets/colors.postcss.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
$c-purple: #3A0839;
33
$c-orange: #FF512F;
4-
$c-white : #FFFFFF;
4+
$c-white : #FFFFFF;

app/css/blocks/icon-button.postcss.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@
3939
transform: translate( -54%, -54% ) scale(.95);
4040
}
4141
}
42-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"icon-button":"_icon-button_va2ff_4","is-checked":"_is-checked_va2ff_31"}
1+
{"icon-button":"_icon-button_1jdiw_4","is-checked":"_is-checked_1jdiw_31"}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@import '../assets/globals.postcss.css';
2+
3+
.icon-divider {
4+
position: relative;
5+
width: calc( 16*$PX );
6+
height: calc( 16*$PX );
7+
display: block;
8+
background: $c-white;
9+
box-shadow: 0 calc( -1*$PX ) 4 rgba(0,0,0,.30);
10+
11+
& icon {
12+
position: absolute;
13+
left: 50%;
14+
top: 70%;
15+
width: 100%;
16+
height: 100%;
17+
transform: translate( -50%, -50% );
18+
}
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"icon-divider":"_icon-divider_177dd_3"}

app/js/tags/curve-editor.tag

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,32 @@ require('./resize-handle');
22
require('./icons');
33
require('./icon');
44
require('./icon-button');
5+
require('./icon-divider');
56
require('./curve');
67

78
<curve-editor class={this.CLASSES['curve-editor']} style={this.getStyle()}>
89
<icons />
910

1011
<div class={this.CLASSES['curve-editor__left']}>
1112
<icon-button shape="code"></icon-button>
13+
<icon-divider shape="divider"></icon-divider>
1214
<a href="https://github.com/legomushroom/mojs-curve-editor" target="_blank" class={this.CLASSES['curve-editor__mojs-logo']}>
1315
<icon shape="mojs-logo" />
1416
</a>
1517
</div>
1618

19+
<<<<<<< HEAD
20+
<curve adc={this.CLASSES['curve-editor__right']} />
21+
22+
=======
1723
<div class={this.CLASSES['curve-editor__right']}>
1824
<curve />
1925
<resize-handle type="top"></resize-handle>
2026
<resize-handle type="right"></resize-handle>
2127
<resize-handle type="bottom"></resize-handle>
2228
</div>
2329

30+
>>>>>>> 160ef2ef7c5f203d6f474a73062d6f86e7069387
2431
<script type="babel">
2532
require('../../css/blocks/curve-editor');
2633
this.CLASSES = require('../../css/blocks/curve-editor.postcss.css.json');
@@ -83,4 +90,4 @@ require('./curve');
8390

8491
</script>
8592

86-
</curve-editor>
93+
</curve-editor>

app/js/tags/icon-divider.tag

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require('./icon');
2+
3+
<icon-divider class={this.CLASSES['icon-divider']}>
4+
<icon shape={opts.shape}></icon>
5+
6+
<script>
7+
this.CLASSES = require('../../css/blocks/icon-divider.postcss.css.json');
8+
require('../../css/blocks/icon-divider');
9+
</script>
10+
11+
</icon-divider>

app/js/tags/icons.tag

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<circle cx="11" cy="16" r="1"></circle>
55
<circle cx="16" cy="16" r="1"></circle>
66
<circle cx="21" cy="16" r="1"></circle>
7-
</g>
7+
</g>
88
<path id="code-shape" d="M8,16.0849648 C8,15.8210793 8.11149069,15.6129393 8.33483405,15.4609065 L12.3390874,12.8419612 C12.3897649,12.8014192 12.4657813,12.7811481 12.5674985,12.7811481 C12.7398023,12.7811481 12.9048664,12.8571645 13.0623289,13.0095592 C13.2194294,13.161954 13.2983417,13.3393255 13.2983417,13.5423979 C13.2983417,13.7353347 13.2219633,13.8826617 13.0692066,13.9840168 L9.85769553,16.0849648 L13.0692066,18.1862747 C13.2219633,18.2677208 13.2983417,18.4146858 13.2983417,18.6278937 C13.2983417,18.830966 13.2197914,19.0061657 13.0623289,19.1531307 C12.9048664,19.3004576 12.7398023,19.3739401 12.5674985,19.3739401 C12.4657813,19.3739401 12.3897649,19.3536691 12.3390874,19.313127 L8.33483405,16.6938198 C8.11149069,16.541425 8,16.3387147 8,16.0849648 L8,16.0849648 Z M14.1399516,20.6875756 C14.1265582,20.6075774 14.1287301,20.5301131 14.1468293,20.4548207 L16.9395263,11.356022 C16.9891179,11.1623612 17.1237755,11.0468887 17.344223,11.0096045 C17.5042194,10.9824558 17.658786,11.0128623 17.8075609,11.1008242 C17.9563358,11.1891479 18.0442976,11.313308 18.0710844,11.4733044 C18.0862876,11.5634381 18.079772,11.6470561 18.0518993,11.7237965 L15.2664419,20.7748134 C15.2085247,20.9800577 15.0593878,21.1031318 14.8193932,21.1440358 C14.6488993,21.1729945 14.4994005,21.1389681 14.3698106,21.0426807 C14.2402208,20.9460313 14.1638424,20.8276629 14.1399516,20.6875756 L14.1399516,20.6875756 Z M18.9528744,19.1527687 C18.7954119,19.0058037 18.7168616,18.830604 18.7168616,18.6275317 C18.7168616,18.4244594 18.7878102,18.2774944 18.9300695,18.1859127 L22.1426665,16.0846028 L18.9300695,13.9836549 C18.7878102,13.8718022 18.7168616,13.7248372 18.7168616,13.5420359 C18.7168616,13.3389636 18.7954119,13.161592 18.9528744,13.0091973 C19.1103369,12.8568025 19.275039,12.7807861 19.4477048,12.7807861 C19.5389245,12.7807861 19.6098731,12.8014192 19.6609126,12.8415992 L23.6651659,15.4605445 C23.8881473,15.6129393 24,15.8210793 24,16.0846028 C24,16.3488502 23.8881473,16.5515606 23.6651659,16.6938198 L19.6609126,19.3127651 C19.6098731,19.3533071 19.5389245,19.3735782 19.4477048,19.3735782 C19.275039,19.3735782 19.1103369,19.3000957 18.9528744,19.1527687 L18.9528744,19.1527687 Z"></path>
9+
<path id="divider-shape" d="M0,1 L15.625,1"></path>
910
<path id="mojs-logo-shape" d="M18.4678907,2.67700048 C19.488586,3.25758625 20.2789227,4.18421651 20.87823,5.1973579 C24.0807788,10.501451 27.2777091,15.8113116 30.480258,21.1154047 C31.1320047,22.1612281 31.7706417,23.2647256 31.9354512,24.5162532 C32.188284,26.0619186 31.6919826,27.7363895 30.5589171,28.80336 C29.4501984,29.8857103 27.8807622,30.3182659 26.3806209,30.3048086 C19.4511293,30.3086535 12.5235106,30.3086535 5.59401901,30.3048086 C3.71556494,30.343258 1.69852104,29.5723478 0.683444165,27.8709623 C-0.406546132,26.1099803 -0.0975282643,23.7914822 0.940022637,22.0843293 C4.34296485,16.4130445 7.76650826,10.7532945 11.1825603,5.08969961 C11.9747698,3.74781595 13.1846215,2.60202418 14.6847628,2.18292584 C15.9451812,1.81573418 17.3348251,2.01182606 18.4678907,2.67700048 Z M15.3334668,9.51526849 C15.6146238,9.03779476 16.0791597,9.02250655 16.3785679,9.4929547 L25.2763555,23.4736913 C25.5723919,23.9388414 25.3568433,24.3159201 24.8074398,24.3159202 L7.62314647,24.3159205 C7.06813505,24.3159206 6.84622798,23.9286889 7.12728913,23.4513779 L15.3334668,9.51526849 Z" fill-rule="evenodd"></path>
1011
</svg>
11-
</icons>
12+
</icons>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"hammerjs": "^2.0.8",
2929
"propagating-hammerjs": "^1.4.6",
3030
"redux": "^3.5.2",
31+
"redux-undo": "^0.6.1",
3132
"riot": "^2.5.0"
3233
},
3334
"devDependencies": {

0 commit comments

Comments
 (0)