Browse Source

Improve the templates.

master
Niels G. W. Serup 5 years ago
parent
commit
207b0e5a18
  1. 2
      template/base.html
  2. 4
      template/section.html
  3. 3
      template/showing.html
  4. 27
      template/style.css

2
template/base.html

@ -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>

4
template/section.html

@ -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>

3
template/showing.html

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

27
template/style.css

@ -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 {

Loading…
Cancel
Save