MediaWiki:Gadget-DiagnosticTree.css

From Painwiki
Revision as of 17:55, 11 April 2026 by Yatreyu (talk | contribs) (Created page with "* * DiagnosticTree.css * Copy to: MediaWiki:Gadget-DiagnosticTree.css: ── Shell & layout ─────────────────────────────────────────────────────────: .dt-shell { font-family: 'Georgia', serif; max-width: 680px; margin: 1.5em auto; color: #1a1a2e; } .dt-header { display: flex; align-items: center; justify-content: space-between; margin-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
 * DiagnosticTree.css
 * Copy to: MediaWiki:Gadget-DiagnosticTree.css
 */

/* ── Shell & layout ───────────────────────────────────────────────────────── */
.dt-shell {
	font-family: 'Georgia', serif;
	max-width: 680px;
	margin: 1.5em auto;
	color: #1a1a2e;
}

.dt-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.6em;
}

.dt-region {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #555;
}

.dt-controls {
	display: flex;
	gap: 0.4em;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.dt-progress-wrap {
	height: 5px;
	background: #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 0.3em;
}

.dt-progress-bar {
	height: 100%;
	background: linear-gradient( 90deg, #2980b9, #27ae60 );
	border-radius: 3px;
	transition: width 0.4s ease;
}

.dt-step-label {
	font-size: 0.72em;
	color: #888;
	text-align: right;
	margin-bottom: 1em;
	font-family: 'Courier New', monospace;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.dt-card {
	border: 2px solid #ccc;
	border-radius: 10px;
	padding: 1.4em 1.6em;
	background: #fafafa;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	animation: dt-fadein 0.25s ease;
}

@keyframes dt-fadein {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Type badge ───────────────────────────────────────────────────────────── */
.dt-type-badge {
	display: inline-block;
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25em 0.75em;
	border-radius: 20px;
	margin-bottom: 0.9em;
	font-family: 'Helvetica Neue', sans-serif;
}

/* ── Question text ────────────────────────────────────────────────────────── */
.dt-question {
	font-size: 1.08em;
	line-height: 1.55;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 0.9em;
}

/* ── Tags row ─────────────────────────────────────────────────────────────── */
.dt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-bottom: 0.7em;
}

.dt-tag {
	font-size: 0.73em;
	padding: 0.2em 0.65em;
	border-radius: 4px;
	font-family: 'Helvetica Neue', sans-serif;
	font-weight: 600;
}

.dt-tag-blue   { background: #dbeeff; color: #1a5276; }
.dt-tag-purple { background: #f0e6ff; color: #5b2d8e; }
.dt-tag-green  { background: #d5f5e3; color: #1d6a3a; }

/* ── Supporting info ──────────────────────────────────────────────────────── */
.dt-rationale {
	font-size: 0.82em;
	color: #555;
	font-style: italic;
	margin-bottom: 0.6em;
	line-height: 1.45;
}

.dt-landmark {
	font-size: 0.82em;
	color: #444;
	background: #f0ede8;
	border-left: 3px solid #a0956e;
	padding: 0.35em 0.7em;
	margin-bottom: 0.6em;
	border-radius: 0 4px 4px 0;
}

.dt-positive {
	font-size: 0.82em;
	color: #1d6a3a;
	background: #eafaf1;
	border-left: 3px solid #27ae60;
	padding: 0.35em 0.7em;
	margin-bottom: 0.6em;
	border-radius: 0 4px 4px 0;
}

.dt-muscle-hint {
	font-size: 0.78em;
	padding: 0.25em 0.6em;
	border-radius: 4px;
	margin-bottom: 0.35em;
	font-family: 'Helvetica Neue', sans-serif;
}

.dt-implicated { background: #eafaf1; color: #1d6a3a; }
.dt-excluded   { background: #fdf2f2; color: #922b21; }

/* ── Answer buttons ───────────────────────────────────────────────────────── */
.dt-answers {
	display: flex;
	gap: 0.75em;
	margin-top: 1.2em;
}

.dt-answer {
	flex: 1;
	padding: 0.65em 1em;
	font-size: 0.95em;
	font-weight: 700;
	border: 2px solid transparent;
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: 'Helvetica Neue', sans-serif;
	letter-spacing: 0.04em;
}

.dt-answer-yes {
	background: #eafaf1;
	color: #1d6a3a;
	border-color: #27ae60;
}

.dt-answer-yes:hover {
	background: #27ae60;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(39,174,96,0.3);
}

.dt-answer-no {
	background: #fdf2f2;
	color: #922b21;
	border-color: #e74c3c;
}

.dt-answer-no:hover {
	background: #e74c3c;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(231,76,60,0.3);
}

/* ── Navigation buttons ───────────────────────────────────────────────────── */
.dt-btn {
	font-size: 0.78em;
	padding: 0.3em 0.75em;
	border-radius: 5px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	color: #444;
	font-family: 'Helvetica Neue', sans-serif;
	transition: background 0.15s;
}

.dt-btn:hover { background: #f0f0f0; }

.dt-btn-back  { border-color: #2980b9; color: #2980b9; }
.dt-btn-reset { border-color: #999; }

/* ── Result card ──────────────────────────────────────────────────────────── */
.dt-card-result {
	border-color: #27ae60;
	background: #f2faf4;
}

.dt-result-name {
	font-size: 1.25em;
	font-weight: 700;
	color: #1a5276;
	margin-bottom: 0.4em;
}

.dt-confidence {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.6em;
	font-family: 'Helvetica Neue', sans-serif;
}

.dt-notes {
	font-size: 0.85em;
	color: #444;
	margin-bottom: 0.5em;
	font-style: italic;
}

.dt-treatment {
	font-size: 0.83em;
	background: #d5f5e3;
	border-left: 3px solid #1d8348;
	padding: 0.35em 0.7em;
	margin-bottom: 0.5em;
	border-radius: 0 4px 4px 0;
}

.dt-chapter {
	font-size: 0.78em;
	color: #666;
	margin-bottom: 0.7em;
	font-family: 'Helvetica Neue', sans-serif;
}

.dt-also {
	font-size: 0.8em;
	color: #555;
	margin-bottom: 0.8em;
	font-style: italic;
}

.dt-wiki-link {
	display: inline-block;
	margin-top: 0.5em;
	padding: 0.55em 1.1em;
	background: #1a5276;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.88em;
	font-weight: 700;
	cursor: pointer;
	font-family: 'Helvetica Neue', sans-serif;
	transition: background 0.15s;
}

.dt-wiki-link:hover { background: #154360; }

/* ── Referral card ────────────────────────────────────────────────────────── */
.dt-referral-text {
	font-size: 1.05em;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.dt-referral-action {
	font-size: 0.9em;
	font-weight: 700;
	padding: 0.5em 0.8em;
	background: rgba(0,0,0,0.07);
	border-radius: 5px;
	margin-bottom: 0.4em;
}

.dt-flag-label {
	font-size: 0.82em;
	color: #666;
	font-style: italic;
}

/* ── Overlap card ─────────────────────────────────────────────────────────── */
.dt-card-overlap { border-color: #95a5a6; }

.dt-overlap-text {
	font-size: 0.95em;
	margin-bottom: 0.7em;
}

.dt-screen-list {
	font-size: 0.85em;
	color: #444;
	padding-left: 1.2em;
	margin-bottom: 0.7em;
}

/* ── Error state ──────────────────────────────────────────────────────────── */
.dt-error {
	background: #fdf2f2;
	border: 1px solid #e74c3c;
	border-radius: 6px;
	padding: 1em;
	color: #922b21;
	font-size: 0.9em;
	font-family: monospace;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 520px ) {
	.dt-card { padding: 1em 1.1em; }
	.dt-answers { flex-direction: column; }
}