Basic style

This commit is contained in:
Sam Ireland 2021-01-03 01:22:07 +00:00
parent e3c060053e
commit e2d1117cc5
6 changed files with 132 additions and 7 deletions

View File

@ -1,7 +1,9 @@
<div class="comment" id="<!--id-->">
<div class="user"><!--user--></div>
<div class="score"><!--score--></div>
<div class="info">
<a href="<!--link-->"><time title="<!--timestamp-->"><!--date--></time></a>
<div class="score">(+<!--score-->)</div>
<div class="user"><!--user--></div>
</div>
<div class="body"><!--body--></div>
<div class="child-comments">
<!--children-->

View File

@ -1,11 +1,15 @@
<div class="post" id="<!--id-->">
<h2><!--title--></h2>
<time title="<!--timestamp-->"><!--date--></time>
<div class="info">
<div class="links">
<a href="<!--link-->">Link</a>
<a href="<!--reddit-link-->">reddit Link</a>
<a href="<!--content-link-->">Content Link</a>
<div class="subreddit"><!--subreddit--></div>
<div class="user"><!--user--></div>
</div>
<time title="<!--timestamp-->"><!--date--></time>
<span class="subreddit"><!--subreddit--></span>
<span class="user"><!--user--></span>
</div>
<div class="body">
<!--body-->
</div>

View File

@ -1,6 +1,7 @@
<html>
<head>
<title><!--title--></title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet">
<style></style>
</head>

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Saved Posts</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet">
<style></style>
</head>

View File

@ -1,8 +1,124 @@
a {
display: block;
* {
margin: 0;
padding: 0;
border: 0;
outline: none;
font-size: 100%;
font: inherit;
vertical-align: baseline;
list-style: none;
background-color: inherit;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
}
body {
font-family: 'Open Sans', Verdana;
}
img, video {
max-width: 200px;
max-height: 300px;
}
a {
color: #0079d3;
text-decoration: none;
}
p {
font-size: 14px;
margin-bottom: 8px;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
code {
font-family: monospace;
white-space: pre;
}
a:hover {
text-decoration: underline;
}
h1 {
font-weight: bold;
font-size: 24px;
padding: 8px 16px;
}
.post, .comment {
border-top: 1px solid #f0f0f0;
padding: 12px 16px;
}
.post h2 {
font-weight: bold;
font-size: 18px;
}
.post h1 {
padding: 0;
margin-bottom: 8px;
}
.post .info {
font-size: 12px;
font-weight: 300;
margin-bottom: 16px;
}
.post .info time {
font-weight: 500;
}
.post .info time, .post .info span {
padding-right: 4px;
}
.post .links a {
padding-right: 4px;
font-weight: 400;
}
.post .links a:after {
content: "|";
position: relative;
right: -4px;
}
.post .links a:last-child:after {
content: "";
}
.comment .info {
display: flex;
align-items: baseline;
margin-bottom: 8px;
}
.comment .info time {
padding-right: 12px;
}
.comment .info div {
font-weight: 300;
font-size: 12px;
padding-right: 8px;
position: relative;
top: -1px;
}
.comments h2 {
font-weight: bold;
font-size: 20px;
padding: 8px 16px;
}

View File

@ -1,6 +1,7 @@
<html>
<head>
<title>Upvoted Posts</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet">
<style></style>
</head>