-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.css
97 lines (82 loc) · 1.46 KB
/
main.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
h2 {
font-size: 1.2em;
margin: 60px 0 5px 0;
}
/*
#gender-plot-panel {
margin: auto;
width: 96%;
border: 1px solid #00c;
}
*/
#content {
margin: 10px;
}
.control {
margin-left: 20px;
margin-right: 20px;
margin-bottom: 30px;
}
div.div-switch-wrapper {
float: right;
}
div.switchable-div {
background-color: #eef;
border: 2px solid #ccf;
}
button.div-switch {
/*
background-color: #eee;
text-decoration: none;
text-color: darkred;
color: #000;
*/
}
button.div-switch.active {
background-color: #ccf;
}
.dummy-filler {
color: #fff;
font-size: 40%;
}
/* https://stackoverflow.com/questions/2637696/how-to-place-div-side-by-side */
.bc-entry {
display: flex;
margin-top: 2px;
margin-bottom: 2px;
padding-right: 20px;
}
.entry-text {
width: 120px;
}
.entry-bar {
background-color: #8c8;
}
/* https://stackoverflow.com/questions/16265123/resize-svg-when-window-is-resized-in-d3-js */
.rsvg-container {
display: inline-block;
position: relative;
width: 99.2%;
padding-bottom: 74.4%; /* aspect ratio */
vertical-align: top;
overflow: hidden;
margin: 0.4%;
}
.rsvg-content {
display: inline-block;
position: absolute;
top: 10px;
left: 0;
}
svg path.town {
stroke-width: 0.5px;
/* fill: #aaa; */
stroke: #000;
}
svg text.town {
stroke: #204;
stroke-width: 0.5px;
/* http://lea.verou.me/2013/03/easily-center-text-vertically-with-svg/ */
text-anchor: middle;
dominant-baseline: middle;
}