Improve media embed templates

This commit is contained in:
RichardG867
2024-11-08 22:20:27 -03:00
parent 1ffac0db35
commit 145b402e5f
8 changed files with 64 additions and 36 deletions

View File

@@ -52,9 +52,6 @@ img.image {
width: auto;
height: auto;
}
div.imagecaption {
display: inline;
}
hr {
border-color: #808080;
width: 100%;

View File

@@ -85,7 +85,7 @@ img.heading, img.image {
margin-top: 10pt;
margin-bottom: 5pt;
}
div.imagecaption {
.image-caption {
text-align: center;
margin-bottom: 10pt;
}

View File

@@ -153,14 +153,12 @@ div#socialold {
p, ul, ol {
margin: 0.65em 0;
}
.image {
text-align: center;
}
div.image, figure.image {
div.image, figure {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0px;
margin-right: 0px;
text-align: center;
}
img.heading {
max-width: 100%;
@@ -172,10 +170,7 @@ img.image {
width: auto;
height: auto;
}
div.imagecaption {
display: inline;
}
div.imagecaption > p {
.image-caption > p {
margin-top: 0.5em;
margin-bottom: 0px;
}
@@ -237,14 +232,26 @@ code {
padding-left: 3pt;
padding-right: 3pt;
}
figure.youtube {
}
div.youtube {
position: relative;
overflow: hidden;
max-width: 640px;
margin: 0 auto;
aspect-ratio: 16/9;
}
iframe {
display: block;
border: none;
}
iframe.youtube {
text-align: center;
margin: auto;
width: 640px;
height: 360px;
padding-bottom: 8pt;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}