Skip to content

Commit 9f9e3d1

Browse files
committed
Add optional footer below video container
1 parent de25d27 commit 9f9e3d1

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"scripts": {
7979
"pretest": "run-scripts clean lint blogger build publish",
8080
"test": "mocha spec",
81-
"posttest": "html-validator src"
81+
"posttest": "html-validator --default-rules src"
8282
},
8383
"dependencies": {
8484
"dna-engine": "~3.3",

src/css/reset/videos.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ figure.video-container-link {
5858
background-color: rgba(0, 0, 0, 0.4);
5959
border-radius: 4px;
6060
padding: 6px 16px;
61-
margin-right: 30px;
6261
z-index: @layerHover;
6362
pointer-events: none;
6463
}
64+
+footer {
65+
font-size: 0.8em;
66+
margin: -15px 0px 20px 0px;
67+
outline: 1px dashed pink;
68+
}
6569
}
6670
figure.video-container-link {
6771
>iframe {

src/js/spec-video.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ <h2>A video link</h2>
4545
<iframe src=https://www.youtube.com/embed/1CrYAFZPdAg allow=fullscreen></iframe>
4646
<figcaption>Video Title (hidden)</figcaption>
4747
</figure>
48+
<footer>A <a href=https://www.youtube.com>video</a> footer</footer>
4849
</section>
4950

5051
</main>

0 commit comments

Comments
 (0)