Skip to content

Commit e604d87

Browse files
committed
style: centre politics
1 parent 3a1a098 commit e604d87

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

website/js/geopolitics-conflicts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
const root = d3.select(selectors.mapRoot);
515515
root.selectAll("*").remove();
516516

517-
const width = 980;
517+
const width = 900;
518518
const height = 520;
519519

520520
const svg = root
@@ -686,7 +686,7 @@
686686
const root = d3.select(selectors.eventList);
687687
root.selectAll("*").remove();
688688

689-
root.append("h3").text("Some interesting years:");
689+
root.append("h3").text("Some interesting years:").style("width", "100%");
690690

691691
root.append("p")
692692
.attr("class", "geo-highlight-event")

website/js/never-medaled.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
style.textContent = `
313313
#never-medaled-viz {
314314
width: 100%;
315-
max-width: 1280px;
315+
max-width: 1440px;
316316
margin: 0 auto;
317317
color: white;
318318
}
@@ -348,8 +348,9 @@
348348
.never-layout {
349349
display: grid;
350350
grid-template-columns: 1.2fr 0.8fr;
351+
gap: 34px;
351352
align-items: start;
352-
margin-top: 50px;
353+
margin-top: 12px;
353354
}
354355
355356
.never-map-panel,
@@ -763,7 +764,7 @@
763764
}
764765

765766
function drawMap(container, data) {
766-
const width = 800;
767+
const width = 900;
767768
const height = 520;
768769

769770
const svg = container.append("svg")

website/styles.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ h4 {
512512
}
513513

514514
.geo-intro {
515-
width: 100%;
516515
max-width: none;
517516
margin: 0 auto 18px;
518517
text-align: center;
@@ -524,14 +523,18 @@ h4 {
524523

525524
.geo-layout {
526525
display: grid;
527-
grid-template-columns: 1.35fr 0.9fr;
526+
grid-template-columns: 1.2fr 0.8fr;
528527
gap: 34px;
529528
align-items: start;
530529
margin-top: 12px;
530+
margin-left: auto;
531+
margin-right: auto;
532+
max-width: 1440px;
531533
}
532534

533535
.geo-map-column {
534536
width: 100%;
537+
position: relative;
535538
}
536539

537540
#geopolitics-map-viz {
@@ -749,10 +752,6 @@ h4 {
749752
}
750753
}
751754

752-
.geo-map-column {
753-
position: relative;
754-
}
755-
756755
.geo-map-column .geo-hover-text {
757756
margin-bottom: 0px;
758757
transform: translateY(-10px);

0 commit comments

Comments
 (0)