From 3f0cfe869a8638e5b9788514dd70ef60b6666601 Mon Sep 17 00:00:00 2001 From: Eskimue Date: Thu, 23 Apr 2026 22:01:15 +0200 Subject: [PATCH] Bugs --- public/asteroid_temp.php | 65 +++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 11 deletions(-) diff --git a/public/asteroid_temp.php b/public/asteroid_temp.php index 2c20326..1bf3222 100644 --- a/public/asteroid_temp.php +++ b/public/asteroid_temp.php @@ -6,10 +6,7 @@ error_reporting(E_ALL); session_start(); $loggedIn = isset($_SESSION['user_id']); -$pageTitle = 'Asteroidtemperatur – AstroTools'; -$headerIntroPre = 'Astronomie-Werkzeuge'; -$headerIntroTitle = 'Asteroid-Temperaturrechner'; -$headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berechnen (NEATM).'; + ?> @@ -201,6 +198,52 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec border-top: 1px solid var(--border); margin: 0.8rem 0; } + +/* Tooltip */ +.at-tip { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + width: 1.1em; + height: 1.1em; + border-radius: 50%; + border: 1px solid var(--gold-dim); + color: var(--gold-dim); + font-size: 0.68rem; + font-style: normal; + cursor: help; + vertical-align: middle; + margin-left: 0.3em; + flex-shrink: 0; + user-select: none; + line-height: 1; +} +.at-tip::after { + content: attr(data-tip); + position: absolute; + bottom: calc(100% + 8px); + left: 50%; + transform: translateX(-50%); + background: #111827; + border: 1px solid var(--border); + border-radius: var(--radius); + color: var(--text); + font-size: 0.78rem; + line-height: 1.5; + padding: 0.5rem 0.75rem; + width: 220px; + white-space: normal; + pointer-events: none; + opacity: 0; + transition: opacity 0.15s; + z-index: 100; + box-shadow: 0 4px 16px rgba(0,0,0,0.5); +} +.at-tip:hover::after, +.at-tip:focus::after { + opacity: 1; +}
@@ -212,7 +255,7 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec
- +
AE @@ -222,7 +265,7 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec
- +
0–1 @@ -232,7 +275,7 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec
- +
> 0 @@ -259,7 +302,7 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec
- +
0–1 @@ -273,7 +316,7 @@ $headerIntroSub = 'Gleichgewichts- und Subsolartemperatur eines Asteroiden berec