Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
add new chart colors; tweak chart styles per #1348
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Allen committed Jun 7, 2016
1 parent 0cb2f67 commit 195d80a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ $light-black: #303030;

// State pages
$green-land: #d5e5cb;
$chart-green: #a5d78a;

// v2 - deprecate
$putty: #f4f4f4;
Expand Down
24 changes: 24 additions & 0 deletions _sass/blocks/_chart-list.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
.chart-list {
@include font-size(0.8);
@include outer-container();

.chart-title {
border-bottom: 1px solid #ddd;
font-size: inherit;
font-weight: $weight-book;
margin-bottom: 0;
text-transform: uppercase;
}

.chart-list-intro {
@include span-columns(8);
}
Expand All @@ -16,4 +25,19 @@
@include omega();
}
}

figcaption {
padding: 5px; // XXX
font-weight: $weight-bold;
display: flex;

& > * {
flex: 1;
width: 50%;
}

& > :last-child {
text-align: right;
}
}
}
8 changes: 5 additions & 3 deletions _sass/components/_eiti-line-chart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ eiti-line-chart {

.line {
fill: none;
stroke: $green;
opacity: 0.666;
stroke: $chart-green;
stroke-linecap: round;
stroke-width: 2;
stroke-width: 3;
vector-effect: non-scaling-stroke;
}

Expand All @@ -21,7 +22,7 @@ eiti-line-chart {
}

circle {
fill: $green;
fill: $chart-green;
}

.axis {
Expand All @@ -42,6 +43,7 @@ eiti-line-chart {

text {
@include font-size(1);
font-weight: $weight-book;
}
}
}

0 comments on commit 195d80a

Please sign in to comment.