forked from DigitalHistory/advanced-topics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap-styles.css
169 lines (128 loc) · 3.24 KB
/
map-styles.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* Styles *exclusively* for the spatial history assignment */
.main-container {
grid-template-areas: "intro map legend" "main main main";
grid-auto-columns: 1fr;
grid-template-rows: 85vh 1fr;
}
section#intro {
grid-area: intro;
background-color: var(--color-highlight1);
border: 1px solid var(--color-custom-borders);
}
section#map_canvas {
grid-area: map;
background-color: var(--color-highlight1);
border: 1px solid var(--color-custom-borders);
height: 85vh
}
section#legend {
grid-area: legend;
background-color: var(--color-highlight1);
border: 1px solid var(--color-custom-borders);
}
section#maintext {
grid-area: main;
background-color: var(--color-highlight1);
border: 1px solid var(--color-custom-borders);
}
/* we use an extra div here to allow the "legend" text to sit by itself */
/* arrange the legend elements using flexbox (just for fun) */
div#map_legend {
width: 100%;
display: grid;
flex-direction: row;
justify-content: space-around;
gap: 5px;
flex-wrap: wrap;
grid-template-columns: repeat(auto-fit, 45%);
}
/* reduce insane line heights */
.legend-content-group-wrapper h2 {
line-height: 1em;
}
div#map_legend div.pointer {
border: 1px black solid;
border-radius: 10px;
margin: 2px 5px 2px 5px;
/* flex-basis: 500px; */
cursor:pointer;
padding: 2px 2px 2px 5px;
}
div.pointer h1 {
font-size: 1.5em;
}
div.pointer img {
max-width: 250px;
border: 1px solid black;
padding: 5px;
margin: 5px;
}
/* Leaflet Popups crate 2 divs each: div.leaflet-popup-content-wrapper and
div.leaflet-popup-content. You can ddress them as you like.*/
div.leaflet-popup-content {
}
div.leaflet-popup-content img {
}
@media only screen and (max-width:1200px) {
.main-container {
grid-template-areas: "intro intro" "map legend" "main main";
}
}
@media only screen and (max-width:600px) {
.main-container {
grid-template-areas: "intro" "map" "legend" "main";
}
}
/* @media all and (max-width: 75em) { */
/* .newcontainer { */
/* grid-template-areas: "intro intro" "map legend" "main main"; */
/* } */
/* #markdown-toc { */
/* position: static; */
/* padding: 0; */
/* background: none; */
/* } */
/* } */
/* if you want, you can make the text in the legend less ugly by adding
extra css instructions here, or adding classes when you create the
legneds in javascript. Advisable! */
div#map_legend h1 {
}
div#map_legend h3 {
}
/*just for fun, we can style the buttons using classes
button.rounded means "all buttons with the class of
rounded". button#hide meands "the button with the
id of hide"
*/
button.rounded {
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-radius:5px;
border: 1px black solid;
}
button#hide {
background:orange;
}
button#reset {
background:green;
}
/* use these last few to style the text inside the
infowindows. They are pretty ugly at the moment,
consider making them prettier.
*/
div#map_canvas h1 {
}
div.address {
}
div.description {
}
div.gm-style-iw {
max-height: 75px;
}
div.gm-style-iw img {
max-width: 75% !important;
}
div.gm-style-iw blockquote {
font-family:cursive;
}