Compare commits

...

3 commits

2 changed files with 48 additions and 38 deletions

View file

@ -4,42 +4,8 @@
<head>
<meta charset="utf-8" />
<title>The Trees of Kortirion</title>
<style>
body {
counter-reset: section;
margin: 5rem 0;
}
h1,
h2 {
text-align: center;
font-size: 1em;
font-weight: normal;
font-style: italic;
margin: 1rem 0;
}
h2::before {
counter-increment: section;
content: counter(section, upper-roman);
display: block;
font-style: normal;
margin: 1rem 0;
}
.section {
width: 36rem;
margin: 2rem auto;
}
.verse {
margin-left: 6rem;
}
.line-indented {
margin-left: 1em;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
@ -118,10 +84,11 @@
<span class="line">A whisper in the trees - afar they hear,</span><br />
<span class="line line-indented">Piercing the heart of summer&rsquo;s tangled dream,</span><br />
<span class="line">Chill music that a herald piper plays</span><br />
<span class="line">FOreseeing winter and the leafless days.</span><br />
<span class="line">Foreseeing winter and the leafless days.</span><br />
<span class="line line-indented">The late flowers trembling on the ruined walls</span><br />
<span class="line">Already stoop to hear that elven-flute.</span><br />
<span class="line line-indented">Through the wood&rsquo;s sunny aisles and tree-propped halls</span><br />
<span class="line line-indented">Through the wood&rsquo;s sunny aisles and tree-propped
halls</span><br />
<span class="line">Winding amid the green with clear cold note</span><br />
<span class="line">Like a thin strand of silver glass remote.</span>
</p>

43
style.css Normal file
View file

@ -0,0 +1,43 @@
body {
counter-reset: section;
margin: 5rem 1rem;
}
h1,
h2 {
text-align: center;
font-size: 1em;
font-weight: normal;
font-style: italic;
margin: 1rem 0;
}
h2::before {
counter-increment: section;
content: counter(section, upper-roman);
display: block;
font-style: normal;
margin: 1rem 0;
}
.section {
max-width: 36rem;
margin: 2rem auto;
}
.verse {
max-width: 30rem;
margin-left: auto;
}
.line-indented {
padding-left: 1em;
}
@media screen and (max-width: 32rem) {
.line {
display: inline-block;
margin-left: 2em;
text-indent: -2em;
}
}