@projektemacher/storymapjs 0.10.5 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +11 -0
- package/dist/assets/{demo-CVQ7kFek.js → demo-D6cTmzn6.js} +1 -1
- package/dist/assets/{harness-C-VZV-ou.js → harness-BPFlzutp.js} +1 -1
- package/dist/assets/main-Y-MYUSJ4.js +17 -0
- package/dist/css/fonts/font.oldstandard.css +14 -32
- package/dist/demo.html +2 -2
- package/dist/docs/migration.html +1 -1
- package/dist/embed/index.html +129 -4
- package/dist/harness.html +2 -2
- package/dist/index.html +17 -0
- package/dist/js/storymap.d.ts +126 -7
- package/dist/js/storymap.js +4518 -3613
- package/dist/js/storymap.js.map +1 -1
- package/docs/migration-from-knightlab.md +139 -0
- package/docs/storymap-as-iiif-manifest.md +510 -0
- package/package.json +6 -3
- package/src/animation/easings.ts +18 -0
- package/src/animation/morpheus.d.ts +41 -0
- package/src/core/Browser.ts +19 -0
- package/src/core/Load.ts +180 -0
- package/src/core/Util.ts +354 -0
- package/src/core/mixins.ts +171 -0
- package/src/dom/Dom.ts +31 -0
- package/src/dom/DomEvent.ts +61 -0
- package/src/globals.d.ts +16 -0
- package/src/language/Language.ts +107 -0
- package/src/language/locale/be.json +18 -0
- package/src/language/locale/bg.json +18 -0
- package/src/language/locale/cs.json +18 -0
- package/src/language/locale/de.json +20 -0
- package/src/language/locale/el.json +18 -0
- package/src/language/locale/en.json +28 -0
- package/src/language/locale/es.json +18 -0
- package/src/language/locale/et.json +18 -0
- package/src/language/locale/fr.json +18 -0
- package/src/language/locale/he.json +18 -0
- package/src/language/locale/hu.json +18 -0
- package/src/language/locale/is.json +18 -0
- package/src/language/locale/it.json +18 -0
- package/src/language/locale/jp.json +18 -0
- package/src/language/locale/ko.json +18 -0
- package/src/language/locale/nl.json +18 -0
- package/src/language/locale/nn.json +18 -0
- package/src/language/locale/no.json +18 -0
- package/src/language/locale/pl.json +18 -0
- package/src/language/locale/pt.json +18 -0
- package/src/language/locale/ru.json +18 -0
- package/src/language/locale/sk.json +18 -0
- package/src/language/locale/sr.json +17 -0
- package/src/language/locale/sv.json +18 -0
- package/src/language/locale/tr.json +18 -0
- package/src/language/locale/uk.json +18 -0
- package/src/language/locale/ur.json +18 -0
- package/src/language/locale/zh-cn.json +18 -0
- package/src/language/locale/zh-tw.json +18 -0
- package/src/main.ts +51 -0
- package/src/map/Map.ts +717 -0
- package/src/map/MapMarker.ts +149 -0
- package/src/map/openlayers/Map.OpenLayers.ts +1879 -0
- package/src/map/openlayers/MapMarker.OpenLayers.ts +176 -0
- package/src/map/openlayers/zoomifyTiles.ts +28 -0
- package/src/map/types.ts +17 -0
- package/src/media/EmbedUtil.ts +168 -0
- package/src/media/Media.ts +409 -0
- package/src/media/MediaType.ts +163 -0
- package/src/media/types/Audio.ts +87 -0
- package/src/media/types/Blockquote.ts +40 -0
- package/src/media/types/DailyMotion.ts +58 -0
- package/src/media/types/DocumentCloud.ts +41 -0
- package/src/media/types/Facebook.ts +41 -0
- package/src/media/types/Flickr.ts +115 -0
- package/src/media/types/GoogleDoc.ts +59 -0
- package/src/media/types/IFrame.ts +51 -0
- package/src/media/types/Image.ts +49 -0
- package/src/media/types/Juxtapose.ts +32 -0
- package/src/media/types/SoundCloud.ts +77 -0
- package/src/media/types/Text.ts +172 -0
- package/src/media/types/Twitter.ts +96 -0
- package/src/media/types/Video.ts +84 -0
- package/src/media/types/Vimeo.ts +65 -0
- package/src/media/types/Website.ts +36 -0
- package/src/media/types/Wikipedia.ts +124 -0
- package/src/media/types/YouTube.ts +192 -0
- package/src/scss/Typography.scss +237 -0
- package/src/scss/VCO.StoryMap.Dark.scss +138 -0
- package/src/scss/VCO.StoryMap.scss +164 -0
- package/src/scss/Variables.Dark.scss +56 -0
- package/src/scss/Variables.scss +47 -0
- package/src/scss/core/Mixins.scss +112 -0
- package/src/scss/core/Reset.scss +206 -0
- package/src/scss/fonts/_font.base.scss +113 -0
- package/src/scss/fonts/font.abril-droidsans.scss +75 -0
- package/src/scss/fonts/font.amatic-andika.scss +73 -0
- package/src/scss/fonts/font.bitter-raleway.scss +86 -0
- package/src/scss/fonts/font.clicker-garamond.scss +92 -0
- package/src/scss/fonts/font.dancing-ledger.scss +74 -0
- package/src/scss/fonts/font.default.scss +9 -0
- package/src/scss/fonts/font.fjalla-average.scss +80 -0
- package/src/scss/fonts/font.georgia-helvetica.scss +58 -0
- package/src/scss/fonts/font.knightlab.scss +97 -0
- package/src/scss/fonts/font.lustria-lato.scss +80 -0
- package/src/scss/fonts/font.medula-lato.scss +73 -0
- package/src/scss/fonts/font.oldstandard.scss +88 -0
- package/src/scss/fonts/font.opensans-gentiumbook.scss +80 -0
- package/src/scss/fonts/font.playfair-faunaone.scss +86 -0
- package/src/scss/fonts/font.playfair.scss +85 -0
- package/src/scss/fonts/font.pt.scss +90 -0
- package/src/scss/fonts/font.roboto-megrim.scss +73 -0
- package/src/scss/fonts/font.rufina-sintony.scss +73 -0
- package/src/scss/fonts/font.ubuntu.scss +78 -0
- package/src/scss/fonts/font.unicaone-vollkorn.scss +85 -0
- package/src/scss/icons/Icons.scss +239 -0
- package/src/scss/map/VCO.ImageMarker.scss +23 -0
- package/src/scss/map/VCO.Map.scss +21 -0
- package/src/scss/map/VCO.MapMarker.scss +147 -0
- package/src/scss/map/openlayers/VCO.Map.OpenLayers.scss +126 -0
- package/src/scss/media/VCO.Media.scss +222 -0
- package/src/scss/media/types/VCO.Media.Blockquote.scss +76 -0
- package/src/scss/media/types/VCO.Media.IFrame.scss +11 -0
- package/src/scss/media/types/VCO.Media.Image.scss +13 -0
- package/src/scss/media/types/VCO.Media.Instagram.scss +7 -0
- package/src/scss/media/types/VCO.Media.Profile.scss +5 -0
- package/src/scss/media/types/VCO.Media.Text.scss +90 -0
- package/src/scss/media/types/VCO.Media.Twitter.scss +87 -0
- package/src/scss/media/types/VCO.Media.Wikipedia.scss +64 -0
- package/src/scss/site/site.scss +748 -0
- package/src/scss/slider/VCO.Slide.scss +447 -0
- package/src/scss/slider/VCO.SlideNav.scss +338 -0
- package/src/scss/slider/VCO.StorySlider.scss +64 -0
- package/src/scss/snapmap/VCO.SnapMap.scss +103 -0
- package/src/scss/ui/VCO.Consent.scss +77 -0
- package/src/scss/ui/VCO.MenuBar.Button.scss +99 -0
- package/src/scss/ui/VCO.MenuBar.scss +20 -0
- package/src/scss/ui/VCO.Message.scss +104 -0
- package/src/site/site.ts +87 -0
- package/src/slider/Slide.ts +460 -0
- package/src/slider/SlideNav.ts +212 -0
- package/src/slider/StorySlider.ts +722 -0
- package/src/storymap/Consent.ts +146 -0
- package/src/storymap/StoryMap.ts +1108 -0
- package/src/storymap/iiif.ts +386 -0
- package/src/storymap/validate.ts +184 -0
- package/src/types.ts +297 -0
- package/src/ui/Draggable.ts +374 -0
- package/src/ui/MenuBar.ts +323 -0
- package/src/ui/Message.ts +118 -0
- package/src/ui/Swipable.ts +388 -0
- package/dist/assets/main-DwbXrrYn.js +0 -17
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../../Variables" as *;
|
|
3
|
+
|
|
4
|
+
/* Requires Variables
|
|
5
|
+
================================================= */
|
|
6
|
+
.vco-map {
|
|
7
|
+
.ol-viewport {
|
|
8
|
+
/* markers live in overlays */
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// keep the marker overlays above the layer canvases: during pan/zoom
|
|
12
|
+
// animations the canvas containers get promoted to compositor layers,
|
|
13
|
+
// which can transiently paint over the (non-promoted) overlay DOM —
|
|
14
|
+
// the icons flicker
|
|
15
|
+
.ol-overlaycontainer {
|
|
16
|
+
z-index: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.vco-mapmarker,
|
|
20
|
+
.vco-mapmarker-active,
|
|
21
|
+
.vco-mapmarker-custom,
|
|
22
|
+
.vco-mapmarker-image-icon,
|
|
23
|
+
.vco-mapmarker-image-icon-active {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ol-overlaycontainer-stopevent {
|
|
28
|
+
z-index: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Attribution */
|
|
32
|
+
.vco-map-attribution {
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
background-color: rgb(255 255 255 / 75%);
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
padding: 1px 4px;
|
|
39
|
+
z-index: 1000;
|
|
40
|
+
|
|
41
|
+
a {
|
|
42
|
+
color: #666;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vco-knightlab-brand,
|
|
47
|
+
a.vco-knightlab-brand {
|
|
48
|
+
margin-right: 5px;
|
|
49
|
+
text-shadow:
|
|
50
|
+
0 0 1px #fff,
|
|
51
|
+
0 0 1px #fff,
|
|
52
|
+
0 0 5px #fff;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
|
|
56
|
+
// branding of the original authors (Knight Lab / Northwestern
|
|
57
|
+
// University): de-emphasized, and any logo images grayscale
|
|
58
|
+
filter: grayscale(1);
|
|
59
|
+
opacity: 0.5;
|
|
60
|
+
|
|
61
|
+
img {
|
|
62
|
+
filter: grayscale(1);
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
span {
|
|
67
|
+
color: $color-theme;
|
|
68
|
+
display: inline-block;
|
|
69
|
+
transform: rotate(45deg);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
color: color.adjust($color-theme, $lightness: 15%);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Overview map (mini map) */
|
|
80
|
+
.ol-overviewmap {
|
|
81
|
+
left: 8px;
|
|
82
|
+
top: 40px;
|
|
83
|
+
bottom: auto;
|
|
84
|
+
|
|
85
|
+
.ol-overviewmap-map {
|
|
86
|
+
border: none;
|
|
87
|
+
|
|
88
|
+
// the original mini map dimensions
|
|
89
|
+
width: 150px;
|
|
90
|
+
height: 100px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
button {
|
|
94
|
+
background-color: rgb(0 0 0 / 40%);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Landscape
|
|
100
|
+
================================================= */
|
|
101
|
+
.vco-layout-landscape {
|
|
102
|
+
.vco-map {
|
|
103
|
+
.vco-map-attribution {
|
|
104
|
+
bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Mobile, iPhone and skinny
|
|
110
|
+
================================================== */
|
|
111
|
+
.vco-skinny {
|
|
112
|
+
// let vertical page scrolls pass through the map instead of being
|
|
113
|
+
// captured as map pans (issue #288); horizontal drags still pan
|
|
114
|
+
.vco-map .ol-viewport {
|
|
115
|
+
touch-action: pan-y;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.vco-map-attribution {
|
|
119
|
+
font-size: 8px;
|
|
120
|
+
|
|
121
|
+
.vco-knightlab-brand,
|
|
122
|
+
a.vco-knightlab-brand {
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../Variables" as *;
|
|
3
|
+
@use "../core/Mixins" as *;
|
|
4
|
+
|
|
5
|
+
/* Requires Variables.less
|
|
6
|
+
================================================== */
|
|
7
|
+
.vco-media {
|
|
8
|
+
// display:table-cell;
|
|
9
|
+
// vertical-align:middle;
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-width: 50%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
|
|
14
|
+
// float: left;
|
|
15
|
+
margin-top: auto;
|
|
16
|
+
margin-bottom: auto;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
// margin-right:auto;
|
|
20
|
+
.vco-message {
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vco-media-content-container {
|
|
25
|
+
.vco-media-content {
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
@include clearfix;
|
|
29
|
+
|
|
30
|
+
.vco-media-loaderror {
|
|
31
|
+
p {
|
|
32
|
+
color: $ui-background-color;
|
|
33
|
+
|
|
34
|
+
span {
|
|
35
|
+
color: $ui-background-color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
text-align: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[class^="vco-icon-"],
|
|
42
|
+
[class*=" vco-icon-"] {
|
|
43
|
+
font-size: $base-font-size-xlarge;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
img,
|
|
48
|
+
embed,
|
|
49
|
+
object,
|
|
50
|
+
video {
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
max-height: 100%;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Media Shodow
|
|
59
|
+
================================================== */
|
|
60
|
+
.vco-media-shadow {
|
|
61
|
+
z-index: 1;
|
|
62
|
+
|
|
63
|
+
// background:$color-background;
|
|
64
|
+
@include box-shadow(1px 1px 7px rgba(0, 0, 0, 0.5));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
.vco-media-shadow:before, .vco-media-shadow:after {
|
|
69
|
+
z-index: -1;
|
|
70
|
+
position: absolute;
|
|
71
|
+
content: "";
|
|
72
|
+
bottom: 15px;
|
|
73
|
+
left: 10px;
|
|
74
|
+
width: 50%;
|
|
75
|
+
top: 80%;
|
|
76
|
+
max-width:300px;
|
|
77
|
+
background: #333;
|
|
78
|
+
@include box-shadow(0 15px 10px #666);
|
|
79
|
+
@include transform(rotate(-2deg));
|
|
80
|
+
}
|
|
81
|
+
.vco-media-shadow::after {
|
|
82
|
+
@include transform(rotate(2deg));
|
|
83
|
+
right: 10px;
|
|
84
|
+
left: auto;
|
|
85
|
+
}
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/* VCard
|
|
89
|
+
================================================== */
|
|
90
|
+
.vcard {
|
|
91
|
+
// float:right;
|
|
92
|
+
|
|
93
|
+
@include clearfix;
|
|
94
|
+
|
|
95
|
+
margin-bottom: $base-spacing;
|
|
96
|
+
margin-top: 10px;
|
|
97
|
+
|
|
98
|
+
.twitter-date {
|
|
99
|
+
text-align: left;
|
|
100
|
+
font-size: $base-font-size-small;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.author {
|
|
104
|
+
float: right;
|
|
105
|
+
|
|
106
|
+
// text-align:right;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
a {
|
|
110
|
+
color: color.adjust($color-dark, $lightness: 20%);
|
|
111
|
+
text-decoration: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
a:hover {
|
|
115
|
+
.fn,
|
|
116
|
+
.nickname {
|
|
117
|
+
color: $color-theme;
|
|
118
|
+
|
|
119
|
+
// text-decoration: underline;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.fn,
|
|
124
|
+
.nickname {
|
|
125
|
+
padding-left: 42px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.fn {
|
|
129
|
+
display: block;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nickname {
|
|
134
|
+
margin-top: 1px;
|
|
135
|
+
color: color.adjust($color-dark, $lightness: 40%);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.avatar {
|
|
139
|
+
float: left;
|
|
140
|
+
width: 32px;
|
|
141
|
+
height: 32px;
|
|
142
|
+
|
|
143
|
+
img {
|
|
144
|
+
border-radius: 5px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.vco-slide.vco-full-image-background,
|
|
150
|
+
.vco-slide.vco-full-color-background {
|
|
151
|
+
a,
|
|
152
|
+
.vcard a {
|
|
153
|
+
@include slide-text-shadow;
|
|
154
|
+
|
|
155
|
+
color: color.adjust($color-theme, $lightness: 90%);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Credit
|
|
160
|
+
================================================== */
|
|
161
|
+
.vco-credit {
|
|
162
|
+
color: #999;
|
|
163
|
+
text-align: right;
|
|
164
|
+
display: block;
|
|
165
|
+
margin: 0 auto;
|
|
166
|
+
margin-top: 6px;
|
|
167
|
+
font-size: $base-font-size-small - 1;
|
|
168
|
+
line-height: 13px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Caption
|
|
172
|
+
================================================== */
|
|
173
|
+
.vco-caption {
|
|
174
|
+
text-align: left;
|
|
175
|
+
margin-right: auto;
|
|
176
|
+
margin-left: auto;
|
|
177
|
+
color: #666;
|
|
178
|
+
font-size: $base-font-size-small;
|
|
179
|
+
line-height: 14px;
|
|
180
|
+
text-rendering: optimizelegibility;
|
|
181
|
+
overflow-wrap: break-word;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Full Image Background
|
|
185
|
+
================================================== */
|
|
186
|
+
.vco-full-image-background,
|
|
187
|
+
.vco-full-color-background {
|
|
188
|
+
.vco-media-shadow::before,
|
|
189
|
+
.vco-media-shadow::after {
|
|
190
|
+
background: none;
|
|
191
|
+
|
|
192
|
+
@include box-shadow(0 0 0 #000);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Mobile, iPhone and skinny
|
|
197
|
+
================================================== */
|
|
198
|
+
@media only screen and (width <= 500px), only screen and (device-width <= 500px) {
|
|
199
|
+
.vco-media {
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: auto;
|
|
202
|
+
float: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.vco-skinny {
|
|
207
|
+
.vco-media {
|
|
208
|
+
.vco-media-content-container {
|
|
209
|
+
.vco-credit,
|
|
210
|
+
.vco-caption {
|
|
211
|
+
margin-top: 2px;
|
|
212
|
+
padding-left: 10px;
|
|
213
|
+
padding-right: 10px;
|
|
214
|
+
font-size: 8px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.vco-credit {
|
|
218
|
+
margin-top: 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../Variables" as *;
|
|
3
|
+
|
|
4
|
+
.vco-media {
|
|
5
|
+
.vco-media-blockquote {
|
|
6
|
+
text-align: left;
|
|
7
|
+
clear: both;
|
|
8
|
+
|
|
9
|
+
blockquote {
|
|
10
|
+
margin: 0;
|
|
11
|
+
margin-right: $base-spacing;
|
|
12
|
+
text-align: left;
|
|
13
|
+
|
|
14
|
+
p {
|
|
15
|
+
font-size: $base-font-size-xlarge;
|
|
16
|
+
line-height: math.floor($base-font-size-xlarge * 1.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
cite {
|
|
20
|
+
font-size: $base-font-size;
|
|
21
|
+
line-height: math.floor($base-font-size * $base-line-height);
|
|
22
|
+
color: $color-foreground;
|
|
23
|
+
text-align: right;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
blockquote p::before {
|
|
28
|
+
content: open-quote;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
margin-right: 5px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
blockquote p::after {
|
|
34
|
+
content: close-quote;
|
|
35
|
+
margin-left: 3px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.vco-slide-media-only {
|
|
41
|
+
.vco-media {
|
|
42
|
+
.vco-media-blockquote {
|
|
43
|
+
width: 80%;
|
|
44
|
+
margin-left: auto;
|
|
45
|
+
margin-right: auto;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Skinnier
|
|
51
|
+
@media only screen and (width <= 800px), only screen and (device-width <= 800px) {
|
|
52
|
+
.vco-media {
|
|
53
|
+
.vco-media-blockquote {
|
|
54
|
+
blockquote {
|
|
55
|
+
p {
|
|
56
|
+
font-size: $base-font-size-large;
|
|
57
|
+
line-height: math.floor($base-font-size-large * 1.1);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Mobile, iPhone and skinny
|
|
65
|
+
@media only screen and (width <= 500px), only screen and (device-width <= 500px) {
|
|
66
|
+
.vco-media {
|
|
67
|
+
.vco-media-blockquote {
|
|
68
|
+
blockquote {
|
|
69
|
+
p {
|
|
70
|
+
font-size: $base-font-size;
|
|
71
|
+
line-height: math.floor($base-font-size * $base-line-height);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../../Variables" as *;
|
|
3
|
+
|
|
4
|
+
/* Requires Variables.less
|
|
5
|
+
================================================== */
|
|
6
|
+
|
|
7
|
+
.vco-text {
|
|
8
|
+
width: 50%;
|
|
9
|
+
max-width: 50%;
|
|
10
|
+
min-width: 120px;
|
|
11
|
+
padding: 0 20px;
|
|
12
|
+
display: table-cell;
|
|
13
|
+
display: block;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
text-align: left;
|
|
16
|
+
|
|
17
|
+
// float:left;
|
|
18
|
+
text-shadow: none;
|
|
19
|
+
color: var(--vco-color-text, #{$color-text});
|
|
20
|
+
|
|
21
|
+
p {
|
|
22
|
+
color: var(--vco-color-text, #{$color-text});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
h2.vco-headline-title,
|
|
26
|
+
h2.vco-headline {
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
color: var(--vco-color-text, #{$color-header-text});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.vco-headline-date,
|
|
32
|
+
h3.vco-headline-date {
|
|
33
|
+
font-family: $font-main;
|
|
34
|
+
font-size: $base-font-size;
|
|
35
|
+
line-height: $base-font-size;
|
|
36
|
+
font-weight: normal;
|
|
37
|
+
margin: 0 0 2px;
|
|
38
|
+
color: color.adjust($color-text, $lightness: 25%);
|
|
39
|
+
|
|
40
|
+
small {
|
|
41
|
+
font-size: $base-font-size;
|
|
42
|
+
line-height: $base-font-size;
|
|
43
|
+
font-weight: normal;
|
|
44
|
+
color: color.adjust($color-text, $lightness: 25%);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.vco-text-date {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
margin-top: 10px;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
// margin-left:3px;
|
|
55
|
+
// color:#999;
|
|
56
|
+
// font-weight:normal;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// When the background is an image
|
|
62
|
+
.vco-full-image-background,
|
|
63
|
+
.vco-full-color-background {
|
|
64
|
+
.vco-text,
|
|
65
|
+
.vco-text p {
|
|
66
|
+
color: $color-text-inverted !important;
|
|
67
|
+
text-shadow: 1px 1px 2px #000;
|
|
68
|
+
|
|
69
|
+
.vco-headline-date,
|
|
70
|
+
h3.vco-headline-date {
|
|
71
|
+
color: $color-text-inverted !important;
|
|
72
|
+
|
|
73
|
+
small {
|
|
74
|
+
color: $color-text-inverted !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Skinny
|
|
81
|
+
================================================== */
|
|
82
|
+
.vco-skinny {
|
|
83
|
+
.vco-text {
|
|
84
|
+
width: 100%;
|
|
85
|
+
max-width: 100%;
|
|
86
|
+
min-width: auto;
|
|
87
|
+
float: none;
|
|
88
|
+
margin-top: 20px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../Variables" as *;
|
|
3
|
+
|
|
4
|
+
.vco-media {
|
|
5
|
+
.vco-media-twitter {
|
|
6
|
+
text-align: left;
|
|
7
|
+
|
|
8
|
+
// margin-left: auto;
|
|
9
|
+
// margin-right: auto;
|
|
10
|
+
// margin-bottom:@base-space;
|
|
11
|
+
clear: both;
|
|
12
|
+
|
|
13
|
+
blockquote {
|
|
14
|
+
margin: 0;
|
|
15
|
+
margin-right: $base-spacing;
|
|
16
|
+
font-size: $base-font-size;
|
|
17
|
+
line-height: math.floor($base-font-size * $base-line-height);
|
|
18
|
+
color: $color-foreground;
|
|
19
|
+
|
|
20
|
+
p {
|
|
21
|
+
font-size: $base-font-size-xlarge;
|
|
22
|
+
line-height: math.floor($base-font-size-xlarge * 1.1);
|
|
23
|
+
color: $color-dark;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
blockquote p::before {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.vco-icon-twitter {
|
|
32
|
+
color: #55acee;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vcard {
|
|
36
|
+
a:hover,
|
|
37
|
+
a.vco-date:hover {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: #55acee;
|
|
40
|
+
|
|
41
|
+
.fn,
|
|
42
|
+
.nickname {
|
|
43
|
+
color: #55acee;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.vco-slide-media-only {
|
|
51
|
+
.vco-media {
|
|
52
|
+
.vco-media-twitter {
|
|
53
|
+
width: 80%;
|
|
54
|
+
margin-left: auto;
|
|
55
|
+
margin-right: auto;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.vco-mobile.vco-skinny {
|
|
61
|
+
.vco-media {
|
|
62
|
+
.vco-media-twitter {
|
|
63
|
+
blockquote {
|
|
64
|
+
p {
|
|
65
|
+
font-size: $base-font-size;
|
|
66
|
+
line-height: math.floor($base-font-size * $base-line-height);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.vco-skinny {
|
|
74
|
+
.vco-media {
|
|
75
|
+
.vco-media-twitter {
|
|
76
|
+
margin-left: 10px;
|
|
77
|
+
margin-right: 10px;
|
|
78
|
+
|
|
79
|
+
blockquote {
|
|
80
|
+
p {
|
|
81
|
+
font-size: $base-font-size-large;
|
|
82
|
+
line-height: math.floor($base-font-size-large * 1.1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@use "../../Variables" as *;
|
|
2
|
+
@use "../../core/Mixins" as *;
|
|
3
|
+
|
|
4
|
+
.vco-media {
|
|
5
|
+
.vco-media-wikipedia {
|
|
6
|
+
// font-size: @base-font;
|
|
7
|
+
// line-height: @base-line;
|
|
8
|
+
text-align: left;
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
margin-right: auto;
|
|
11
|
+
|
|
12
|
+
// margin-bottom:@base-space;
|
|
13
|
+
clear: both;
|
|
14
|
+
|
|
15
|
+
.wiki-source {
|
|
16
|
+
// margin-bottom:@base-space;
|
|
17
|
+
font-size: 13px;
|
|
18
|
+
line-height: 19px;
|
|
19
|
+
font-style: italic;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h4 {
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
|
|
25
|
+
// border-bottom: 1px solid @color-line;
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h4 a {
|
|
30
|
+
color: $color-dark; // $color-theme;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h4 a:hover {
|
|
35
|
+
text-decoration: underline;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.vco-slide.vco-full-image-background,
|
|
41
|
+
.vco-slide.vco-full-color-background {
|
|
42
|
+
.vco-media {
|
|
43
|
+
.vco-media-wikipedia {
|
|
44
|
+
padding: 20px;
|
|
45
|
+
|
|
46
|
+
@include background-color-opacity(0, 0, 0, 60);
|
|
47
|
+
@include border-radius(7px);
|
|
48
|
+
|
|
49
|
+
h4 a {
|
|
50
|
+
@include slide-text-shadow;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Mobile, iPhone and skinny
|
|
57
|
+
.vco-mobile.vco-skinny {
|
|
58
|
+
.vco-media {
|
|
59
|
+
.vco-media-wikipedia {
|
|
60
|
+
margin-left: 10px;
|
|
61
|
+
margin-right: 10px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|