-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyle.css
163 lines (143 loc) · 2.67 KB
/
style.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
body {
padding: 0px;
margin: 0px;
font-family: "Helvetica", sans-serif;
overflow: hidden;
}
#map {
position: absolute;
left: 0;
width: 70vw;
height: 100vh;
z-index: 1;
}
#narration {
position: absolute;
width: 30vw;
min-width: 300px;
right: 0px;
height: 100vh;
overflow: auto;
z-index: 99;
background: rgba(254,254,254, 1.0); /* to apply opacity background only. */
}
#contents {
padding: 0%;
width: 100%;
margin-top: 0px; /*Adjust if Title header needs more space */
height: 100%; /* Adjust to fit max Description length, one setting for all; alternative is 100% */
overflow-y: scroll;
overflow-x: hidden;
}
#contents .space-at-the-top {
height: 30px;
margin: 0px;
}
#contents .space-at-the-bottom {
height: 1000px; /* use a large number to ensure the last item is scrollable */
margin: 0px;
text-align: center;
padding-top: 70px;
}
#chapter {
position: absolute;
z-index: 999;
margin: 10px;
display: block;
text-align: center;
color: #fff;
}
#title {
position: absolute;
right: 0px;
top: 0px;
background-color: white;
width: 30vw;
min-width: 300px;
z-index: 100;
margin: 0px;
padding: 0px;
}
h3 {
margin-bottom: 0px;
}
.image-container {
/* margin + padding = imageContainerMargin in script.js */
/* Important for scrolling! */
margin: 50px 0 0 0;
padding: 20px 0 0 0;
text-align: center;
}
.image-container img {
height: auto;
width: auto;
max-height: 100%;
max-width: 100%;
margin-left: auto;
margin-right: auto;
/* Three lines that center vertically */
position: relative;
top: 50%;
transform: translateY(-50%);
}
.img-holder {
margin: 0px;
height: 200px;
max-height: 200px;
width: 100%;
}
.title-text {
font-weight: bold;
text-align: center;
margin: 10px;
}
.chapter-header {
display: block;
text-align: center;
font-size: 120%;
}
.source {
font-size: 9pt;
margin: 20px;
}
.description {
margin: 20px;
text-align: left;
font-size: 11pt;
padding: 20px;
}
.inFocus {
opacity: 1.0;
background-color: #f0f0f0;
}
.outFocus {
opacity: 0.3;
background-color: white;
}
@media only screen and (max-device-width: 480px) {
::-webkit-scrollbar {
display: none;
}
#map {
width: 100vw;
}
#title {
width: 80%;
left: 10%;
min-width: 0;
}
#narration {
width: 80%;
min-width: 0;
left: 10%;
background: none;
opacity: 0.8;
}
.description {
padding: 0;
padding-bottom: 10px;
}
.leaflet-control-container {
display: none;
}
}