Improve the templates.

This commit is contained in:
Niels G. W. Serup 2016-08-25 01:26:17 +02:00
parent 398b84cd75
commit 207b0e5a18
4 changed files with 23 additions and 13 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>media.metanohi.name</title>
<link href="style.css" type="text/css" rel="stylesheet">
<link href="{style_url}" type="text/css" rel="stylesheet">
</head>
<body>
<div id="body-behind"><div></div></div>

View File

@ -1,4 +1,6 @@
<div class="video-section">
<h2><a href="{link}">{title}</a></h2>
<a href="{link}"><img src="{thumbnail}" alt="Thumbnail"></a>
<div>
<a href="{link}"><img src="{thumbnail}" alt="Thumbnail"></a>
</div>
</div>

View File

@ -1,4 +1,7 @@
<div class="video-showing">
<h2>{title}</h2>
<h3>{year}</h3>
<p>{description}</p>
{video}
</div>

View File

@ -5,21 +5,21 @@ body {
}
#body {
width: 40em;
padding: 0.5em;
width: 600px;
padding: 20px;
margin: 0 auto;
}
/* BEGIN HACK */
#body-behind {
margin: 0 auto;
width: calc(41em + (100% - 41em) / 3);
width: calc(640px + (100% - 640px) / 3);
}
#body-behind > div {
position: fixed;
top: 0;
width: calc(41em + (100% - 41em) / 3);
width: calc(640px + (100% - 640px) / 3);
height: 100%;
z-index: -1;
transform: skewX(-2deg);
@ -30,7 +30,7 @@ body {
header {
background-color: #FF00D3;
padding: 0.5em;
padding: 20px;
}
header a, header a:visited {
@ -40,17 +40,22 @@ header a, header a:visited {
.video-section {
background-color: #2EE2FF;
margin-top: 1em;
padding: 0.5em;
margin-top: 20px;
padding: 20px;
}
.video-section > div {
text-align: center;
height: [thumbnail_height]px
}
.video-showing {
background-color: #FF8C00;
margin-top: 1em;
padding: 0.5em;
margin-top: 20px;
padding: 20px;
position: absolute;
left: calc((100% - 58em) / 2);
width: 57em;
left: calc((100% - 800px) / 2);
width: 760px;
}
p.signature {