diff --git a/Themes/Tiqoe Dark.nnwtheme/stylesheet.css b/Themes/Tiqoe Dark.nnwtheme/stylesheet.css index 649b69dff..92f73e426 100644 --- a/Themes/Tiqoe Dark.nnwtheme/stylesheet.css +++ b/Themes/Tiqoe Dark.nnwtheme/stylesheet.css @@ -10,7 +10,7 @@ body { } [href] { - text-decoration-style: underline; + text-decoration-style: solid; text-decoration-color: var(--link-underline-color); text-decoration-thickness: 1px; text-underline-offset: 0.15em; @@ -18,7 +18,7 @@ body { [href]:has(img):hover { opacity: 1; - } +} #nnwImageIcon { width: 32px; @@ -49,7 +49,7 @@ body { --secondary-accent-color: #43350e; --block-quote-border-color: rgba(255, 255, 255, 0.3); --link-underline-color: color-mix(in hsl, currentColor, transparent 20%); - --link-underline-special: color-mix(in hsl, currentColor, transparent 40%) + --link-underline-special: color-mix(in hsl, currentColor, transparent 40%); } hr { @@ -190,9 +190,7 @@ pre { code, pre { - font-family: "SF Mono", Menlo, "Courier New", Courier, monospace; - font-size: 0.85rem; - letter-spacing: -0.027em; + font-family: ui-monospace, Menlo, "Courier New", Courier, monospace; -webkit-hyphens: none; } @@ -225,6 +223,10 @@ pre { border-top: none; border-left: none; padding: 5px; + + &:has(sup) { + text-wrap: pretty; + } } .nnw-overflow tr :matches(td, th):last-child { @@ -272,7 +274,6 @@ figure { } figcaption { - font-size: 14px; line-height: 1.3em; } @@ -339,7 +340,6 @@ blockquote { font-size: 66%; } -/* Newsfoot theme for light mode (default) */ .newsfoot-footnote-popover { background: #555; box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5), 0 3px 6px rgba(255, 255, 255, 0.25); @@ -382,7 +382,7 @@ a.footnote:hover, -webkit-hyphens: auto; -webkit-text-size-adjust: none; font-family: Charter, Georgia, sans-serif; - font-size: [[font-size]]px; + font-size: calc([[font-size]]px + 2px); } .articleTitle h1 { @@ -397,6 +397,15 @@ a.footnote:hover, .nnw-overflow table { border: 1px solid var(--secondary-accent-color); } + + code, + pre { + font-size: calc([[font-size]]px - 2px); + } + + figcaption { + font-size: calc([[font-size]]px + 0px); + } } /* macOS Specific */ @@ -413,22 +422,67 @@ a.footnote:hover, font-size: 14px; } + .smallText code, + .smallText pre { + font-size: 10px; + } + + .smallText figcaption { + font-size: 12px; + } + .mediumText { font-size: 16px; } + .mediumText code, + .mediumText pre { + font-size: 12px; + } + + .mediumText figcaption { + font-size: 14px; + } + .largeText { font-size: 18px; } + .largeText code, + .largeText pre { + font-size: 14px; + } + + .largeText figcaption { + font-size: 16px; + } + .xlargeText { font-size: 20px; } + .xlargeText code, + .xlargeText pre { + font-size: 16px; + } + + .xlargeText figcaption { + font-size: 18px; + } + .xxlargeText { font-size: 22px; } + .xxlargeText code, + .xxlargeText pre { + font-size: 18px; + } + + .xxlargeText figcaption { + font-size: 20px; + } + pre { border: 1px solid var(--primary-accent-color); padding: 10px; @@ -450,7 +504,7 @@ a.footnote:hover, } [href]:hover, - .headerContainer a[href]:hover { +.headerContainer a[href]:hover { text-shadow: 0 1px rgba(0, 0, 0, 2); opacity: 0.8; color: color-mix(in hsl, var(--link-underline-color), firebrick 70%);