-
Notifications
You must be signed in to change notification settings - Fork 2
/
mgl-story.css
127 lines (112 loc) · 2.54 KB
/
mgl-story.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
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.mgl-story {
font-size: 20px;
font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next",
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
width: 30%;
max-width: 520px;
min-width: 400px;
/* margin-left: calc(67% - 60px); */
overflow: auto;
overflow-x: hidden;
background-color: transparent;
position: absolute;
bottom: 0;
right: 0;
top: 0;
border-radius: 2px;
/* box-shadow: 0 3px 4px 0 rgba(0,0,0,.14), 0 3px 3px -2px rgba(0,0,0,.2), 0 1px 8px 0 rgba(0,0,0,.12); */
z-index: 10;
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
scroll-padding-top: 10px;
scroll-padding-bottom: 100px;
}
.mgl-story::-webkit-scrollbar {
display: none; /* Chrome */
}
/*THEMES*/
/* #map.left {
left: 30%
} */
.mgl-story.left {
right: unset;
/* left: 20px; */
}
/********/
.mgl-story > section {
margin: 20px 20px 100vh 20px;
scroll-snap-align: start;
opacity: 0.1;
}
.mgl-story > section > .mgl-story-wrapper {
padding-top: 1px;
transition: opacity 0.3s ease-in;
background: rgba(255,255,255, 0.8);
padding: 1px 20px 30px;
border-radius: 3px;
}
.mgl-story > section.active {
opacity: 1;
}
.mgl-story:last-child {
margin: 20px;
}
.mgl-story > section .mgl-story-wrapper .story-body {
text-align: justify;
}
.mgl-story > section .mgl-story-wrapper a.btn {
background: #00000000;
border: solid 2px black;
border-radius: 16px;
color: black;
margin: 10px 0;
font-size: smaller;
padding: 6px 12px;
text-decoration: none;
}
.mgl-story > section .mgl-story-wrapper a.btn:hover,
.mgl-story > section .mgl-story-wrapper a.btn:focus {
color: white;
background-color: black;
}
.mgl-story > section .mgl-story-wrapper button {
margin-top: 20px;
border: solid thin lightgray;
background: transparent;
border-radius: 2px;
min-width: 60px;
min-height: 40px;
}
.mgl-story > section > .mgl-story-wrapper button:hover,
.mgl-story > section > .mgl-story-wrapper button:focus {
background: #121212;
color: white;
cursor: pointer;
}
@media screen and (max-width: 960px) {
#map {
height: 60vh;
bottom: unset;
width: 100%;
}
.mgl-story {
top: 60vh;
width: 100%;
max-width: 100%;
min-width: unset;
scroll-padding-top: 0px;
}
.mgl-story > section {
margin: 0px 20px 100vh 20px;
background: rgba(255,255,255)
}
}