2020-08-12 02:19:08 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Libreddit: r/{{sub}}</title>
|
|
|
|
<style>
|
|
|
|
* {
|
2020-08-13 21:45:45 +02:00
|
|
|
transition: 0.2s all;
|
2020-08-12 02:19:08 +02:00
|
|
|
margin: 0px;
|
2020-08-13 21:14:03 +02:00
|
|
|
color: white;
|
2020-08-13 21:45:45 +02:00
|
|
|
font-family: sans-serif;
|
2020-08-12 02:19:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
background: black;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:14:03 +02:00
|
|
|
header {
|
|
|
|
color: aqua;
|
|
|
|
background: #111;
|
|
|
|
padding: 10px;
|
|
|
|
border-bottom: 2px solid #222;
|
|
|
|
}
|
|
|
|
|
2020-08-12 02:19:08 +02:00
|
|
|
main {
|
|
|
|
max-width: 1000px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:not(.post_right):hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:14:03 +02:00
|
|
|
#about {
|
2020-08-12 02:19:08 +02:00
|
|
|
background: #111;
|
|
|
|
}
|
|
|
|
|
|
|
|
.subreddit {
|
|
|
|
max-width: 1000px;
|
|
|
|
margin: 0 auto;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.subreddit_right {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.subreddit_icon {
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
border-radius: 100%;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sort {
|
|
|
|
max-width: 1000px;
|
|
|
|
margin: 20px auto 20px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: start;
|
|
|
|
padding: 0px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sort > div {
|
|
|
|
background: #111;
|
|
|
|
color: lightgrey;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
width: 50px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sort > div:hover {
|
|
|
|
background: #222;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sort > #sort_{{sort}} {
|
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post {
|
2020-08-13 21:14:03 +02:00
|
|
|
border: 2px solid #222;
|
2020-08-12 02:19:08 +02:00
|
|
|
border-radius: 5px;
|
|
|
|
background: #111;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post:hover {
|
|
|
|
background: #222;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post:hover > .post_left {
|
|
|
|
background: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post_left, .post_right {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post_left {
|
|
|
|
text-align: center;
|
|
|
|
background: #222;
|
|
|
|
border-radius: 5px 0px 0px 5px;
|
|
|
|
min-width: 75px;
|
|
|
|
padding: 10px 0px;
|
|
|
|
}
|
|
|
|
|
2020-10-03 20:29:34 +02:00
|
|
|
.post_upvote {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-08-12 02:19:08 +02:00
|
|
|
.post_score {
|
2020-10-03 20:29:34 +02:00
|
|
|
margin: auto;
|
2020-08-12 02:19:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.post_right {
|
|
|
|
padding: 10px 25px;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post_right > * {
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:14:03 +02:00
|
|
|
.post_right > p {
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
|
2020-08-12 02:19:08 +02:00
|
|
|
.post_thumbnail {
|
|
|
|
object-fit: cover;
|
|
|
|
width: auto;
|
|
|
|
flex-shrink: 0;
|
|
|
|
border-radius: 0px 5px 5px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post_thumbnail[src=""] {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-08-13 21:14:03 +02:00
|
|
|
<header><a href="/">LIBREDDIT</a></header>
|
|
|
|
<div id="about">{{{about}}}</div>
|
2020-08-12 02:19:08 +02:00
|
|
|
<div id="sort">
|
|
|
|
<div id="sort_hot"><a href="/r/{{sub}}/hot">Hot</a></div>
|
|
|
|
<div id="sort_top"><a href="/r/{{sub}}/top">Top</a></div>
|
|
|
|
<div id="sort_new"><a href="/r/{{sub}}/new">New</a></div>
|
|
|
|
</div>
|
|
|
|
<main>
|
|
|
|
{{{posts}}}
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|