NetNewsWire/Shared/Resources/Hyperlegible.nnwtheme/stylesheet.css

511 lines
48 KiB
CSS
Raw Normal View History

/* Shared iOS and macOS CSS rules. Platform specific rules are at the bottom of this file. */
@font-face {
font-family: 'Atkinson Hyperlegible';
src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAHesABIAAAAA3+gAAQAGAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAB3kAAAABwAAAAck3JOuEdERUYAAGA0AAAAbAAAAIwU4BK+R1BPUwAAY8AAABPNAAAoRrC7U8FHU1VCAABgoAAAAx4AAAYc4NkJqk9TLzIAAAIQAAAAUAAAAGCBnCDDY21hcAAABSAAAALGAAAD9gczDpZjdnQgAAAPfAAAAD8AAABsFcEKtGZwZ20AAAfoAAAG7QAADgxiLv99Z2FzcAAAYCwAAAAIAAAACAAAABBnbHlmAAASnAAAReIAAIQ4XYakcGhlYWQAAAGUAAAANgAAADYdIfmzaGhlYQAAAcwAAAAhAAAAJAiJBDlobXR4AAACYAAAAr0AAAXMyCo9sWxvY2EAAA+8AAAC3wAAAuiJXKjgbWF4cAAAAfAAAAAgAAAAIALNAdZuYW1lAABYgAAAA28AAAdr3bIeinBvc3QAAFvwAAAEPAAAB0QQWsLHcHJlcAAADtgAAACiAAAAvVqx3zsAAQAAAAEBiTHL1OxfDzz1AB8D6AAAAADcbc81AAAAANyw5ZL/xv8GBQoDeAAAAAgAAgAAAAAAAHicY2BkYGDe9u8eAwOrwf9j/7azcjEARZABYzEAov4GygAAAAABAAABcwBYAAcAVAAEAAIAKgBXAI0AAACVANAAAgABeJxjYGESYZzAwMrAwNTFtJuBgaEHQjPeZzBkZGJAAg0MDO8ZGBS8YXw/fz9XhgMMvKqnmLf9u8fAwLyNUUkBSIHkGD8wzQFSCgwcAKedDvR4nJ2US0iUURiG33P+JBHJCBEvXTUHTS2dHKeLpeU4aSl2MckKKogCowu5alFuW4hGqxZhtWwRYUHUshYSkdvctgihIiIQ2pj2fP/MlE1K0A8P77mf73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uoapfCRpndfXmfl5L5KIxjCVNNOLEsxIXpthdJPRzcRN4jh2ES2aDfokdiMSXSbXMXa7dIXRlW76aEH0mfGoLPbjeJDG5HhxnHsQywH8UX7cpLKWsKDUSOHTVNCLaEr5NK18ZABbkiZVTLgRCTnIpvZ9yYvsrmvN518qJmGfymt1LAZyKIfQla2XG4jQTpT03HQ3jlRcjyVt3ouw5nJcclOaNKXpXOCNRMGmeRpD5SuUi/JTKuw/JKcPQ2hqrUnntGRr5+FWSexLPoE2k5gpyZaxdkaPzs2LIPTX6pPCOa9PFtKsPcXxYEIA1xMZDlXKSTXBFi4nhKQLI8dWIrUq3bIq5s7YTlexS7hfunZ807w2Dh3NzYpiCC2uqsdrKOILOisUQhqkW01a0KBKSReC1/gAAGSIFni0i9GCydciDlowQZGIQR+aaTFI5DCRtIiwNWlJd/eirDTYiq/S3IE6bFJVd3ei7j076dYxXzXzyzoTS8H9KFtaCshJfVr0+MqhtPzsAv8s4IecFeSi2OhFGYcP/vpDZBhqF9bqCtvG2LXrvAU3mWdieNKB/R3MnkzWGSnMhKgqxCsgcWfkOI7JVk2LTBTCvYiWlC9Dmkf5zSmUnC+T/1y65IhFURW+73MElrHmpNnytEefeu7TCNcKfKx5TbqoM4flJcSb5dd0VmT5lM5KLF2dlVle1lmF5dd1NsXyis6mWX5DZ+dYelqN40+VBJFWskXOO3xbmqSPLa5MFj+yi81ji6uTxY/totSCLnhn+gmn/m1dZT+P+1eHfxJ2PQ3/WCr4x/Iq/GPZgH8sV+Efy2/CP5bX4B/Lb8E/lmvwj2VLy7Yp2Osaai8lEk3PSQKTUlzCFtfsuqbrHl3HfXwGV6Ejz8imSjcUN/YnMlz2/tlxirP5SsgVR8+sZWWnFkZoiuzlc8fCcxbnhpbPG8ufx2mWE35VJ67tqbbwvFj5l+C/
}
body {
margin-left: auto;
margin-right: auto;
word-wrap: break-word;
max-width: 44em;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.feedlink {
font-weight: bold;
}
.headerTable {
width: 100%;
height: 68px;
}
.systemMessage {
position: absolute;
top: 45%;
left: 50%;
transform: translateX(-55%) translateY(-50%);
-webkit-user-select: none;
cursor: default;
}
:root {
--header-table-border-color: rgba(0, 0, 0, 0.1);
--header-color: rgba(8, 106, 238, 1);
--body-code-color: #666;
--system-message-color: #cbcbcb;
--feedlink-color: rgba(255, 0, 0, 0.6);
--article-title-color: #333;
--article-date-color: rgba(0, 0, 0, 0.5);
--table-cell-border-color: lightgray;
}
@media(prefers-color-scheme: dark) {
:root {
--header-color: rgba(94, 158, 244, 1);
--body-code-color: #b2b2b2;
--system-message-color: #5f5f5f;
--feedlink-color: rgba(94, 158, 244, 1);
--article-title-color: #e0e0e0;
--article-date-color: rgba(255, 255, 255, 0.8);
--table-cell-border-color: dimgray;
}
}
body .headerTable {
border-bottom: 1px solid var(--header-table-border-color);
color: var(--header-color);
}
body .header {
color: var(--header-color);
}
body .header a:link, .header a:visited {
color: var(--header-color);
}
body code, body pre {
color: var(--body-code-color);
}
body > .systemMessage {
color: var(--system-message-color);
}
.feedlink a:link, .feedlink a:visited {
color: var(--feedlink-color);
}
.avatar img {
border-radius: 4px;
}
.feedIcon {
border-radius: 4px;
}
.rightAlign {
text-align: end;
}
.leftAlign {
text-align: start;
}
.articleTitle a:link, .articleTitle a:visited {
color: var(--article-title-color);
margin-top: 26px;
}
.articleDateline {
margin-bottom: 5px;
font-weight: bold;
}
.articleDateline a:link, .articleDateline a:visited {
color: var(--article-date-color);
}
.articleDatelineTitle {
margin-bottom: 5px;
font-weight: bold;
}
.articleDatelineTitle a:link, .articleDatelineTitle a:visited {
color: var(--article-title-color);
}
.externalLink {
margin-bottom: 5px;
font-style: italic;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.articleBody {
margin-top: 20px;
line-height: 1.6em;
}
h1 {
line-height: 1.15em;
font-weight: bold;
padding-bottom: 0;
margin-bottom: 5px;
}
pre {
max-width: 100%;
margin: 0;
overflow: auto;
overflow-y: hidden;
word-wrap: normal;
word-break: normal;
}
pre {
line-height: 1.4286em;
}
code, pre {
font-family: "SF Mono", Menlo, "Courier New", Courier, monospace;
font-size: 1em;
-webkit-hyphens: none;
}
pre code {
letter-spacing: -.027em;
font-size: 0.9375em;
}
.nnw-overflow {
overflow-x: auto;
}
/*
Instead of the last-child bits, border-collapse: collapse
could have been used. However, then the inter-cell borders
overlap the table border, which looks bad.
*/
.nnw-overflow table {
margin-bottom: 1px;
border-spacing: 0;
border: 1px solid var(--secondary-accent-color);
font-size: inherit;
}
.nnw-overflow table table {
margin-bottom: 0;
border: none;
}
.nnw-overflow td, .nnw-overflow th {
-webkit-hyphens: none;
word-break: normal;
border: 1px solid var(--table-cell-border-color);
border-top: none;
border-left: none;
padding: 5px;
}
.nnw-overflow tr :matches(td, th):last-child {
border-right: none;
}
.nnw-overflow :matches(thead, tbody, tfoot):last-child > tr:last-child :matches(td, th) {
border-bottom: none;
}
.nnw-overflow td pre {
border: none;
padding: 0;
}
.nnw-overflow table[border="0"] {
border-width: 0;
}
img, figure, video, div, object {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
iframe {
max-width: 100%;
margin: 0 auto;
}
iframe.nnw-constrained {
max-height: 50vw;
}
figure {
margin-bottom: 1em;
margin-top: 1em;
}
figcaption {
font-size: 14px;
line-height: 1.3em;
}
sup {
vertical-align: top;
position: relative;
bottom: 0.2rem;
}
sub {
vertical-align: bottom;
position: relative;
top: 0.2rem;
}
hr {
border: 1.5px solid var(--table-cell-border-color);
}
.iframeWrap {
position: relative;
display: block;
padding-top: 56.25%;
}
.iframeWrap iframe {
position: absolute;
top: 0;
left: 0;
height: 100% !important;
width: 100% !important;
}
blockquote {
margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: 15px;
border-inline-start: 3px solid var(--block-quote-border-color);
}
/* Feed Specific */
.feedbin--article-wrap {
border-top: 1px solid var(--header-table-border-color);
}
/* Twitter */
.twitterAvatar {
vertical-align: middle;
border-radius: 4px;
height: 1.7em;
width: 1.7em;
}
.twitterUsername {
line-height: 1.2;
margin-left: 4px;
display: inline-block;
vertical-align: middle;
}
.twitterScreenName {
font-size: 66%;
}
.twitterTimestamp {
font-size: 66%;
}
/* Newsfoot theme for light mode (default) */
.newsfoot-footnote-popover {
background: #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.25);
color: black;
padding: 1px;
}
.newsfoot-footnote-popover-arrow {
background: #fafafa;
border: 1px solid #ccc;
}
.newsfoot-footnote-popover-inner {
background: #fafafa;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
/* Newsfoot theme for dark mode */
@media screen and (prefers-color-scheme: dark) {
.newsfoot-footnote-popover {
background: #444;
color: rgb(224, 224, 224);
}
.newsfoot-footnote-popover-arrow {
background: #242424;
border: 1px solid #444;
}
.newsfoot-footnote-popover-inner {
background: #242424;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
}
/* iOS Specific */
@supports (-webkit-touch-callout: none) {
body {
margin-top: 3px;
margin-bottom: 20px;
padding-left: 20px;
padding-right: 20px;
2022-02-10 23:23:50 +01:00
font-family: 'Atkinson Hyperlegible', -apple-system;
font-size: 135%;
word-break: break-word;
-webkit-hyphens: auto;
-webkit-text-size-adjust: none;
}
:root {
color-scheme: light dark;
font: font-family: 'Atkinson Hyperlegible', -apple-system-body;
/* The font-size is replaced at runtime by the dynamic type size */
font-size: [[font-size]]px;
--primary-accent-color: #086AEE;
--secondary-accent-color: #086AEE;
--block-quote-border-color: rgba(8, 106, 238, 0.75);
}
@media(prefers-color-scheme: dark) {
:root {
--primary-accent-color: #2D80F1;
--secondary-accent-color: #5E9EF4;
--block-quote-border-color: rgba(94, 158, 244, 0.75);
--header-table-border-color: rgba(255, 255, 255, 0.2);
}
}
body a, body a:visited {
color: var(--secondary-accent-color);
}
body .header {
font: font-family: 'Atkinson Hyperlegible', -apple-system-body;
font-size: 135%;
}
body .header a:link, body .header a:visited {
color: var(--primary-accent-color);
}
pre {
border: 1px solid var(--secondary-accent-color);
padding: 5px;
}
.nnw-overflow table {
border: 1px solid var(--secondary-accent-color);
}
}
/* macOS Specific */
@supports not (-webkit-touch-callout: none) {
body {
margin-top: 20px;
margin-bottom: 64px;
padding-left: 48px;
padding-right: 48px;
font-family: 'Atkinson Hyperlegible', -apple-system;
}
.smallText {
font-size: 22px;
}
.mediumText {
font-size: 24px;
}
.largeText {
font-size: 26px;
}
.xlargeText {
font-size: 28px;
}
.xxlargeText {
font-size: 30px;
}
:root {
color-scheme: light dark;
--accent-color: rgba(8, 106, 238, 1);
--block-quote-border-color: rgba(8, 106, 238, .50);
}
@media(prefers-color-scheme: dark) {
:root {
--accent-color: rgba(94, 158, 244, 1);
--block-quote-border-color: rgba(94, 158, 244, .50);
--header-table-border-color: rgba(255, 255, 255, 0.1);
}
}
body .header {
font-size: 135%;
}
body .articleTitle {
font-size: 135%;
}
body .articleDateline {
font-size: 135%;
}
body .externalLink {
font-size: 135%;
}
body a, body a:visited {
color: var(--accent-color);
}
pre {
border: 1px solid var(--accent-color);
padding: 10px;
}
.nnw-overflow table {
border: 1px solid var(--accent-color);
}
}