ora3 halfway done
This commit is contained in:
76
ora3/album/album.css
Normal file
76
ora3/album/album.css
Normal file
@@ -0,0 +1,76 @@
|
||||
album {
|
||||
border: thin solid black;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0.25em 0.25em 0.5em gray;
|
||||
display: block;
|
||||
font-family: 'Segoe UI', Inter, Verdana, sans-serif;
|
||||
margin: 1em auto;
|
||||
padding: 1em;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
artist,
|
||||
album>title,
|
||||
year {
|
||||
font-size: x-large;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
|
||||
artist::after {
|
||||
content: " \2013 ";
|
||||
}
|
||||
|
||||
year::before {
|
||||
content: "(";
|
||||
}
|
||||
|
||||
year::after {
|
||||
content: ")";
|
||||
}
|
||||
|
||||
tracks {
|
||||
counter-reset: track-number;
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
track {
|
||||
display: table-row;
|
||||
transition: background-color 0.4s, font-weight 0.4s;
|
||||
}
|
||||
|
||||
track>title,
|
||||
length {
|
||||
display: table-cell;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
track>title::before {
|
||||
content: counter(track-number) ".";
|
||||
counter-increment: track-number;
|
||||
display: inline-block;
|
||||
margin-right: 0.5em;
|
||||
text-align: right;
|
||||
width: 2em;
|
||||
}
|
||||
|
||||
length {
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
track:nth-child(odd) {
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
track:nth-child(even) {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
track:hover {
|
||||
background-color: gold;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
8
ora3/album/album.dtd
Normal file
8
ora3/album/album.dtd
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!ELEMENT album (artist, title, year, tracks)>
|
||||
<!ELEMENT artist (#PCDATA)>
|
||||
<!ELEMENT title (#PCDATA)>
|
||||
<!ELEMENT year (#PCDATA)>
|
||||
<!ELEMENT tracks (track+)>
|
||||
<!ELEMENT track (title, length)>
|
||||
<!ELEMENT length (#PCDATA)>
|
||||
13
ora3/album/album.txt
Normal file
13
ora3/album/album.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Steven Wilson: Hand. Cannot. Erase. (2015)
|
||||
|
||||
1. First Regret 2:01
|
||||
2. 3 Years Older 10:18
|
||||
3. Hand Cannot Erase 4:13
|
||||
4. Perfect Life 4:43
|
||||
5. Routine 8:58
|
||||
6. Home Invasion 6:24
|
||||
7. Regret #9 5:01
|
||||
8. Transience 2:45
|
||||
9. Ancestral 13:30
|
||||
10. Happy Returns 6:00
|
||||
11. Ascendant Here On… 1:54
|
||||
54
ora3/album/album.xml
Normal file
54
ora3/album/album.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE album SYSTEM "album.dtd">
|
||||
<?xml-stylesheet href="album.css" type="text/css"?>
|
||||
<album>
|
||||
<artist>Steven Wilson</artist>
|
||||
<title>Hand. Cannot. Erase.</title>
|
||||
<year>2015</year>
|
||||
<tracks>
|
||||
<track>
|
||||
<title>First Regret</title>
|
||||
<length>2:01</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>3 Years Older</title>
|
||||
<length>10:18</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Hand Cannot Erase</title>
|
||||
<length>4:13</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Perfect Life</title>
|
||||
<length>4:43</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Routine</title>
|
||||
<length>8:58</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Home Invasion</title>
|
||||
<length>6:24</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Regret #9</title>
|
||||
<length>5:01</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Transience</title>
|
||||
<length>2:45</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Ancestral</title>
|
||||
<length>13:30</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Happy Returns</title>
|
||||
<length>6:00</length>
|
||||
</track>
|
||||
<track>
|
||||
<title>Ascendant Here On…</title>
|
||||
<length>1:54</length>
|
||||
</track>
|
||||
</tracks>
|
||||
</album>
|
||||
Reference in New Issue
Block a user