Make posts single-color
This commit is contained in:
parent
140c1b1bfa
commit
7360503234
@ -16,6 +16,7 @@
|
|||||||
--background: #0f0f0f;
|
--background: #0f0f0f;
|
||||||
--outside: #1f1f1f;
|
--outside: #1f1f1f;
|
||||||
--post: #161616;
|
--post: #161616;
|
||||||
|
--panel-border: 1px solid #333;
|
||||||
--highlighted: #333;
|
--highlighted: #333;
|
||||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
@ -30,6 +31,7 @@
|
|||||||
--background: #ddd;
|
--background: #ddd;
|
||||||
--outside: #ececec;
|
--outside: #ececec;
|
||||||
--post: #eee;
|
--post: #eee;
|
||||||
|
--panel-border: 1px solid #ccc;
|
||||||
--highlighted: white;
|
--highlighted: white;
|
||||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
@ -44,6 +46,7 @@
|
|||||||
--background: #ddd;
|
--background: #ddd;
|
||||||
--outside: #ececec;
|
--outside: #ececec;
|
||||||
--post: #eee;
|
--post: #eee;
|
||||||
|
--panel-border: 1px solid #ccc;
|
||||||
--highlighted: white;
|
--highlighted: white;
|
||||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
@ -167,7 +170,7 @@ aside {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post, .panel {
|
.post, .panel {
|
||||||
border: 1px solid var(--highlighted);
|
border: var(--panel-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
@ -388,7 +391,7 @@ button.submit:hover > svg { stroke: var(--accent); }
|
|||||||
background: var(--post);
|
background: var(--post);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
transition: 0.2s background;
|
transition: 0.2s background;
|
||||||
border: 1px solid var(--highlighted);
|
border: var(--panel-border);
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,7 +446,7 @@ a.search_subreddit:hover {
|
|||||||
"post_score post_media post_thumbnail" auto
|
"post_score post_media post_thumbnail" auto
|
||||||
"post_score post_body post_thumbnail" auto
|
"post_score post_body post_thumbnail" auto
|
||||||
"post_score post_footer post_thumbnail" auto
|
"post_score post_footer post_thumbnail" auto
|
||||||
/ minmax(50px, auto) 1fr fit-content(min(20%, 152px));
|
/ minmax(40px, auto) 1fr fit-content(min(20%, 152px));
|
||||||
}
|
}
|
||||||
|
|
||||||
.post:not(:last-child) { margin-bottom: 10px; }
|
.post:not(:last-child) { margin-bottom: 10px; }
|
||||||
@ -458,18 +461,16 @@ a.search_subreddit:hover {
|
|||||||
|
|
||||||
.post_score {
|
.post_score {
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: end;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
grid-area: post_score;
|
grid-area: post_score;
|
||||||
text-align: center;
|
text-align: end;
|
||||||
background: var(--foreground);
|
|
||||||
border-radius: 5px 0 0 5px;
|
border-radius: 5px 0 0 5px;
|
||||||
transition: 0.2s background;
|
transition: 0.2s background;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post:hover > .post_score {
|
|
||||||
background: var(--highlighted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post_score .label {
|
.post_score .label {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -569,7 +570,7 @@ a.search_subreddit:hover {
|
|||||||
|
|
||||||
.post_thumbnail {
|
.post_thumbnail {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid var(--foreground);
|
border: var(--panel-border);
|
||||||
display: grid;
|
display: grid;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
@ -849,7 +850,7 @@ input[type="submit"] {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 4px 0 4px 5px;
|
margin: 4px 0 4px 5px;
|
||||||
border-left: 4px solid var(--highlighted);
|
border-left: 4px solid var(--highlighted);
|
||||||
background: var(--outside);
|
background: var(--post);
|
||||||
}
|
}
|
||||||
|
|
||||||
.md a, .md a * {
|
.md a, .md a * {
|
||||||
@ -891,13 +892,14 @@ input[type="submit"] {
|
|||||||
|
|
||||||
/* Tables */
|
/* Tables */
|
||||||
|
|
||||||
|
table, td, th { border: var(--panel-border); }
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border: 3px var(--highlighted) solid;
|
border-width: 3px;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
td, th {
|
td, th {
|
||||||
border: 1px var(--highlighted) solid;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -917,7 +919,6 @@ td, th {
|
|||||||
background-color: unset;
|
background-color: unset;
|
||||||
margin: 5px 0px 20px 20px;
|
margin: 5px 0px 20px 20px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.compact .post_score {
|
.compact .post_score {
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
<!-- POST CONTENT -->
|
<!-- POST CONTENT -->
|
||||||
<div class="post highlighted">
|
<div class="post highlighted">
|
||||||
|
|
||||||
<p class="post_header">
|
<p class="post_header">
|
||||||
<a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a>
|
<a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a>
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
@ -73,14 +72,12 @@
|
|||||||
<div class="post_body">{{ post.body }}</div>
|
<div class="post_body">{{ post.body }}</div>
|
||||||
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
||||||
<div class="post_footer">
|
<div class="post_footer">
|
||||||
|
|
||||||
<ul id="post_links">
|
<ul id="post_links">
|
||||||
<li><a href="/{{ post.id }}">permalink</a></li>
|
<li><a href="/{{ post.id }}">permalink</a></li>
|
||||||
<li><a href="https://reddit.com/{{ post.id }}">reddit</a></li>
|
<li><a href="https://reddit.com/{{ post.id }}">reddit</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>{{ post.upvote_ratio }}% Upvoted</p>
|
<p>{{ post.upvote_ratio }}% Upvoted</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- SORT FORM -->
|
<!-- SORT FORM -->
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
||||||
<div class="post_footer">
|
<div class="post_footer">
|
||||||
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} Comments</a>
|
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} comments</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
||||||
<div class="post_footer">
|
<div class="post_footer">
|
||||||
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} Comments</a>
|
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} comments</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
<div class="post_score">{{ post.score }}<span class="label"> Upvotes</span></div>
|
||||||
<div class="post_footer">
|
<div class="post_footer">
|
||||||
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} Comments</a>
|
<a href="{{ post.permalink }}" class="post_comments">{{ post.comments }} comments</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user