File size: 7,846 Bytes
cf09724 7f72224 cf09724 4f4f4bb 7f72224 cf09724 7f72224 cf09724 | 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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | /* S78-T17: the Competitor watch App. Tokens only; one containment layer (the app panel). */
.cw-app {
display: flex;
flex-direction: column;
flex: 1 1 0;
min-width: 0;
min-height: 0;
height: 100%;
box-sizing: border-box;
padding: 10px 12px;
overflow-x: hidden;
overflow-y: auto;
background: var(--lp-surface);
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
}
.cw-tabs {
display: inline-flex;
gap: 4px;
margin-left: auto;
}
.cw-tab {
border: 0;
background: transparent;
font: inherit;
color: var(--lp-muted);
min-height: 30px;
padding: 0 12px;
border-radius: var(--lp-r-md);
font-size: var(--lp-fs-xs);
cursor: pointer;
}
.cw-tab:hover { background: var(--lp-surface-2); color: var(--lp-ink); }
.cw-tab.is-active { background: var(--lp-blue-tint); color: var(--lp-ink); font-weight: 600; }
.cw-body,
.cw-view {
display: flex;
flex-direction: column;
gap: 16px;
min-width: 0;
}
.cw-filters {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 8px 16px;
padding-bottom: 12px;
border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line);
}
.cw-field { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; }
.cw-field-label { color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.cw-period {
min-height: 32px;
display: inline-flex;
align-items: center;
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
font-variant-numeric: tabular-nums;
}
.cw-term-form { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cw-search-field,
.cw-term-field { flex: 0 0 200px; width: 200px; }
.cw-term-field .cw-select { width: 100%; min-width: 0; }
.cw-pager { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 344px; width: 344px; }
.cw-page-count { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; }
.cw-pager .cw-button { flex: 0 0 80px; }
.cw-select,
.cw-input {
min-height: 32px;
max-width: 100%;
box-sizing: border-box;
padding: 0 8px;
border: var(--lp-hairline-width, 1px) solid var(--lp-line-strong);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
}
.cw-select { min-width: 200px; }
.cw-alerts .cw-select { min-width: 152px; }
.cw-button {
border: 0;
background: transparent;
font: inherit;
color: inherit;
min-height: 32px;
padding: 0 12px;
border-radius: var(--lp-r-sm);
background: var(--lp-blue-solid);
color: var(--lp-surface);
font-size: var(--lp-fs-xs);
font-weight: 600;
cursor: pointer;
}
.cw-button.is-quiet { background: transparent; color: var(--lp-muted); font-weight: 400; }
.cw-button.is-quiet:hover { background: var(--lp-surface-2); color: var(--lp-ink); }
.cw-button:disabled { opacity: 0.5; cursor: not-allowed; }
.cw-button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.cw-link {
border: 0;
background: transparent;
font: inherit;
color: var(--lp-blue-deep);
padding: 0;
text-decoration: underline;
cursor: pointer;
}
.cw-tab:focus-visible,
.cw-button:focus-visible,
.cw-link:focus-visible,
.cw-select:focus-visible,
.cw-input:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.cw-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Two columns once both panels reach 440 px (the Profound layout); one column below that. */
.cw-panels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
gap: 16px 24px;
align-items: start;
}
.cw-heading { margin: 0; font-size: var(--lp-fs-md); font-weight: 600; }
.cw-note { margin: 0; color: var(--lp-ink); }
.cw-error { margin: 0; color: var(--lp-red-deep); }
.cw-cause-line { margin: 0; color: var(--lp-yellow-deep); }
.cw-table {
width: 100%;
border-collapse: collapse;
font-size: var(--lp-fs-xs);
}
.cw-table th {
text-align: left;
font-weight: 500;
color: var(--lp-muted);
padding: 8px;
border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line);
}
.cw-table td {
padding: 8px;
vertical-align: top;
border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line);
}
.cw-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cw-ranked tr.is-ours td { background: var(--lp-blue-tint); }
.cw-alerts td { vertical-align: middle; }
.cw-rank { display: inline-block; min-width: 16px; font-variant-numeric: tabular-nums; font-weight: 600; }
.cw-asin { font-variant-numeric: tabular-nums; }
.cw-title,
.cw-cause { display: block; margin-top: 4px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.cw-cause { color: var(--lp-yellow-deep); }
.cw-you {
display: inline-block;
margin-left: 8px;
padding: 0 8px;
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
border: var(--lp-hairline-width, 1px) solid var(--lp-blue-deep);
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
font-weight: 600;
}
/* Change chips: a fade on entry and nothing more. */
.cw-chip {
display: inline-block;
margin-left: 8px;
padding: 0 4px;
border-radius: var(--lp-r-sm);
font-size: var(--lp-fs-2xs);
font-variant-numeric: tabular-nums;
white-space: nowrap;
animation: cw-chip-in var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both;
}
.cw-chip.is-up { background: var(--lp-green-tint); color: var(--lp-green-deep); }
.cw-chip.is-down { background: var(--lp-red-tint); color: var(--lp-red-deep); }
.cw-chip.is-new { background: var(--lp-blue-tint); color: var(--lp-ink); }
.cw-chip.is-flat { background: var(--lp-surface-2); color: var(--lp-muted); }
@keyframes cw-chip-in { from { opacity: 0; } to { opacity: 1; } }
.cw-status { color: var(--lp-ink); }
.cw-skeleton-rows { display: flex; flex-direction: column; gap: 8px; }
.cw-skeleton {
height: 32px;
border-radius: var(--lp-r-sm);
background: var(--lp-surface-2);
animation: cw-breathe 1.2s var(--lp-motion-feedback-easing) infinite alternate;
}
.cw-skeleton-chart { height: 220px; }
@keyframes cw-breathe { from { opacity: 1; } to { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) {
.cw-chip,
.cw-skeleton { animation: none; }
}
/* 390 px: every block stacks full width; tables become labelled rows, no horizontal scroll. */
@media (max-width: 640px) {
.cw-tabs { margin-left: 0; }
.cw-filters { flex-direction: column; align-items: stretch; }
.cw-field,
.cw-select,
.cw-term-form { width: 100%; min-width: 0; }
.cw-search-field,
.cw-term-field,
.cw-pager { flex-basis: auto; width: 100%; }
.cw-pager .cw-button { flex-basis: 72px; padding: 0 8px; }
.cw-term-form { margin-left: 0; }
.cw-input { flex: 1 1 160px; min-width: 0; }
.cw-table thead { display: none; }
.cw-table,
.cw-table tbody,
.cw-table tr,
.cw-table td { display: block; width: 100%; box-sizing: border-box; }
.cw-table tr { padding: 8px 0; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); }
.cw-table td {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
padding: 4px 0;
border-bottom: 0;
text-align: left;
}
.cw-table td.is-num { text-align: left; white-space: normal; }
.cw-table td::before {
content: attr(data-label);
flex: 0 0 120px;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.cw-table td > .cw-title,
.cw-table td > .cw-cause { flex-basis: 100%; margin-top: 0; padding-left: 128px; }
.cw-chip,
.cw-you { margin-left: 0; }
.cw-alerts .cw-select { min-width: 0; flex: 1 1 140px; }
}
.cw-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cw-checks li { padding-bottom: 8px; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); }
.cw-check-what { font-size: var(--lp-fs-xs); }
|