Skip to content

Commit a33ac93

Browse files
committed
Final changes and theme enhancements
1 parent b1b998f commit a33ac93

File tree

8 files changed

+55
-75
lines changed

8 files changed

+55
-75
lines changed

Grid/FinJS/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# FinJS
1+
# FinJS Live Updating Demo
2+
3+
The Grid component in Ignite UI for Angular is able to handle thousands of updates per seconds, while keeping the grid responsive for any interaction that the user may undertake. This sample demonstrates the Grid handling thousands of updates per second.
4+
5+
## View on StackBlitz
6+
7+
[Run this sample on StackBlitz](https://stackblitz.com/github/Infragistics/angular-samples/tree/master/Grid/FinJS)
8+
9+
## Project
210

311
This project was generated with [Ignite UI CLI](https://github.com/IgniteUI/igniteui-cli) version 4.2.3.
412

Grid/FinJS/src/app/app.component.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.outer-wrapper {
2-
display: flex;
2+
padding: 25px;
3+
// Removed because of the issue with dynamic changing of Grid width
4+
// display: flex;
35
justify-content: center;
46
height: 100%;
57
}

Grid/FinJS/src/app/grid-finjs/grid-finjs.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="grid__wrapper">
1+
<div class="grid__wrapper" [class.fin-dark-theme]="theme">
22
<div class="controls-holder">
33
<div class="switches">
44
<div class="control-item">

Grid/FinJS/src/app/grid-finjs/localData.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable } from '@angular/core';
22
import { BehaviorSubject, Observable} from 'rxjs';
3-
import { FinancialData } from '../../../../LocalData/financialData';
3+
import { FinancialData } from '../../../../../LocalData/financialData';
44

55
@Injectable()
66
export class LocalDataService {
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@mixin scrollbar-love($scrollbar-color: null) {
2+
$scrollbar-track: hexrgba(igx-color($default-palette, 'grays', 200));
3+
$scrollbar-thumb: hexrgba(igx-color($default-palette, 'grays', 400));
4+
5+
@if $scrollbar-color and luminance($scrollbar-color) < .5 {
6+
$scrollbar-track: darken($scrollbar-color, 8%);
7+
$scrollbar-thumb: lighten($scrollbar-color, 20%);
8+
}
9+
10+
::-webkit-scrollbar {
11+
width: 16px;
12+
height: 16px;
13+
background-color: $scrollbar-track;
14+
}
15+
16+
::-webkit-scrollbar-thumb {
17+
background-color: $scrollbar-thumb;
18+
}
19+
}

Grid/FinJS/src/app/themes/themes.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Import the theme utilities first
2+
@import '~igniteui-angular/lib/core/styles/themes/utilities';
3+
@import '~igniteui-angular/lib/core/styles/themes/index';
4+
@include igx-core();
5+
@include igx-theme($default-palette);
6+
7+
@import 'mixins';
8+
9+
@include scrollbar-love();
10+
11+
$green-palette: igx-palette($primary: #09f,$secondary: #72da67, $surface: #333);
12+
13+
.fin-dark-theme {
14+
@include igx-dark-theme($green-palette);
15+
@include scrollbar-love(igx-color($green-palette, 'surface'));
16+
background: #333;
17+
18+
::-moz-placeholder {
19+
opacity: 1;
20+
}
21+
}

Grid/FinJS/src/styles.scss

+1-71
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,13 @@
1-
/* You can add global styles to this file, and also import other style files */
2-
// Standard CSS normalize, comment out if not required or using a different module
3-
@import "~minireset.css/minireset";
4-
5-
/* See: https://www.infragistics.com/products/ignite-ui-angular/angular/components/themes.html */
6-
@import "~igniteui-angular/lib/core/styles/themes/index";
71

8-
@include igx-core();
9-
@include igx-theme($default-palette);
2+
@import 'app/themes/themes.scss';
103

11-
/* autoprefixer grid: on */
124
html,
135
body {
146
height: 100%;
157
overflow: hidden;
168
margin: 0;
179
}
1810

19-
.sample-wrapper {
20-
width: inherit;
21-
position: relative;
22-
height: 100%;
23-
margin: 0 auto;
24-
background: transparent;
25-
}
26-
27-
.sample-content {
28-
display: flex;
29-
flex-grow: 1;
30-
flex-flow: row wrap;
31-
justify-content: flex-start;
32-
padding: 0;
33-
-webkit-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
34-
-moz-animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
35-
animation: fade-in .3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
36-
}
37-
38-
.sample-column {
39-
display: flex;
40-
flex-flow: column nowrap;
41-
flex: 1 0 25%;
42-
align-content: flex-start;
43-
margin: 16px;
44-
min-width: 280px;
45-
}
46-
47-
.sample-title {
48-
color: #0375be;
49-
margin-bottom: 12px;
50-
margin-top: 12px;
51-
}
52-
53-
.sample-title .light {
54-
font-weight: 400;
55-
}
56-
57-
.sample-description {
58-
font-size: 14px;
59-
font-weight: normal;
60-
color: #717171;
61-
}
62-
6311
@-webkit-keyframes color-change-2x {
6412
0% {
6513
background: #fdf8f0;
@@ -99,21 +47,3 @@ body {
9947
.headerAlignSyle {
10048
text-align: right !important;
10149
}
102-
103-
$green-palette: igx-palette($primary: #09f,$secondary: #72da67, $surface: #333);
104-
105-
.fin-dark-theme {
106-
@include igx-dark-theme($green-palette);
107-
background: #333;
108-
109-
::-moz-placeholder {
110-
opacity: 1;
111-
}
112-
}
113-
114-
.dark-theme {
115-
background: #333;
116-
color: #fff;
117-
@include igx-dark-theme($green-palette);
118-
}
119-
File renamed without changes.

0 commit comments

Comments
 (0)