File tree 2 files changed +58
-10
lines changed
2 files changed +58
-10
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { LegendItem } from "./LegendItem";
4
4
import { MonitorSettings , PluggableMonitor } from "./utils" ;
5
5
import { Scrollbars } from "react-custom-scrollbars" ;
6
6
import Switch from "react-switch" ;
7
+ import classNames from "classnames" ;
7
8
8
9
export function Legend ( {
9
10
chartRef,
@@ -158,7 +159,7 @@ export function Legend({
158
159
</ label >
159
160
< button
160
161
disabled = { ! config ?. monitorUISettings ?. connected }
161
- className = "pause-button"
162
+ className = { classNames ( "pause-button" , { paused : pause } ) }
162
163
title = {
163
164
config ?. monitorUISettings ?. connected
164
165
? undefined
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ body {
104
104
}
105
105
106
106
.message-to-board-send-button {
107
- width : 45 px ;
107
+ margin-left : 6 px ;
108
108
}
109
109
}
110
110
@@ -224,10 +224,18 @@ body {
224
224
}
225
225
226
226
.pause-button {
227
- width : 47 px ;
227
+ width : 75 px ;
228
228
text-align : center ;
229
229
}
230
230
231
+ .pause-button :not (.paused ) {
232
+ background-color : $notifyerror ;
233
+
234
+ & :hover {
235
+ background-color : darken ($notifyerror , 10 );
236
+ }
237
+ }
238
+
231
239
.clear-button {
232
240
border : none ;
233
241
background : none ;
@@ -362,17 +370,56 @@ input[type="text"]{
362
370
color : #7F8C8D !important ;
363
371
}
364
372
373
+ .dark {
374
+ button {
375
+ background-color : $teal1 ;
376
+ color : $onyx ;
377
+
378
+ & :hover {
379
+ background-color : $teal0 ;
380
+ }
381
+
382
+ & :active {
383
+ box-shadow : 0 0 0 2px $fog ;
384
+ }
385
+ }
386
+ }
387
+
365
388
button {
366
- background : #B9C7C9 ;
367
- border : 1px solid #E1E1E1 ;
368
- box-sizing : border-box ;
369
- box-shadow : 0px 1px 3px rgba (0 , 0 , 0 , 0.25 );
370
- border-radius : 1px ;
389
+ background-color : $teal3 ;
371
390
color : $white ;
372
- padding : 6px 5px ;
391
+ align-items : center ;
392
+ display : flex ;
393
+ font-family : ' Open Sans' ,sans-serif ;
394
+ font-style : normal ;
395
+ font-weight : 700 ;
396
+ font-size : 14px ;
397
+ justify-content : center ;
373
398
cursor : pointer ;
399
+ letter-spacing : .01em ;
400
+ line-height : 23.8px ;
401
+ outline : none ;
402
+ padding : 0 16px ;
403
+ position : relative ;
404
+ text-align : center ;
405
+ text-decoration : none ;
406
+ border-width : 2px ;
407
+ border-radius : 32px ;
408
+ text-transform : uppercase ;
409
+ transition : none ;
410
+ box-shadow : none ;
411
+ border-color : transparent ;
374
412
375
413
& [disabled ] {
376
414
opacity : 0.5 ;
415
+ pointer-events : none ;
377
416
}
378
- }
417
+
418
+ & :hover {
419
+ background-color : $teal5 ;
420
+ }
421
+
422
+ & :active {
423
+ box-shadow : 0 0 0 2px $teal0 ;
424
+ }
425
+ }
You can’t perform that action at this time.
0 commit comments