See @description in the Source Code.
Deannoy Reuters [papo] by papo
Details
Authorpapo
LicenseCC BY-NC-SA 4.0
Categoryreuters
Created
Updated
Size3.8 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name DeAnnoy Reuters [papo]
@namespace github.com/paponius/userstyles
@version 1.1.1
@description Updated: 2024-11. Notes and feedback: https://github.com/paponius/userstyles/. Check what it does in style Options, or read @var descriptions on top of the code.
@author Papo
@homepageURL https://github.com/paponius/userstyles/
@supportURL https://github.com/paponius/userstyles/
@license CC BY-NC-SA 4.0
@preprocessor less
@var checkbox UnstickHeader "Unstick the header" 1
@var select FooterCondense 'Compress the footer' ['off:Leave footer as is', 'Condense:Condense', 'CondenseAndNoMenu:Condense + Remove menu on Article pages', 'OnlyTM:Remove footer content on Article pages, except TM. (When ON, Go to Home Page to access it.)']
==/UserStyle== */
/* tpl: 1.2.1 24-11 */
@-moz-document domain("reuters.com") {
/* class names have 5-characters long random part, which does change with time */
/* e.g. pre 24-05: .site-header__scroll-container__3xMex .site-header__inner-sticky__1fm3o { */
/* 24-05-08: .site-header__scroll-container__2fO27 .site-header__inner-sticky__T8nxT */
/* detect HP:
HP:
<html lang="en" data-layout="regular-article">
<main data-testid="SlicesLayout" id="main-content" role="main" class="slices-layout__main__26Zfu">
Article page:
<html lang="en" data-layout="slices">
<main class="regular-article-layout__main__1tzD8" id="main-content" role="main">
*/
& when (@UnstickHeader = 1) {
/* can be absolute or relative, not static, as there is top: property used */
[class*="site-header__scroll-container__"] [class*="site-header__inner-sticky__"] {
position: relative;
/* --was-position: sticky; */
}
/* AD bar sometimes present on top, in such case, site-header has inline 30px set */
[class*="refinitiv-promo-bar__container__"] {
position: relative;
/* --was-position: sticky; */
top: 0;
z-index: 1020;
}
[class*="site-header__scroll-container__"] [class*="site-header__inner-sticky__"][style*="top:"] {
top: 0 !important;
}
}
& when not (@FooterCondense = off) {
body { --p-on: 1; }
/* .link-group__vertical__3g0nb .link-group__item__3oNme { */
footer[data-testid="SiteFooter"] [class*="link-group__vertical__"] [class*="link-group__item__"] {
margin: 0;
/* --was-margin: 8px 0; */
}
footer[data-testid="SiteFooter"] [class*="link-group__vertical__"] [class*="link-group__item__"] span {
font-size: 12px;
line-height: 13px;
}
footer[data-testid="SiteFooter"] h2[class*="link-group__label__"] {
margin-bottom: 0;
/* --was-margin-bottom: 12px; */
}
footer[data-testid="SiteFooter"] > section {
padding-bottom: 10px;
/* --was-padding-bottom: 24px; */
padding-top: 0;
/* --was-padding-top: 24px; */
}
/* leave padding 9px on all except the last, as it has it's padding added with section */
footer[data-testid="SiteFooter"] [class*="product-cards__list-container__"]:last-child [class*="product-cards__list__"] {
padding-bottom: 0;
/* --was-padding-bottom: 9px; */
}
footer[data-testid="SiteFooter"] [class*="product-cards__list-container__"] [class*="product-cards__label__"] {
margin-bottom: 4px;
/* --was-margin-bottom: 16px; */
margin-top: 0;
/* --was-margin-top: 24px; */
}
& when (@FooterCondense = CondenseAndNoMenu) or (@FooterCondense = OnlyTM) {
footer[data-testid="SiteFooter"] > section[class*="site-footer__quick-links__"] {
display: none;
}
}
& when (@FooterCondense = OnlyTM) {
footer[data-testid="SiteFooter"] > section[class*="site-footer__company__"] {
display: none;
}
footer[data-testid="SiteFooter"] > section[class*="site-footer__product__"] {
display: none;
}
}
} /* END: & when not (@FooterCondense = off) { */
}