Make date line a lighter text color. Issue #2361

This commit is contained in:
Maurice Parker 2020-08-19 15:44:40 -05:00
parent f7fb859ea9
commit b0b2ab04fc
3 changed files with 18 additions and 5 deletions

View File

@ -164,6 +164,12 @@ private extension ArticleRenderer {
else {
d["avatars"] = ""
}
if self.title.isEmpty {
d["dateline_style"] = "articleDatelineTitle"
} else {
d["dateline_style"] = "articleDateline"
}
var feedLink = ""
if let feedTitle = article.webFeed?.nameForDisplay {

View File

@ -34,6 +34,7 @@ a:hover {
--system-message-color: #cbcbcb;
--feedlink-color: rgba(0, 0, 0, 0.3);
--article-title-color: #333;
--article-date-color: rgba(0, 0, 0, 0.5);
--table-cell-border-color: lightgray;
}
@ -44,6 +45,7 @@ a:hover {
--system-message-color: #5f5f5f;
--feedlink-color: rgba(255, 255, 255, 0.7);
--article-title-color: #e0e0e0;
--article-date-color: rgba(255, 255, 255, 0.5);
--table-cell-border-color: dimgray;
}
}
@ -60,10 +62,6 @@ body .header {
color: var(--header-color);
}
body .articleDateline, body .articleDateLine.a:link, body .articleDateline a:visited {
color: var(--header-color);
}
body code, body pre {
color: var(--body-code-color);
}
@ -101,6 +99,15 @@ body > .systemMessage {
}
.articleDateline a:link, .articleDateline a:visited {
color: var(--article-date-color);
}
.articleDatelineTitle {
margin-bottom: 25px;
font-weight: bold;
}
.articleDatelineTitle a:link, .articleDatelineTitle a:visited {
color: var(--article-title-color);
}

View File

@ -9,6 +9,6 @@
<article>
<div class="articleTitle"><h1>[[title]]</h1></div>
<div class="articleDateline">[[date_medium]]</div>
<div class="[[dateline_style]]">[[date_medium]]</div>
<div class="articleBody">[[body]]</div>
</article>