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

Commit

Permalink
fix: increase fontsize under tubes + add missing function argument
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Apr 13, 2019
1 parent e95cf40 commit 73d43cc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 20 deletions.
6 changes: 2 additions & 4 deletions docs/css/main.css

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions docs/lib/main.pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -19414,10 +19414,10 @@
};

const dim = {
he: 80,
he: 100,
vHe: 1000,
vWi: 1100,
wi: 80,
wi: 100,
};

function makeTubesCocktail(parent, substances, titleHtml, tubeClass) {
Expand Down Expand Up @@ -19477,6 +19477,9 @@
.attr('y', 0)
.attr('transform', 'translate(' + params.wid + ', ' + dyName + ') scale(5)')
.style('text-anchor', 'start')
.style('white-space', 'nowrap')
.style('overflow', 'hidden')
.style('text-overflow', 'ellipsis')
.text(subs => subs.shortName);

const text = svg
Expand Down Expand Up @@ -19705,7 +19708,7 @@
}

dispatcher.on('to-brazil-view.details', () => {
makeBrazil$1(parent, dispatcher, {data: initState.data});
makeBrazil$1(parent, dispatcher, view, {data: initState.data});
});

dispatcher.on('to-mun-view.details', mun => {
Expand Down Expand Up @@ -20034,7 +20037,7 @@
.append('p');
par.append('span').text('Descubra também quantas substâncias foram ');
const suffix =
'mun' in state && state.mun
state && 'mun' in state && state.mun
? ' em ' + state.mun.properties.name
: '';
par
Expand All @@ -20054,7 +20057,7 @@
.append('p');
par.append('span').text('Descubra também o ');
const suffix =
'mun' in state && state.mun
state && 'mun' in state && state.mun
? ' na água em ' + state.mun.properties.name
: '';
par
Expand Down Expand Up @@ -24146,8 +24149,6 @@
var saturday = weekday(6);

var sundays = sunday.range;
var mondays = monday.range;
var thursdays = thursday.range;

var month = newInterval(function(date) {
date.setDate(1);
Expand Down Expand Up @@ -24237,8 +24238,6 @@
var utcSaturday = utcWeekday(6);

var utcSundays = utcSunday.range;
var utcMondays = utcMonday.range;
var utcThursdays = utcThursday.range;

var utcMonth = newInterval(function(date) {
date.setUTCDate(1);
Expand Down
2 changes: 1 addition & 1 deletion src/_javascript/details/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function makeDetails(parent, dispatcher, view, initState) {
}

dispatcher.on('to-brazil-view.details', () => {
makeBrazil(parent, dispatcher, {data: initState.data});
makeBrazil(parent, dispatcher, view, {data: initState.data});
});

dispatcher.on('to-mun-view.details', mun => {
Expand Down
4 changes: 2 additions & 2 deletions src/_javascript/details/tubes/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as d3Path from 'd3-path';
const dim = {
he: 80,
he: 100,
vHe: 1000,
vWi: 1100,
wi: 80,
wi: 100,
};

export function makeTubesCocktail(parent, substances, titleHtml, tubeClass) {
Expand Down
5 changes: 1 addition & 4 deletions src/_sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ html {
}
svg.tube {
margin: 10px 5px;
font-size: 1.5rem;
font-size: 1.6rem;
&.hhce {
@include tube-colors(#f03b20);
}
Expand All @@ -204,9 +204,6 @@ html {
&.cat-3 {
@include tube-colors($map2-cat3);
}
.annotation {
font-size: 1.8rem;
}
}
}
}
Expand Down

0 comments on commit 73d43cc

Please sign in to comment.