/* External CSS values override */ .fa-icon.fa-icon-badged > .fa-icon-badge { bottom: auto; top: -20%; } :root body, :root.mobile body { --font-size: 14px; --popup-gap: var(--font-size); --popup-gap-thin: calc(0.5 * var(--popup-gap)); --popup-gap-extra-thin: calc(0.25 * var(--popup-gap)); --popup-main-min-width: 18em; --popup-firewall-min-width: 30em; --popup-rule-cell-width: 5em; font-size: var(--font-size); line-height: 20px; min-width: 100%; } :root body.loading { opacity: 0; } a { color: var(--ink-1); fill: var(--ink-1); text-decoration: none; } :focus { outline: 0; } #main { align-self: flex-start; display: flex; flex-direction: column; max-width: 340px; min-width: 100%; } :root.portrait #main { align-self: inherit; } hr { border: 0; border-top: 1px solid var(--hr-ink); margin: 0; padding: 0; } #hostname { align-items: center; background-color: var(--popup-toolbar-surface); display: flex; justify-content: center; min-height: calc(var(--font-size) * 3); padding: 0 var(--popup-gap-extra-thin); text-align: center; word-break: break-all; } #hostname > span { word-break: break-all; } #hostname > span + span { font-weight: 600; } body[data-forbid~="filteringMode"] .filteringModeSlider { pointer-events: none; } body[data-forbid~="dashboard"] #gotoDashboard { display: none; } #filteringModeText { color: var(--ink-3); margin: var(--default-gap-small); margin-top: 0; text-align: center; text-transform: lowercase; } #filteringModeText > span { color: var(--accent-surface-1); } #filteringModeText > span:nth-of-type(2) { display: none; } #filteringModeText > span:nth-of-type(2):not(:empty) { display: inline; } #filteringModeText > span:nth-of-type(2):not(:empty)::before { content: '\2002\2192\2002'; } [dir="rtl"] #filteringModeText > span:nth-of-type(2):not(:empty)::before { content: '\2002\2190\2002'; } .filteringModeSlider { align-self: center; margin: var(--popup-gap); width: calc(var(--popup-main-min-width) - 1em); } .rulesetTools { background-color: transparent; border: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-evenly; width: 25%; } .rulesetTools [id] { background-color: var(--popup-ruleset-tool-surface); border-radius: 4px; cursor: pointer; fill: var(--popup-ruleset-tool-ink); flex-grow: 1; font-size: 2.2em; padding: 0; visibility: hidden; } .rulesetTools [id]:not(:first-of-type) { margin-block-start: 1px; } .rulesetTools [id] > svg { fill: var(--ink-4); } body.needReload #refresh { visibility: visible; } #rulesetStats { padding: 0 var(--popup-gap-thin); } #rulesetStats .rulesetDetails h1 { font-size: 1em; font-weight: normal; margin: 0.5em 0 0.25em 0; } #rulesetStats .rulesetDetails p { color: var(--ink-2); font-size: var(--font-size-smaller); margin: 0.25em 0 0.5em 0.5em; } .itemRibbon { column-gap: var(--popup-gap); display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; grid-template: auto / 1fr 1fr; margin: var(--popup-gap); } .itemRibbon > span + span { text-align: end; } .toolRibbon { align-items: center; background-color: var(--popup-toolbar-surface); display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; grid-template: auto / repeat(5, 1fr); justify-items: center; white-space: normal; } .toolRibbon .tool { cursor: pointer; display: flex; flex-direction: column; font-size: 1.4em; min-width: 32px; padding: var(--popup-gap) var(--popup-gap-thin); unicode-bidi: embed; visibility: hidden; } .toolRibbon .tool:hover { color: var(--ink-1); fill: var(--ink-1); } .toolRibbon .tool.enabled { visibility: visible; } .toolRibbon .tool .caption { font: 10px/12px sans-serif; margin-top: 6px; text-align: center; } body.mobile.no-tooltips .toolRibbon .tool { font-size: 1.6em; } .toolRibbon.genericTools { margin-bottom: 0; } #moreOrLess { column-gap: 0; display: grid; grid-template: auto / 1fr 1fr; justify-items: stretch; margin: 1px 0 0 0; } #moreOrLess > span { cursor: pointer; margin: 0; padding: var(--popup-gap-thin) var(--popup-gap); user-select: none; white-space: nowrap; } #moreButton .fa-icon { transform: rotate(180deg); } #lessButton { border-inline-start: 1px solid var(--surface-1); text-align: end; } body[data-section="a b"] #moreButton { pointer-events: none; visibility: hidden; } body[data-section=""] #lessButton { pointer-events: none; visibility: hidden; } body:not([data-section~="a"]) [data-section="a"] { display: none; } body:not([data-section~="b"]) [data-section="b"] { display: none; } /* configurable UI elements */ :root:not(.mobile) .toolRibbon .caption, :root.mobile body.no-tooltips .toolRibbon .caption, :root.mobile body[data-ui~="-captions"] .toolRibbon .caption { display: none; } :root.mobile .toolRibbon .caption, :root:not(.mobile) body[data-ui~="+captions"] .toolRibbon .caption { display: inherit; } :root:not(.mobile) .toolRibbon .tool, :root.mobile body.no-tooltips .toolRibbon .tool, :root.mobile body[data-ui~="-captions"] .toolRibbon .tool { padding: var(--popup-gap) var(--popup-gap-thin); } :root.mobile #moreOrLess > span { padding: var(--popup-gap); } /* horizontally-constrained viewport */ :root.portrait body { overflow-y: auto; width: 100%; } :root.portrait #main { max-width: unset; } /* mouse-driven devices */ :root.desktop { display: flex; } :root.desktop body { --popup-gap: calc(var(--font-size) * 0.875); } :root.desktop .rulesetTools [id]:hover { background-color: var(--popup-ruleset-tool-surface-hover); } :root.desktop .rulesetTools [id]:hover > svg { fill: var(--ink-2); } :root.desktop .tool:hover { background-color: var(--popup-toolbar-surface-hover); } :root.desktop #moreOrLess > span:hover { background-color: var(--surface-2); /* background-color: var(--popup-toolbar-surface-hover); */ } #templates { display: none; }