Skip to content

Commit f47bf83

Browse files
author
Daniel Wheeler
committed
Updates
1 parent fda92cd commit f47bf83

File tree

526 files changed

+141268
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

526 files changed

+141268
-230
lines changed

README.md

Lines changed: 1 addition & 2 deletions

app/app.module.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(function(angular) {
2+
3+
'use strict';
4+
5+
angular.module('app', [
6+
'd3',
7+
'oilPricesService',
8+
'routes',
9+
'lineChart',
10+
'filters',
11+
'navigation',
12+
'content',
13+
'footer'
14+
]);
15+
16+
})(window.angular);

app/app.routes.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(function(angular) {
2+
3+
'use strict';
4+
5+
angular.module('routes', [
6+
'ngComponentRouter'
7+
])
8+
9+
.value('$routerRootComponent', 'app')
10+
11+
.directive('app', [function() {
12+
return {
13+
restrict: 'EA',
14+
template: [
15+
'<navigation></navigation>',
16+
'<content><ng-outlet></ng-outlet></content>',
17+
'<footer></footer>'
18+
].join('')
19+
};
20+
}]);
21+
22+
})(window.angular);
Lines changed: 112 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -177,51 +177,133 @@ html {
177177
*, *::after, *::before {
178178
box-sizing: inherit; }
179179

180-
.Page {
180+
.Content {
181+
padding-top: 2rem;
182+
padding-bottom: 5rem; }
183+
184+
.Content {
185+
padding-top: 2rem;
186+
padding-bottom: 5rem; }
187+
188+
.Navigation {
189+
border-top-color: #8e44ad;
190+
border-top-style: solid;
191+
border-top-width: 6px;
192+
background-color: #333; }
193+
.Navigation-list {
194+
max-width: 68em;
195+
margin-left: auto;
196+
margin-right: auto;
197+
padding: 0;
198+
list-style-type: none;
199+
overflow: hidden; }
200+
.Navigation-list::after {
201+
clear: both;
202+
content: "";
203+
display: table; }
204+
.Navigation-listItem {
205+
background-color: #333;
206+
float: left; }
207+
.Navigation-listItem a {
208+
padding: 20px 22px;
209+
display: block;
210+
color: #fff;
211+
text-align: center;
212+
text-decoration: none;
213+
text-transform: uppercase;
214+
font-weight: 700;
215+
font-size: .85rem;
216+
letter-spacing: 1px; }
217+
.Navigation-listItem:hover {
218+
background-color: #222; }
219+
.Navigation-listItem .is-active {
220+
background-color: #2ecc71; }
221+
222+
.Footer {
223+
border-top-color: #ddd;
224+
border-top-style: solid;
225+
border-top-width: 1px;
226+
padding-top: 1rem;
227+
padding-bottom: 1rem;
228+
text-align: center; }
229+
.Footer-content {
230+
color: #999;
231+
font-size: 14px;
232+
line-height: 150%; }
233+
234+
.Chart {
181235
max-width: 68em;
182236
margin-left: auto;
183237
margin-right: auto; }
184-
.Page::after {
238+
.Chart::after {
185239
clear: both;
186240
content: "";
187241
display: table; }
188-
189-
.Filters {
190-
padding: 1.5rem; }
191-
192-
.rzslider .rz-pointer {
242+
.Chart-filters {
243+
border-color: #ddd;
244+
border-style: solid;
245+
border-width: 1px;
246+
padding: 1.25rem;
247+
background-color: #fff;
248+
margin-bottom: 1rem; }
249+
.Chart-display {
250+
border-color: #ddd;
251+
border-style: solid;
252+
border-width: 1px;
253+
padding: 1.25rem;
254+
background-color: #fff; }
255+
256+
.Filters .rzslider .rz-pointer {
257+
top: -10px;
258+
height: 24px;
259+
width: 24px;
193260
background: #8e44ad; }
194-
.rzslider .rz-pointer.rz-active:after {
261+
.Filters .rzslider .rz-pointer:after {
262+
top: 8px;
263+
left: 8px; }
264+
.Filters .rzslider .rz-pointer.rz-active:after {
195265
background: #2ecc71; }
196266

197-
.rzslider .rz-bar.rz-selection {
267+
.Filters .rzslider .rz-bar.rz-selection {
198268
background: #8e44ad; }
199269

200-
.rzslider .rz-ticks .rz-tick.rz-selected {
270+
.Filters .rzslider .rz-ticks .rz-tick.rz-selected {
201271
background: #8e44ad; }
202272

203-
.rzslider .rz-ticks .rz-tick .rz-tick-value {
273+
.Filters .rzslider .rz-ticks .rz-tick .rz-tick-value {
204274
color: #999;
275+
font-size: 14px;
205276
font-weight: 700;
206277
top: -38px; }
207278

208279
body {
209-
max-width: 68em;
210-
margin-left: auto;
211-
margin-right: auto;
212-
background: #f5f5f5; }
213-
body::after {
214-
clear: both;
215-
content: "";
216-
display: table; }
217-
218-
.Data {
219-
border-left-color: #553982;
220-
border-left-width: 6px;
221-
border-left-style: solid;
222-
-webkit-transition: all 0.25s ease-in-out;
223-
-moz-transition: all 0.25s ease-in-out;
224-
transition: all 0.25s ease-in-out;
225-
margin-bottom: 1rem;
226-
padding: 1rem;
227-
background-color: #fff; }
280+
margin: 0;
281+
padding: 0;
282+
background: #ecf0f1; }
283+
284+
/* D3 styles below */
285+
path {
286+
stroke: #3498db;
287+
stroke-width: 1;
288+
fill: none; }
289+
290+
.axis path,
291+
.axis line {
292+
fill: none;
293+
stroke: #ddd;
294+
stroke-width: 1; }
295+
296+
.axis text {
297+
font-size: 13px;
298+
font-color: #ddd; }
299+
300+
div.tooltip {
301+
position: absolute;
302+
text-align: center;
303+
width: 60px;
304+
height: 28px;
305+
padding: 2px;
306+
font: 12px sans-serif;
307+
background: lightsteelblue;
308+
border: 0px;
309+
border-radius: 8px; }

app/assets/css/main.scss

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
@import 'vendor/bourbon/bourbon';
2+
@import 'vendor/base/base';
3+
@import 'vendor/neat/neat';
4+
@import 'mixins/display_panel';
5+
@import 'components/content';
6+
7+
@import 'app/shared/content/content';
8+
@import 'app/shared/navigation/navigation';
9+
@import 'app/shared/footer/footer';
10+
11+
@import 'app/components/chart/chart';
12+
@import 'app/components/filter/filter';
13+
14+
body {
15+
$background-color: #ecf0f1;
16+
@include margin(0);
17+
@include padding(0);
18+
background: $background-color;
19+
}
20+
21+
/* D3 styles below */
22+
23+
path {
24+
stroke: #3498db;
25+
stroke-width: 1;
26+
fill: none;
27+
}
28+
29+
.axis path,
30+
.axis line {
31+
fill: none;
32+
stroke: #ddd;
33+
stroke-width: 1;
34+
}
35+
36+
.axis text {
37+
font-size: 13px;
38+
font-color: #ddd;
39+
}
40+
41+
div.tooltip {
42+
position: absolute;
43+
text-align: center;
44+
width: 60px;
45+
height: 28px;
46+
padding: 2px;
47+
font: 12px sans-serif;
48+
background: lightsteelblue;
49+
border: 0px;
50+
border-radius: 8px;
51+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@mixin displayPanel {
2+
$background-color: #fff;
3+
$border-color: #ddd;
4+
@include border-color($border-color);
5+
@include border-style(solid);
6+
@include border-width(1px);
7+
@include padding(1.25rem);
8+
background-color: $background-color;
9+
@content;
10+
}
File renamed without changes.

0 commit comments

Comments
 (0)