File tree Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Original file line number Diff line number Diff line change @@ -573,3 +573,26 @@ canvas {
573
573
height : 650px !important ;
574
574
overflow : visible !important ;
575
575
}
576
+
577
+ /* Confirm Transition Button Styles */
578
+ .confirm-transition-button {
579
+ font-size : 1.2rem !important ;
580
+ padding : 16px 32px !important ;
581
+ background : linear-gradient (135deg , var (--accent-color ), var (--accent-light )) !important ;
582
+ font-weight : 600 !important ;
583
+ letter-spacing : 1.5px !important ;
584
+ text-shadow : 0 1px 2px rgba (0 , 0 , 0 , 0.2 ) !important ;
585
+ transform : scale (1.1 ) !important ;
586
+ margin : 15px 0 !important ;
587
+ }
588
+
589
+ .confirm-transition-button : hover {
590
+ transform : scale (1.15 ) translateY (-2px ) !important ;
591
+ box-shadow : 0 8px 25px rgba (124 , 58 , 237 , 0.3 ) !important ;
592
+ }
593
+
594
+ .confirm-transition-button : disabled {
595
+ transform : scale (1 ) !important ;
596
+ background : var (--secondary-color ) !important ;
597
+ opacity : 0.7 !important ;
598
+ }
Original file line number Diff line number Diff line change @@ -177,13 +177,49 @@ const DfaNfaVisualizer = () => {
177
177
178
178
link . attr ( {
179
179
line : {
180
- stroke : 'black' ,
181
- strokeWidth : 2 ,
182
- targetMarker : { type : 'path' , d : 'M 10 -5 0 0 10 5 Z' , fill : 'black' } ,
180
+ stroke : 'var(--accent-color)' ,
181
+ strokeWidth : 2.5 ,
182
+ targetMarker : {
183
+ type : 'path' ,
184
+ d : 'M 12 -6 0 0 12 6 Z' ,
185
+ fill : 'var(--accent-color)' ,
186
+ stroke : 'var(--accent-color)'
187
+ } ,
188
+ strokeDasharray : '0' ,
189
+ targetMarkerSize : 12 ,
183
190
} ,
184
191
} ) ;
185
192
link . labels ( [ {
186
- attrs : { text : { text : transitionLabel , fontSize : 14 , fontWeight : 'bold' } } ,
193
+ markup : [
194
+ {
195
+ tagName : 'rect' ,
196
+ selector : 'body'
197
+ } ,
198
+ {
199
+ tagName : 'text' ,
200
+ selector : 'label'
201
+ }
202
+ ] ,
203
+ attrs : {
204
+ label : {
205
+ text : transitionLabel ,
206
+ fontSize : 15 ,
207
+ fontWeight : 'bold' ,
208
+ fontFamily : 'var(--font-family)' ,
209
+ fill : '#000000' ,
210
+ textAnchor : 'middle' ,
211
+ textVerticalAnchor : 'middle'
212
+ } ,
213
+ body : {
214
+ fill : '#FFFFFF' ,
215
+ stroke : 'var(--accent-color)' ,
216
+ strokeWidth : 2 ,
217
+ width : 20 ,
218
+ height : 22 ,
219
+ x : - 10 , // Half of width to center
220
+ y : - 11 // Half of height to center
221
+ }
222
+ } ,
187
223
position : 0.5 ,
188
224
} ] ) ;
189
225
link . addTo ( graph ) ;
@@ -888,6 +924,7 @@ const DfaNfaVisualizer = () => {
888
924
/>
889
925
890
926
< button
927
+ className = "confirm-transition-button button"
891
928
onClick = { confirmTransition }
892
929
disabled = { ! transitionSource || ! transitionTarget || ! transitionLabel }
893
930
>
You can’t perform that action at this time.
0 commit comments