See @description in the Source Code.
DeAnnoy Politico [papo] by papo
Details
Authorpapo
LicenseCC BY-NC-SA 4.0
Categorypolitico
Created
Updated
Size3.2 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 Politico [papo]
@namespace github.com/paponius/userstyles
@version 1.1.0
@description Updated: 2025-02. [m] Notes and feedback: https://github.com/paponius/userstyles/. See what it does in the UserStyle 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 checkbox UnstickHeaderMenu "Unstick the smaller header with menu after scroll down" 1
@var checkbox SpaceSaver "Space saver. See more content without scrolling" 1
@var checkbox SmallerShareButton "Space saver. Smaller share button" 1
@var checkbox AccountLoginPro 'Remove Pro features. Register, Login, Pro ...' 0
@var checkbox HideNewsletter "Hide Newsletter subscription box" 1
@var checkbox FooterCondense 'Condense the footer' 1
==/UserStyle== */
/* tpl: 1.2.3 25-01 */
@-moz-document domain("politico.eu") {
& when (@UnstickHeader = 1) {
.header:not(.is-condensed) {
position: relative;
}
}
& when (@UnstickHeaderMenu = 1) {
.header {
position: relative;
/* position: static; */
/* --was-position: sticky; */
}
}
& when (@SpaceSaver = 1) {
.sidebar-grid {
row-gap: 1rem;
/* --was-row-gap: var(--layout-flow-extended); 4.5rem */
}
.article__footer-inline {
margin-top: 1rem !important;
/* --was-margin-top: var(--wp--custom--spacing--13) !important; */
}
.article > * {
margin-bottom: 1rem;
/* --was-margin-bottom: var(--layout-flow-extended); */
}
.article .sidebar-grid + .article__footer {
margin-top: 1rem;
/* --was-margin-top: var(--wp--custom--spacing--13); */
}
.hero > * + * {
margin-top: 1rem;
/* --was-margin-top: var(--wp--custom--spacing--8); */
}
.hero .article-meta {
margin-top: 1rem;
/* --was-margin-top: var(--wp--custom--spacing--9); */
}
}
& when (@AccountLoginPro = 1) {
.header__ctas {
display: none;
}
/* a useless notice, taking vertical space " Free article usually reserved for subscribers " */
.pro-pill {
display: none;
}
}
& when (@SmallerShareButton = 1) {
.hero__actions {
flex-direction: row-reverse;
/* top: -30px; with padding */
top: -18px;
right: 5px;
position: relative;
margin-top: 0;
}
.hero__actions .is-button {
padding: 0;
background: unset;
/* background-color: rgba(0, 0, 0, .3); */
}
}
}
@-moz-document
domain("politico.com")
/* regexp("https://www.politico.com(?!/live-updates/).*") */
{
& when (@UnstickHeader = 1) {
.page-header.on-home:has(.homepageNav) {
/* position: relative; */
position: static;
/* --was-position: sticky; */
}
}
& when (@UnstickHeaderMenu = 1) {
.articleNav, .homepageNav {
position: relative;
/* --was-position: sticky; */
}
}
& when (@AccountLoginPro = 1) {
.page-header .actions-lineup__item:has(a[href="https://www.politicopro.com/"]) {
display: none;
}
}
& when (@HideNewsletter = 1) {
[data-id="signup-form-0"] {
display: none;
}
}
& when (@FooterCondense = 1) {
.footer {
padding: .5rem;
}
}
}