Read @description in the Source Code.
Dark DailyMail [papo] by papo
Details
Authorpapo
LicenseCC-BY-SA-4.0
Categorydailymail
Created
Updated
Size20 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 DailyMail [papo]
@namespace github.com/paponius/userstyles
@version 1.0.8
@description Updated: 2024-11. Notes and feedback: https://github.com/paponius/userstyles/. Also check my "Deannoy DailyMail [papo]" Style, which allows you to remove annoying elements from the site.
@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 prop-BG-ADs "ADs background color" {
e "Shade" <<<EOT background: rgba(0, 0, 0, .3) !important; EOT;
a "Transparent" <<<EOT background: unset !important; EOT;
b "Black" <<<EOT background: 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.3 2024-05
*/
@-moz-document domain("dailymail.co.uk") {
: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]]*/;
/* Legacy */
--gl-text-primary: var(--p-color-primary);
--gl-text-sec: var(--p-color-secondary);
--gl-text-dark: var(--p-color-dark);
--gl-text-caption: var(--p-color-headline);
--gl-link-hover: var(--p-color-link-hover);
--gl-background-base: var(--p-background-base);
--gl-background: var(--p-background);
}
/* 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 -- */
/* - 2nd header - main masthead - */
/* logo */
/* Using: just .masthead {
Inverting both logo and topic pictures in masthead, e.g. "MailOnline" and "News", or "health", ...
would create some interesting graphics
ghostly showbiz people: https://www.dailymail.co.uk/tvshowbiz/index.html
Healthy violet leaves: https://www.dailymail.co.uk/health/index.html
Only pictures on pages under "News" topic needs inverting ("News", "Site's most read",...),
as they're not readable and are ugly on black background.
But using: .masthead img#logo, .news .masthead {
to only invert topic pic on .news .masthead, would also invert .masthead img#logo AGAIN. It's inverted twice back to original.
That's why we need two mutually exclusive selectors, for .news, and :not(.news).
*/
:not(.news) > .masthead img#logo, .news .masthead {
filter: invert(1);
/* filter: contrast(30%); */
/* filter: hue-rotate(243deg); */
}
/* some don't need BG as they are pic */
/* only on news article pages */
/* .page-header > .news { */
/* all pages: HP, us-HP, /sport/ ... */
.page-header {
background: var(--p-background);
}
/* - 3rd header - menu - */
#page-container .page-header .nav-primary,
#page-container > #content > .footer .nav-primary,
#page-container > .footer .nav-primary,
#top > #content > .footer .nav-primary,
#top > .footer .nav-primary {
background: black;
}
.gr6ox, .link-gr6ox a, .linkro-gr6ox a:hover {
/* --was-color: #333; */
color: var(--p-color-secondary);
}
/* - 1st header - above main header - */
/* temperature values were black */
.page-header .weather a {
/* --was-color: #000; */
color: unset;
}
/* top left: "Privacy Policy" and "Feedback" */
.page-header .supplements a {
color: var(--gl-text-dark);
/* --was-color: #000; */
}
/* divider line (also footer) */
.page-footer a, .page-header .supplements a {
border-right: 1px solid #787878;
}
/* "Mail+" logo (far right) */
.mol-desktop .nav-primary .mailplus-nav a::after {
filter: invert(80%);
}
/* -- hero section -- */
/* - breadcrumb - */
/* - headline - */
.article-text > h1
/* Article where Caption is below a video. The background-color is defined on three divs below in original. */
, [data-video-hero] .desktopApp--DmjwV, [data-video-hero] .videoLayout--Az7TN, .vjs-video-container, [data-video-hero] .footer--p5cdn
, .video-lead-info /* on https://www.dailymail.co.uk/video/ */
{
background: var(--gl-background);
box-shadow: 0 0 10px 1px #000000eb;
}
.article-text h1
, [data-video-hero] .footer--p5cdn h1 /* more specific selector, to override original */
, [data-video-hero] div[class^="footer--"] h1 /* in case the classname will change */
{
color: var(--p-color-headline);
}
/* only on https://www.dailymail.co.uk/news/royals/index.html, a sub-main page */
.newsroyals.mol-desktop .article a, .newsroyals.mol-mobile .article-preview a, .newsroyals.mol-mobile .article-preview a > h2, .royalsroyals.mol-desktop .article a, .royalsroyals.mol-mobile .article-preview a, .royalsroyals.mol-mobile .article-preview a > h2 {
/* color: var(--p-color-headline); */
color: var(--p-color-primary);
/* --was-color: #000; */
}
/* - deck - dek - */
/* - lead - lede - perex - */
/* - byline - */
.article-text .byline-fancy a, .article-text .byline-plain a {
color: var(--p-color-byline);
/* --was-color: #004db3; */
}
.article-text .byline-fancy, .article-text .byline-plain { /* byline "By" word */
color: var(--p-color-secondary);
}
.article-text .byline-section { /* published date */
color: var(--p-color-secondary);
/* --was-color: #666; */
}
.article-text .byline-section time {
color: var(--p-color-byline);
}
/* -- article -- */
.gamma .article-text.cc-asset-content, .gamma div[itemprop="articleBody"]
, .article-text.cc-asset-content, div[itemprop="articleBody"]
{
font-size: var(--p-size-primary-text);
line-height: var(--p-size-primary-line);
/* --was-font-size: 18px; */
/* --was-line-height: 26px; */
}
/* .article-text.cc-asset-content, div[itemprop="articleBody"] { */
/* --was-font-size: 16px; */
/* --was-line-height: 23px; */
/* } */
div[itemprop="articleBody"] {
b...