Files
NetNewsWire/Shared/Article Rendering/core.css
T

228 lines
4.2 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* This makes the leading edge of the article stable.
<https://discourse.netnewswire.com/t/account-for-layout-shift-from-macos-scrollbar-in-themes/328>
*/
html {
scrollbar-gutter: stable;
}
/* Keep absolutely positioned feed content from escaping the body and overlapping the title.
(.article-body is the Biblioteca theme's name for .articleBody.) */
.articleBody,
.article-body {
position: relative;
}
pre, code {
tab-size: 4;
}
/* This is the activity indicator (currently iOS only) that is used while image zooming */
.activityIndicatorWrap {
position: relative;
}
.activityIndicator {
z-index: 1;
width: 64px;
height: 64px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* see removeWpSmiley; this rule is kept in case a wp-smiley is encountered without alt text */
.wp-smiley {
height: 1em !important;
max-height: 1em !important;
}
/* Material for MkDocs and Twemoji render emoji and icons in a .twemoji span or img.
The inline SVGs have no width or height — without the site's stylesheet
they'd render at full column width. */
.twemoji {
display: inline-flex;
height: 1.125em;
vertical-align: text-top;
}
.twemoji svg {
width: 1.125em;
max-height: 100%;
fill: currentColor;
}
img.twemoji, img.emoji {
height: 1em !important;
max-height: 1em !important;
width: auto;
}
/* Primary media: the article’s main video, audio, or image, from the feed */
.nnw-primary-media {
margin: 1em 0;
}
.nnw-primary-image {
margin: 1em 0;
}
.nnw-primary-image img {
height: auto;
}
.nnw-primary-image-caption {
margin: 0.5em 0 0;
font-size: 0.9em;
}
/* Enclosures: audio and video players and images after the article body */
.nnw-enclosures {
margin-top: 1.5em;
}
.nnw-enclosure {
margin: 1em 0;
}
.nnw-enclosure audio {
width: 100%;
}
.nnw-enclosure video,
.nnw-enclosure img {
height: auto;
}
.nnw-enclosure-caption {
margin: 0.5em 0 0;
font-size: 0.9em;
}
/* Hide the external link at the bottom of Daring Fireball posts */
.x-netnewswire-hide {
display: none;
}
/*Block ads and junk*/
iframe[src*="feedads"],
iframe[src*="doubleclick"],
iframe[src*="plusone.google"],
iframe[src*="slashdot-it.pl"] {
display: none !important;
}
a[href*=".ads."],
a[href*="feedads"],
a[href*="doubleclick"],
a[href*="//ads."],
a[href*="api.tweetmeme"],
a[href*="delicious.com/post?"],
a[href*="digg.com/submit?"],
a[href*="google.com/bookmarks/mark?"],
a[href*="posterous.com/share?"],
a[href*="tumblr.com/share?"],
a[href*="linkedin.com/shareArticle?"],
a[href*="facebook.com/share.php?"],
a[href*="http://twitter.com/home?"],
a[href*="addtoany.com/share_save"] {
display: none !important;
}
img[src*=".ads."],
img[src*="//ads."],
img[src*="doubleclick"],
img[src*="feedads"],
img[src*="feedburner"],
img[src*="feedblitz"],
img[src*="share-buttons"],
img[src*="/img/social/"] {
display: none !important;
}
.social_items {
display: none !important;
}
/* Mailchimp newsletters end with a follow-our-socials icon wall */
.mcnFollowBlock {
display: none !important;
}
/* Newsfoot specific styles. Structural styles come first, theme styles second */
.newsfoot-footnote-container {
position: relative;
display: inline-block;
z-index: 9999;
}
.newsfoot-footnote-popover {
position: absolute;
display: block;
padding: 0em 1em;
margin: 1em 0;
top: 0.75em;
max-width: 44em;
border-radius: 0.3em;
box-sizing: border-box;
}
.newsfoot-footnote-popover-arrow {
content: '';
display: block;
width: 1em;
position: absolute;
top: -0.5em;
height: 1em !important;
transform: rotate(45deg);
z-index:0;
}
.newsfoot-footnote-popover-inner {
border-radius: calc(0.3em - 1px);
padding: 1em;
position: relative;
z-index: 1;
}
.newsfoot-footnote-popover-inner :first-child {
margin-top: 0;
}
.newsfoot-footnote-popover-inner :last-child {
margin-bottom: 0;
}
.newsfoot-footnote-popover .reversefootnote,
.newsfoot-footnote-popover .footnoteBackLink,
.newsfoot-footnote-popover .footnote-return {
display: none;
}
sup[id^='fn'] {
vertical-align: baseline;
}
a.footnote {
display: inline-block;
text-decoration: none;
padding: 0.05em 0.75em;
border-radius: 1em;
min-width: 1em;
text-align: center;
font-size: 0.8em;
line-height: 1em;
position:relative;
top: -0.1em;
}