Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | 1x | /**
* @module Infrastructure/PoliticalIntelligence/Render/Style
* @category Intelligence Operations / Supporting Infrastructure
* @name Inline page-specific CSS for the political-intelligence dashboard
*
* @description
* Pure string export — the CSS for the political-intelligence page
* (hero, TOC, cards, day grids, artifact `<details>` toggle, RTL
* adjustments, mobile breakpoints). Chrome owns header/footer styling.
*
* Round-6 split: extracted from `scripts/generate-political-intelligence.ts`.
*
* @author Hack23 AB (Infrastructure Team)
* @license Apache-2.0
*/
/** Inline CSS for the political-intelligence dashboard. */
export const PI_EXTRA_STYLE: string = `
.pi-container { max-width: 1280px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.pi-page-hero {
text-align: center;
padding: 3rem 1rem;
margin-bottom: 2.5rem;
background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(255, 0, 110, 0.06));
border: 1px solid rgba(0, 217, 255, 0.25);
border-radius: 12px;
}
.pi-page-hero h1 {
font-family: var(--font-heading, 'Orbitron', sans-serif);
color: var(--primary-cyan, #00d9ff);
font-size: clamp(2rem, 4.5vw, 3.25rem);
margin: 0 0 0.5rem;
letter-spacing: 0.02em;
}
.pi-page-hero p.pi-subtitle {
color: var(--primary-yellow, #ffbe0b);
font-size: clamp(1rem, 2vw, 1.25rem);
margin: 0.25rem 0 1rem;
font-weight: 500;
}
.pi-page-hero p.pi-intro {
color: var(--light-text, #e0e0e0);
max-width: 900px;
margin: 1rem auto 0;
line-height: 1.7;
}
.pi-stats { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pi-stat {
background: rgba(0, 217, 255, 0.08);
border: 1px solid rgba(0, 217, 255, 0.3);
padding: 0.75rem 1.25rem;
border-radius: 999px;
color: var(--light-text, #e0e0e0);
font-size: 0.95rem;
}
.pi-stat strong { color: var(--primary-cyan, #00d9ff); font-size: 1.15rem; margin-right: 0.35rem; }
.toc-nav {
background: var(--mid-bg, #1a1e3d);
border-radius: 8px;
padding: 1.25rem 1.5rem;
margin-bottom: 2rem;
border-left: 4px solid var(--primary-cyan, #00d9ff);
}
.toc-nav h2 {
font-family: var(--font-heading, 'Orbitron', sans-serif);
color: var(--primary-cyan, #00d9ff);
font-size: 1.1rem;
margin: 0 0 0.75rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem; }
.toc-list a { color: var(--primary-cyan, #00d9ff); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.toc-list a:hover, .toc-list a:focus { text-decoration: underline; }
.pi-section { margin-bottom: 3.5rem; }
.pi-section-header {
display: flex; align-items: baseline; justify-content: space-between;
flex-wrap: wrap; gap: 1rem;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--primary-magenta, #ff006e);
}
.pi-section-header h2 {
font-family: var(--font-heading, 'Orbitron', sans-serif);
color: var(--primary-magenta, #ff006e);
font-size: clamp(1.5rem, 3vw, 2rem);
margin: 0;
}
.pi-section-header .pi-section-link a {
color: var(--primary-cyan, #00d9ff);
font-size: 0.95rem;
text-decoration: none;
}
.pi-section-header .pi-section-link a:hover { text-decoration: underline; }
.pi-section-desc { color: var(--muted-text, #a0a3bd); max-width: 900px; line-height: 1.6; margin: 0.5rem 0 1.5rem; }
.pi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pi-card {
background: var(--card-bg, rgba(26, 30, 61, 0.5));
border: 1px solid rgba(0, 217, 255, 0.18);
border-radius: 10px;
padding: 1.25rem;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 217, 255, 0.15); border-color: rgba(0, 217, 255, 0.45); }
.pi-card-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.pi-card-title { margin: 0 0 0.5rem; font-family: var(--font-heading, 'Orbitron', sans-serif); font-size: 1.05rem; }
.pi-card-title a { color: var(--primary-cyan, #00d9ff); text-decoration: none; }
.pi-card-title a:hover, .pi-card-title a:focus { text-decoration: underline; }
.pi-card-desc { color: var(--light-text, #e0e0e0); line-height: 1.55; margin: 0 0 0.75rem; font-size: 0.95rem; }
.pi-card-meta { margin: 0 0 0.5rem; }
.pi-card-file { font-family: var(--font-mono, 'Courier New', monospace); font-size: 0.8rem; color: var(--primary-yellow, #ffbe0b); background: rgba(255, 190, 11, 0.08); border: 1px solid rgba(255, 190, 11, 0.25); border-radius: 4px; padding: 0.1rem 0.4rem; }
.pi-card-link a { color: var(--primary-cyan, #00d9ff); font-size: 0.9rem; text-decoration: none; }
.pi-card-link a:hover { text-decoration: underline; }
.pi-day { background: var(--card-bg, rgba(26, 30, 61, 0.5)); border: 1px solid rgba(0, 217, 255, 0.18); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.pi-day-header { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pi-day-header h3 { margin: 0; font-family: var(--font-heading, 'Orbitron', sans-serif); color: var(--primary-cyan, #00d9ff); font-size: 1.2rem; }
.pi-day-total { background: rgba(255, 0, 110, 0.12); border: 1px solid rgba(255, 0, 110, 0.35); color: var(--primary-magenta, #ff006e); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.85rem; }
.pi-day-github { margin-left: auto; color: var(--primary-cyan, #00d9ff); text-decoration: none; font-size: 0.9rem; }
.pi-day-github:hover { text-decoration: underline; }
.pi-streams { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.pi-stream-link {
display: flex; align-items: center; gap: 0.5rem; color: var(--primary-cyan, #00d9ff); text-decoration: none;
background: rgba(0, 217, 255, 0.05); padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid rgba(0, 217, 255, 0.15);
}
.pi-stream-link:hover, .pi-stream-link:focus { background: rgba(0, 217, 255, 0.12); border-color: rgba(0, 217, 255, 0.4); }
.pi-stream-icon { font-size: 1.1rem; }
.pi-stream-name { flex: 1; font-weight: 600; }
.pi-stream-count { background: rgba(0, 217, 255, 0.18); color: var(--primary-cyan, #00d9ff); padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.8rem; }
.pi-stream-desc { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--muted-text, #a0a3bd); line-height: 1.5; }
.pi-stream-artifacts { margin: 0.4rem 0 0; }
.pi-stream-artifacts-summary {
list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
font-size: 0.8rem; color: var(--primary-cyan, #00d9ff); padding: 0.2rem 0.5rem; border-radius: 4px;
background: rgba(0, 217, 255, 0.06); border: 1px solid rgba(0, 217, 255, 0.18);
}
.pi-stream-artifacts-summary::-webkit-details-marker { display: none; }
.pi-stream-artifacts-summary:hover, .pi-stream-artifacts-summary:focus { background: rgba(0, 217, 255, 0.14); }
.pi-stream-artifacts[open] .pi-stream-artifacts-toggle { transform: rotate(90deg); }
.pi-stream-artifacts-toggle { display: inline-block; transition: transform 120ms ease; }
.pi-stream-artifacts-count { color: var(--muted-text, #a0a3bd); font-variant-numeric: tabular-nums; }
.pi-artifact-list { list-style: decimal inside; margin: 0.5rem 0 0; padding: 0.5rem 0.5rem 0.5rem 1rem; background: rgba(10, 14, 39, 0.4); border-radius: 6px; border: 1px solid rgba(0, 217, 255, 0.12); }
.pi-artifact { margin: 0.25rem 0; line-height: 1.5; }
.pi-artifact a { display: inline-flex; align-items: baseline; gap: 0.4rem; color: var(--primary-cyan, #00d9ff); text-decoration: none; font-size: 0.85rem; }
.pi-artifact a:hover, .pi-artifact a:focus { text-decoration: underline; }
.pi-artifact-icon { font-size: 0.95rem; }
.pi-artifact-title { font-weight: 500; }
.pi-artifact-file { font-family: 'Courier New', monospace; font-size: 0.72rem; color: var(--muted-text, #a0a3bd); background: rgba(0, 217, 255, 0.05); padding: 0.05rem 0.3rem; border-radius: 3px; }
.pi-older-toggle { display: block; width: 100%; text-align: left; background: transparent; border: 1px dashed rgba(0, 217, 255, 0.3); color: var(--primary-cyan, #00d9ff); padding: 0.75rem 1rem; border-radius: 8px; cursor: pointer; font-size: 1rem; margin-top: 0.5rem; }
.pi-older-toggle:hover, .pi-older-toggle:focus { background: rgba(0, 217, 255, 0.06); }
.pi-older-content[hidden] { display: none; }
@media (max-width: 640px) {
.pi-container { padding: 1rem 0.5rem 3rem; }
.pi-page-hero { padding: 2rem 0.75rem; }
.pi-grid { grid-template-columns: 1fr; }
.pi-streams { grid-template-columns: 1fr; }
}
[dir="rtl"] .pi-day-github { margin-left: 0; margin-right: auto; }
[dir="rtl"] .toc-nav { border-left: none; border-right: 4px solid var(--primary-cyan, #00d9ff); }
`;
|