Skip to content

Commit 872ce8a

Browse files
author
Dmytro Trotsko
committed
Added 'Normalize' and 'Show all' buttons
1 parent 30cca55 commit 872ce8a

File tree

2 files changed

+399
-8
lines changed

2 files changed

+399
-8
lines changed

src/assets/css/alter_dashboard.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,83 @@ body {
214214
max-height: 100%;
215215
}
216216

217+
/* Chart Controls */
218+
.chart-controls {
219+
margin-top: 1rem;
220+
padding-top: 1rem;
221+
border-top: 1px solid var(--border-color);
222+
}
223+
224+
.controls-group {
225+
display: flex;
226+
gap: 0.75rem;
227+
flex-wrap: wrap;
228+
align-items: center;
229+
}
230+
231+
.btn-control {
232+
display: inline-flex;
233+
align-items: center;
234+
gap: 0.5rem;
235+
padding: 0.5rem 1rem;
236+
background: var(--light-bg);
237+
border: 1px solid var(--border-color);
238+
border-radius: 6px;
239+
color: var(--dark-text);
240+
font-size: 0.875rem;
241+
font-weight: 500;
242+
cursor: pointer;
243+
transition: var(--transition);
244+
white-space: nowrap;
245+
}
246+
247+
.btn-control:hover {
248+
background: #f1f5f9;
249+
border-color: var(--primary-color);
250+
color: var(--primary-color);
251+
transform: translateY(-1px);
252+
box-shadow: var(--shadow-sm);
253+
}
254+
255+
.btn-control.active {
256+
background: var(--primary-color);
257+
border-color: var(--primary-color);
258+
color: white;
259+
}
260+
261+
.btn-control.active:hover {
262+
background: var(--primary-dark);
263+
border-color: var(--primary-dark);
264+
color: white;
265+
}
266+
267+
.control-icon {
268+
font-size: 1rem;
269+
line-height: 1;
270+
}
271+
272+
.control-text {
273+
line-height: 1;
274+
}
275+
276+
/* Enhanced Legend Styling */
277+
canvas + div {
278+
margin-top: 1rem;
279+
}
280+
281+
/* Responsive Controls */
282+
@media (max-width: 768px) {
283+
.controls-group {
284+
flex-direction: column;
285+
align-items: stretch;
286+
}
287+
288+
.btn-control {
289+
width: 100%;
290+
justify-content: center;
291+
}
292+
}
293+
217294
/* Footer */
218295
footer {
219296
background: white;

0 commit comments

Comments
 (0)