See @description in the Source Code.
Dark Financial Times ft.com [papo] (80% finished) by papo
Details
Authorpapo
LicenseCC BY-NC-SA 4.0
Categoryft
Created
Updated
Size14 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name Dark Financial Times ft.com [papo]
@namespace github.com/paponius/userstyles
@version 1.0.0
@description Updated: 2024-05. Not yet 100%. Notes and feedback: https://github.com/paponius/userstyles/
@author Papo
@homepageURL https://github.com/paponius/userstyles/
@supportURL https://github.com/paponius/userstyles/
@license CC BY-NC-SA 4.0
@preprocessor uso
@advanced color color-primary "Text Primary" white
@advanced color color-secondary "Text Secondary" #ccc
@advanced color color-headline "Headline" #c3e9ff
@advanced color color-heading "Headings" #678CB1
@advanced color color-link-visited "Visited link color" violet
# up to 24-04: #B62EF0
@advanced dropdown background-base "Background" {
dft "Tiles" <<<EOT #000 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAgMAAAANjH3HAAAACVBMVEUaGhohISElJSUh9lebAAAB20lEQVRIx4XWuZXDMAwE0C0SAQtggIIYoAAEU+aKOHhYojTrYP2+QfOW/5QIJOih/q8HwF/pb3EX+UPIveYcQGgEHiu9hI+ihEc5Jz5KBIlRRRaJ1JtoSAl5Hw96hLB1/up1tnIXOck5jZQy+3iU2hAOKSH1JvwxHsp+5TLF5MOl1/MQXsVs1miXc+KDbYydyMeUgpPQreZ7fWidbNhkXNJSeAhc6qHmHD8AYovunYyEACWEbyIhNeB9fRrH3hFi0bGPLuEW7xCNaohw1vAlS805nfsrTspclB/hVdoqusg53eH7FWot+wjYpOViX8KbFFKTwlnzvj65P9H/vD0/hibYBGhPwlPO8TmxRsaxsNnrUmUXpNhirlJMPr6Hqq9k5Xn/8iYQHYIuQsWFC6Z87IOxLxHphSY4SpuiU87xJnJr5axfeRd+lnMExXpEWPpuZ1v7qZdNBOjiHzDREHX5fs5Zz9p6X0vVKbKKchlSl5rv+3p//FJ/PYvoKryI8vs+2G9lzRmnEKkh+BU8yDk515jDj/HAswu7CCz6U/Mxb/PnC9N41ndpU4hUU7JGk/C9PmP/M2xZYdvBW2PObyf1IUiIzoHmHW9yTncliYs9A9tVNppdShfgQaTLMf+j3X723tLeHgAAAABJRU5ErkJggg==) EOT;
rb "Rich black (FOGRA29)" <<<EOT #010B13 EOT;
dc "Dark charcoal" <<<EOT #333 EOT;
cst "Custom" <<<EOT var(--p-background-base-custom, none) EOT;
nbg "None" <<<EOT none EOT;
}
@advanced text background-base-custom "Custom Background" "#000 url(data:image/png;base64,ADD_YOUR_DATA_HERE)"
@advanced dropdown bg-options "Background image type" {
Tiled "Tiled" <<<EOT
background-repeat: repeat !important;
background-size: auto !important;
background-position: left top !important; EOT;
Fit "Fit Window" <<<EOT
background-repeat: no-repeat !important;
background-size: cover !important;
background-position: center top !important; EOT;
}
@advanced dropdown bg-attachment "Background image attachment" {
s "Scroll" <<<EOT EOT;
f "Fixed" <<<EOT fixed EOT;
}
@advanced dropdown background "Text Background" {
dft "Stripes" <<<EOT #000 url(data:image/gif;base64,R0lGODlhBQAFAIAAAB0dHRERESH5BAAAAAAALAAAAAAFAAUAAAIHjAOXtqgXCgA7) EOT;
rb "Rich black (FOGRA29)" <<<EOT #010B13 EOT;
cst "Custom" <<<EOT var(--p-background-custom, none) EOT;
nbg "None" <<<EOT none EOT;
}
@advanced text background-custom "Custom Text Background" "#000 url(data:image/png;base64,ADD_YOUR_DATA_HERE)"
@var range p-size-primary-text "Text Primary size" [18, 10, 30, 1, "px"]
@var range p-size-primary-line "Text Primary line height" [26, 12, 35, 1, "px"]
# --- END: common block ---
# --- optional common block ---
#advanced dropdown color-BG-ADs "ADs background color" {
e "Shade" <<<EOT background-color: rgba(0, 0, 0, .3); !important; EOT;
a "Transparent" <<<EOT background-color: unset !important; EOT;
b "Black" <<<EOT background-color: black !important; EOT;
c "as Custom Text Background" <<<EOT background: var(--p-background, none) !important; EOT;
d "Original" <<<EOT EOT;
}
#var select xxx 'Get my "DeAnnoy XXX [papo]" Style to fix the annoying head bar and navi bar. https://userstyles.world/style/XXX/XXX' {
'You need to copy the text on the left with a mouse, right click and choose open in tab. This is not a setting.': 0
}
@var select debug-test "debug" {
'0:Normal': '',
"1:debug. It just shows testing elements in yellow. No useful purpose for daily use.": "color: yellow !important; background: violet !important;"
}
#var color color-section "Section/Series" #C70000
# --- END: optional common block ---
==/UserStyle== */
/* Do NOT edit this file.
It will disable updates, instead create another style to override desired rules. Or CSS variables.
I don't use !important where not required to allow that. You need to check injection order in Stylus.
Used background-base and bg-options from: https://github.com/StylishThemes
This preprocessor header and global variables are common part used in most of my styles. Version: 1.4.2 2024-04
*/
@-moz-document domain("ft.com") {
:root {
--p-color-primary: /*[[color-primary]]*/;
--p-color-secondary: /*[[color-secondary]]*/;
--p-color-dark: #6e6e6e;
--p-color-headline: /*[[color-headline]]*/;
--p-color-heading: /*[[color-heading]]*/;
--p-color-deck: #ffdede;
--p-color-lead: #ffdede;
--p-color-breadcrumb: hsl(140, 40%, 75%);
--p-color-byline: #C56E6E;
/* --p-color-link: #00ADEE; */
--p-color-link: #82C1FF;
--p-color-link-visited: /*[[color-link-visited]]*/;
--p-color-link-hover: hsl(210, 100%, 85%);
--p-background-base: /*[[background-base]]*/ /*[[bg-attachment]]*/;
--p-background: /*[[background]]*/;
--p-background-base-custom: /*[[background-base-custom]]*/;
--p-background-custom: /*[[background-custom]]*/;
--p-size-primary-text: /*[[p-size-primary-text]]*/;
--p-size-primary-line: /*[[p-size-primary-line]]*/;
}
/* prefixing with --p- to avoid collisions with site's styles, or another UserCSS. And to easily see them in the Inspector. */
/* using site's variables */
/* :root {
--something: var(--p-background-base);
} */
/* -- masthead -- */
.o-header {
color: var(--p-color-primary);
/* --was-color: #33302e; */
background: var(--p-background);
box-shadow: 0 0 10px 1px #000000eb;
/* --was-background-color: #fff1e5; */
}
.o-header__row {
/* border-bottom: 1px solid #ccc1b7; */
}
.o-header__top-icon-link::before
, .ft-header__top-link--myaccount::before
{
filter: invert(1);
}
.o-header__top-logo path {
/* --was-fill="#231F20" */
fill: var(--p-color-primary);
}
.o-header__drawer-button, .o-header__nav-button, .o-header__top-button {
background-color: #ccc;
/* --was-background-color: #262a33; */
color: black;
/* --was-color: #fff; */
/* --was-border: 1px solid transparent; */
}
/* - sub-menu - */
.o-header__mega {
/* --was-box-shadow: 0 1px 2px rgba(77,72,69,.25),0 4px 6px rgba(77,72,69,.1); */
/* --was-border-top: 1px solid #ccc1b7; */
background-color: black;
/* --was-background-color: #fff9f5; */
}
/* - sub-nav: 3rd header, only somewhere - */
.o-header__subnav-link {
color: var(--p-color-secondary);
/* --was-color: #33302e; */
}
.o-header__subnav {
background-color: black;
/* --was-background-color: #fff9f5; */
border-bottom: 1px solid #ccc1b7;
}
/* -- hero section -- */
/* - breadcrumb - */
.o-topper--color-paper .o-topper__topic {
color: var(--p-color-breadcrumb);
/* --was-color: #000; */
}
/* - headline - */
/* todo this is the orig selector, probably will have to break this apart */
.o-topper--color-paper .o-topper__brand, .o-topper--color-paper .o-topper__columnist-name, .o-topper--color-paper .o-topper__headline, .o-topper--color-paper .o-topper__summary, .o-topper--color-paper .o-topper__tags {
color: var(--p-color-headline);
/* --was-color: #000; */
}
.o-topper--color-paper .o-topper__content {
background: var(--p-background);
box-shadow: 0 0 10px 1px #000000eb;
padding-left: 5px;
padding-right: 5px;
/* --was-background-color: #fff1e5; */
}
.o-topper--color-paper .o-topper__background {
background-color: unset;
/* --was-background-color: #fff1e5; */
}
/* - deck - dek - */
/* - lead - lede - perex - */
.o-topper--color-paper .o-topper__standfirst {
color: var(--p-color-lead);
/* --was-color: #000; */
}
/* - byline - */
.n-content-tag--author {
color: var(--p-color-byline);
/* --was-color: #33302e; */
}
.article-info__timestamp {
color: var(--p-color-byline);
/* --was-color: #66605c; */
}
/* -- article -- */
.n-content-body {
color: var(--p-color-primary);
/* --was-color: var(--_o-editorial-typography-body-color,#33302e); */
font-size: var(--p-size-primary-text);
/* --was-font-size: 18px; */
line-height: var(--p-size-primary-line);
/* --was-line-height: 1.6; */
}
/* - heading - */
/* - caption - */
.n-content-image__caption, .n-content-picture__caption {
background-color: rgba(0, 0, 0, .3);
margin-top: 0;
/* --was-margin-top: 4px; */
padding: 5px;
color: var(--p-color-secondary);
/* --was-color: #4d4845; */
}
.o-topper--split-text-center .o-topper__image-caption, .o-topper--split-text-left .o-topper__image-caption {
background-color: rgba(0, 0, 0, .3);
color: var(--p-color-secondary);
/* --was-color: #4d4845; */
/* margin-bottom: -20px; */
padding: 5px;
}
/* - link - */
.n-content-body .n-content-layout a, .n-content-body > * > li a, .n-content-body > p a {
color: var(--p-color-link);
/* --was-color: var(--_o-typography-link-color,#0d7680); */
}
.n-content-body .n-content-layout a:hover, .n-content-body > * > li a:hover, .n-content-body > p a:hover {
color: var(--p-color-link-hover);
/* --was-color: var(--_o-typography-link-color-hover,#08474c); */
}
.n-content-body .n-content-layout a:visited, .n-content-body > * > li a:visited, .n-content-body > p a:visited {
color: var(--p-color-link-visited);
/* --was-color: var(--_o-typography-link-color-hover,#08474c); */
}
/* - author box - */
/* -- features -- */
/* copyright - reuse */
.article-tools__comments, .article-tools__print, .article-tools__reuse {
background-color: rgba(0, 0, 0, .3);
/* --was-background-color: transparent; */
color: var(--p-color-dark);
/* --was-color: #262a33; */
/* --was-border: 1px solid #262a33; */
}
.article-tools__comments:hover, .article-tools__print:hover, .article-tools__reuse:hover {
background-color: rgba(0, 0, 0, .6);
/* --was-background-color: rgba(38,42,51,.15); */
color: var(--p-color-dark);
/* --was-color: #262a33; */
/* --was-border-color: #262a33; */
/* filter: invert(.5); */
}
/* -- more-on -- */
/* === sub main page: https://www.ft.com/world === */
.sub-header__page-title {
/* color: va...