-
Notifications
You must be signed in to change notification settings - Fork 0
/
openhistoricalmap-inspector.scss
119 lines (96 loc) · 3.34 KB
/
openhistoricalmap-inspector.scss
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
$slideshow-slide-size: 290px;
div.openhistoricalmap-inspector-panel {
/* padding to match edges */
padding: 0 1em;
/* general font size and paragraph settings */
font-size: 13px;
line-height: 1.25;
.openhistoricalmap-inspector-panel-paragraph {
margin-bottom: 1em;
&.openhistoricalmap-inspector-panel-paragraph-nomargin {
margin-bottom: 0.5em;
}
}
a {
}
.openhistoricalmap-inspector-panel-small {
font-size: 80%;
}
.openhistoricalmap-inspector-panel-strong {
font-weight: bold;
}
/* the images form a slideshow and have a lightbox behavior */
.openhistoricalmap-inspector-panel-slideshow {
position: relative;
width: $slideshow-slide-size;
min-height: $slideshow-slide-size;
overflow: hidden;
margin-bottom: 1em;
a.openhistoricalmap-inspector-panel-slideshow-prevnext {
position: absolute;
top: 145px;
z-index: 1000;
display: inline-block; /* the link itself: white circle, fixed size, positioned */
width: 40px;
height: 40px;
background-color: rgba(255,255,255,0.6) !important;
border-radius: 50%;
span { /* the arrow images: span with background image */
display: inline-block;
width: 100%;
height: 100%;
background-size: 20px auto !important;
background-repeat: no-repeat;
}
&.openhistoricalmap-inspector-panel-slideshow-prev {
left: 5px; /* the white circle A button */
span { /* the empty span with a background-image */
background-image: url(./etc/Octicons-chevron-left.svg);
position: relative;
left: 8px;
top: -2px;
}
}
&.openhistoricalmap-inspector-panel-slideshow-next {
right: 5px; /* the white circle A button */
span { /* the empty span with a background-image */
background-image: url(./etc/Octicons-chevron-right.svg);
position: relative;
left: 12px;
top: -2px;
}
}
&.openhistoricalmap-inspector-panel-slideshow-hidden {
display: none;
}
}
div.openhistoricalmap-inspector-panel-slideshow-slide {
height: 100%;
display: block;
&.openhistoricalmap-inspector-panel-slideshow-hidden {
display: none;
}
img {
width: $slideshow-slide-size;
height: $slideshow-slide-size;
object-fit: cover;
cursor: pointer;
}
span.openhistoricalmap-inspector-panel-slideshow-caption {
display: block;
text-align: left;
font-style: italic;
}
}
}
/* moreinfo is a paragraph, with a list of links and a dead simple left-right grid */
.openhistoricalmap-inspector-panel-moreinfo {
display: flex;
> span { flex: 1; }
ul { flex: 3; }
}
/* at the end */
hr:last-child {
margin-top: 1em;
}
}