| 1 |
{{ define "__h_simple_css" }}{{/* These template definitions are global. */}} |
| 2 |
{{- if not (.Page.Scratch.Get "__h_simple_css") -}} |
| 3 |
{{/* Only include once */}} |
| 4 |
{{- .Page.Scratch.Set "__h_simple_css" true -}} |
| 5 |
<style> |
| 6 |
.__h_video { |
| 7 |
position: relative; |
| 8 |
padding-bottom: 56.23%; |
| 9 |
height: 0; |
| 10 |
overflow: hidden; |
| 11 |
width: 100%; |
| 12 |
background: #000; |
| 13 |
} |
| 14 |
.__h_video img { |
| 15 |
width: 100%; |
| 16 |
height: auto; |
| 17 |
color: #000; |
| 18 |
} |
| 19 |
.__h_video .play { |
| 20 |
height: 72px; |
| 21 |
width: 72px; |
| 22 |
left: 50%; |
| 23 |
top: 50%; |
| 24 |
margin-left: -36px; |
| 25 |
margin-top: -36px; |
| 26 |
position: absolute; |
| 27 |
cursor: pointer; |
| 28 |
} |
| 29 |
</style> |
| 30 |
{{- end -}} |
| 31 |
{{- end -}} |
| 32 |
{{- define "__h_simple_icon_play" -}} |
| 33 |
<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 61 61"><circle cx="30.5" cy="30.5" r="30.5" opacity=".8" fill="#000"></circle><path d="M25.3 19.2c-2.1-1.2-3.8-.2-3.8 2.2v18.1c0 2.4 1.7 3.4 3.8 2.2l16.6-9.1c2.1-1.2 2.1-3.2 0-4.4l-16.6-9z" fill="#fff"></path></svg> |
| 34 |
{{- end -}} |