Commit 0f431684 authored by numeroteca's avatar numeroteca

fix responsiveness and add white to full row

parent af554f49
//Prepare canvas size
isSmall = innerWidth < 400;
isMobile = innerWidth < 758;
//isSmall = innerWidth < 300;
//isMobile = innerWidth < 758;
var screenwidth = d3.select("#vis").node().clientWidth;
isSmall = screenwidth < 450;
// set the dimensions and margins of the graph
// Margin convention: https://bl.ocks.org/mbostock/3019563
......@@ -13,7 +14,7 @@ var margin = {top: 0, right: 0, bottom: 0, left: 0},
// Projection for Euskadi
var projection = d3.geo.mercator()
.scale((isSmall ? 10000 : 14500))
.scale((isSmall ? 9000 : 14500))
.center([-2.6,42.96])
.translate([width / 2, height / 2]);
......
......@@ -98,11 +98,11 @@
<div class="row content-area ajax-archive" id="primary">
<main class="site-main col" id="main">
<div class="sectioncontent row mt-3 ">
<div class="offset-md-2 col-md-4 bg-white">
<div class="sectioncontent row mt-3 bg-white">
<div class="offset-md-2 col-md-5">
<div class="" id="vis"></div>
</div>
<div class="col-md-3 bg-white">
<div class="col-md-2">
<div id="side">
<div class="row tohover" id=""></div>
<br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment