Skip to content

Commit 2264606

Browse files
Update button style
2 parents bff25fe + 2e175f8 commit 2264606

File tree

2 files changed

+58
-10
lines changed

2 files changed

+58
-10
lines changed

src/Legend.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { LegendItem } from "./LegendItem";
44
import { MonitorSettings, PluggableMonitor } from "./utils";
55
import { Scrollbars } from "react-custom-scrollbars";
66
import Switch from "react-switch";
7+
import classNames from "classnames";
78

89
export function Legend({
910
chartRef,
@@ -158,7 +159,7 @@ export function Legend({
158159
</label>
159160
<button
160161
disabled={!config?.monitorUISettings?.connected}
161-
className="pause-button"
162+
className={classNames("pause-button", { paused: pause })}
162163
title={
163164
config?.monitorUISettings?.connected
164165
? undefined

src/index.scss

+56-9
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ body {
104104
}
105105

106106
.message-to-board-send-button {
107-
width: 45px;
107+
margin-left: 6px;
108108
}
109109
}
110110

@@ -224,10 +224,18 @@ body {
224224
}
225225

226226
.pause-button {
227-
width: 47px;
227+
width: 75px;
228228
text-align: center;
229229
}
230230

231+
.pause-button:not(.paused) {
232+
background-color: $notifyerror;
233+
234+
&:hover {
235+
background-color: darken($notifyerror, 10);
236+
}
237+
}
238+
231239
.clear-button {
232240
border: none;
233241
background: none;
@@ -362,17 +370,56 @@ input[type="text"]{
362370
color: #7F8C8D !important;
363371
}
364372

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+
365388
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;
371390
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;
373398
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;
374412

375413
&[disabled] {
376414
opacity: 0.5;
415+
pointer-events: none;
377416
}
378-
}
417+
418+
&:hover {
419+
background-color: $teal5;
420+
}
421+
422+
&:active {
423+
box-shadow: 0 0 0 2px $teal0;
424+
}
425+
}

0 commit comments

Comments
 (0)