From cfd3c04dc73dd710cd1b5a304478fe28dd40aa83 Mon Sep 17 00:00:00 2001 From: Nile Walker Date: Tue, 16 Feb 2021 09:03:51 -0500 Subject: [PATCH] Updated Graph Page Css --- src/app/custom-date-adapter.ts | 3 ++ src/app/graphs/graphs.component.css | 28 +++++--------- src/app/graphs/graphs.component.html | 53 ++++++++++---------------- src/app/sidebar/sidebar.component.html | 4 +- src/app/sidebar/sidebar.component.ts | 6 ++- 5 files changed, 39 insertions(+), 55 deletions(-) diff --git a/src/app/custom-date-adapter.ts b/src/app/custom-date-adapter.ts index 5931db9..263f10e 100644 --- a/src/app/custom-date-adapter.ts +++ b/src/app/custom-date-adapter.ts @@ -19,6 +19,9 @@ export class CustomDatePipe implements PipeTransform { @Pipe({ name: 'date' }) @Injectable() export class CustomDateAdapter extends NativeDateAdapter implements PipeTransform { + transform(value: any, ...args: any[]) { + throw new Error('Method not implemented.'); + } getFirstDayOfWeek(): number { return 1; diff --git a/src/app/graphs/graphs.component.css b/src/app/graphs/graphs.component.css index be9ccf6..3f5cf58 100644 --- a/src/app/graphs/graphs.component.css +++ b/src/app/graphs/graphs.component.css @@ -1,33 +1,21 @@ /* https://css-tricks.com/dont-overthink-flexbox-grids/ */ .flex-grid { display: flex; - align-items: center; } -.flex-grid .col { - flex: 1; +.flex-grid-plot .col { + flex: 2; } -.flex-grid-thirds { - display: flex; - justify-content: space-between; -} - -.flex-grid-thirds .col { - width: 32%; -} - -@media (max-width: 400px) { - .flex-grid, - .flex-grid-thirds { - display: block; +/* @media (max-width: 400px) { + .flex-grid { + display: flex; .col { - width: 100%; margin: 0 0 10px 0; } } -} +} */ * { box-sizing: border-box; @@ -35,6 +23,7 @@ mat-form-field { margin: 20px; + } mat-card { @@ -44,6 +33,9 @@ mat-card { body { padding: 20px; } +button { + padding: 20px; +} .flex-grid { margin: 0 20px 20px 0; } diff --git a/src/app/graphs/graphs.component.html b/src/app/graphs/graphs.component.html index c9216ca..ca11840 100644 --- a/src/app/graphs/graphs.component.html +++ b/src/app/graphs/graphs.component.html @@ -38,59 +38,46 @@ style="color:red">{{topBarData[6]}} - +
-
-

Search

+
+

Search

+ + +
Include Test Labels -
-
- -
-
- -
-
- -
- -
- - - - - - - - -
-
+
+ + + + + + + + Location ID(s) -
- -
+ Student ID(s) -
- -
+ Compute ID(s) +
+ - -
+

{{ChartName}}

diff --git a/src/app/sidebar/sidebar.component.html b/src/app/sidebar/sidebar.component.html index 9137a02..dd66d88 100644 --- a/src/app/sidebar/sidebar.component.html +++ b/src/app/sidebar/sidebar.component.html @@ -15,8 +15,8 @@

- Toggle Sidebar -

+ +

\ No newline at end of file diff --git a/src/app/sidebar/sidebar.component.ts b/src/app/sidebar/sidebar.component.ts index ce6b435..a40d3d0 100644 --- a/src/app/sidebar/sidebar.component.ts +++ b/src/app/sidebar/sidebar.component.ts @@ -8,8 +8,10 @@ import { Component, OnInit } from '@angular/core'; export class SidebarComponent implements OnInit { constructor() { } - opened: boolean; - + opened: boolean = false; + Toggle(){ + this.opened = !this.opened; + } ngOnInit(): void { }