mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Merge pull request #5552 from justin-b-reeves/tiqoe
Update Tiqoe Dark theme styles
This commit is contained in:
2 files changed
+103
-4
No files matched your search
@@ -169,7 +169,6 @@ body > .systemMessage {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
|
||||
.articleBody {
|
||||
margin-top: 20px;
|
||||
line-height: 1.6em;
|
||||
@@ -409,7 +408,6 @@ a.footnote:hover,
|
||||
.nnw-overflow table {
|
||||
border: 1px solid var(--secondary-accent-color);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* macOS Specific */
|
||||
@@ -471,7 +469,7 @@ a.footnote:hover,
|
||||
code,
|
||||
pre {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.xxlargeText {
|
||||
@@ -524,3 +522,36 @@ a.footnote:hover,
|
||||
.inline-invite.inline-invite-type__funding.inline-invite-style__default:has(> .inline-invite-funding__box):has([href*="give.newshour.org"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* TechCrunch → Reader View */
|
||||
.affiliate-disclaimer-text:has([href*="techcrunch.com/techcrunch-affiliate-monetization-standards"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Macworld */
|
||||
div:has([href*="macworld.com/newsletters/signup"]) :is(figcaption, button.lightbox-trigger, p.imageCredit) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 7.3 */
|
||||
.nnw-primary-image img,
|
||||
.nnw-enclosure-image img {
|
||||
max-height: 66.6667vh;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.nnw-enclosure-audio {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-block: 0 1em;
|
||||
row-gap: 1em;
|
||||
}
|
||||
|
||||
.nnw-enclosure-caption {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.nnw-primary-media:has(.nnw-enclosure-audio),
|
||||
.nnw-primary-image {
|
||||
margin: 0;
|
||||
}
|
||||
@@ -14,4 +14,72 @@
|
||||
[[primary_media]]
|
||||
<div id="bodyContainer" class="articleBody [[text_size_class]]">[[body]]</div>
|
||||
[[enclosures]]
|
||||
</article>
|
||||
</article>
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const articleBody = document.querySelector(".articleBody");
|
||||
const textSize = parseFloat(getComputedStyle(articleBody).fontSize);
|
||||
|
||||
document.querySelectorAll("body > header .headerTable td, body > header .headerTable th").forEach(headerText => {
|
||||
headerText.style.fontSize = `${textSize - 4}px`;
|
||||
});
|
||||
|
||||
// iOS
|
||||
if (CSS.supports("-webkit-touch-callout", "none")) {
|
||||
document.querySelectorAll(".articleTitle h1").forEach(articleTitle => {
|
||||
articleTitle.style.fontSize = `${textSize + 10}px`;
|
||||
});
|
||||
}
|
||||
|
||||
// macOS
|
||||
if (!CSS.supports("-webkit-touch-callout", "none")) {
|
||||
document.querySelectorAll(".articleTitle h1").forEach(articleTitle => {
|
||||
articleTitle.style.fontSize = `${textSize + 12}px`;
|
||||
});
|
||||
}
|
||||
|
||||
document.querySelectorAll(".articleDateline").forEach(articleDate => {
|
||||
articleDate.style.fontSize = `${textSize - 2}px`;
|
||||
});
|
||||
|
||||
document.querySelectorAll(".articleDatelineTitle").forEach(dateTitle => {
|
||||
dateTitle.style.fontSize = `${textSize - 0}px`;
|
||||
});
|
||||
|
||||
document.querySelectorAll("div.externalLink").forEach(externalLink => {
|
||||
externalLink.style.fontSize = `${textSize - 4}px`;
|
||||
});
|
||||
|
||||
document.querySelectorAll(".nnw-enclosure-caption").forEach(enclosureCaption => {
|
||||
enclosureCaption.style.fontSize = `${textSize - 2}px`;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// TechCrunch → Reader View
|
||||
const feedLink = document.querySelector(".feedlink");
|
||||
|
||||
if (feedLink.href.includes("techcrunch.com")) {
|
||||
|
||||
document.querySelectorAll("img[sizes^='auto']").forEach(img => {
|
||||
img.sizes = img.sizes.split(",").slice(1).join(",").trim();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// blog.the-ebook-reader.com
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
const feedLink = document.querySelector(".feedlink");
|
||||
|
||||
if (feedLink.href.includes("blog.the-ebook-reader.com")) {
|
||||
|
||||
document.querySelectorAll(".nnw-primary-media").forEach(div => {
|
||||
div.style.display = "none";
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user